Thank you for your reminding of the wrong version in spec file. We will update it ASAP. I noticed your patch add one line in release.sh to modify mic2.spec. We'd better modify it manually. At lease we shouldn't let mic2.spec changed magically after some indirect operations.
Hope you can help us more in the fure. thanks. Regards, jf.ding On Tue, May 26, 2009 at 01:15:27PM +0800, Holmes Wang wrote: > When I executed "./release.sh rpm", get following error: > error: File /tmp/rpm_mic_packaging/SOURCES/mic2-0.8.tar.bz2: No such file or > directory > All the generated files are placed at ./dist directory > > git-archive generates mic2-0.8.tar.bz2 based on VERSION file, > however the "Version" in mic2.spec doesn't conform with VERSION file. > > Signed-off-by: Holmes Wang <[email protected]> > --- > mic2.spec | 2 +- > release.sh | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/mic2.spec b/mic2.spec > index c31545c..85ce0da 100644 > --- a/mic2.spec > +++ b/mic2.spec > @@ -1,7 +1,7 @@ > > Summary: Tools for building images for Moblin > Name: mic2 > -Version: 0.8 > +Version: 0.9 > Release: 1 > License: GPLv2 > Group: System Environment/Base > diff --git a/release.sh b/release.sh > index dcaae1f..6273400 100755 > --- a/release.sh > +++ b/release.sh > @@ -69,6 +69,7 @@ create_rpm() { > > git archive --format=tar --prefix=${PKGNAME}-${VERSION}/ ${TREE} | bzip2 > -9 > \ > > /tmp/rpm_mic_packaging/SOURCES/${PKGNAME}-${VERSION}.tar.bz2 > + sed -i "s/^Version:.*$/Version: $VERSION/" mic2.spec > rpmbuild -ba mic2.spec --clean --define "_topdir /tmp/rpm_mic_packaging" > find /tmp/rpm_mic_packaging -name '*.rpm' -exec mv {} $DISTDIR/ \; > > -- > 1.6.0.6 > _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
