From: helly Date: Sun, 14 Mar 2004 14:00:55 +0000 (+0000) Subject: Reenable release param to makerpm. X-Git-Tag: 0.13.6~729 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cc4df8d80810cb2f418df0394cdfbafe8dc292f;p=re2c Reenable release param to makerpm. --- diff --git a/makerpm.in b/makerpm.in index b5a8ab3a..32b8c1d9 100644 --- a/makerpm.in +++ b/makerpm.in @@ -18,7 +18,7 @@ sleep 1 ; echo -n . ; sleep 1 ; echo -n . ; sleep 1 ; echo -n . echo TAR=@PACKAGE_TARNAME@-$VERSION.tar.gz -SPEC=re2c.spec +SPEC=re2c-${VERSION}.spec RPMBASE=/usr/src/redhat for i in /usr/src/redhat /usr/src/packages /usr/src/RPM; do @@ -35,9 +35,11 @@ SRCDIR=${RPMBASE}/SOURCES make dist cp $TAR $SRCDIR -echo "CP: (`pwd`) cp -a $SPEC $SPECDIR/${SPEC}" +cat re2c.spec | sed -e "s/RPM_RELEASE/${RELEASE}/g" > ${SPEC} + +echo "CP: (`pwd`) cp -a $SPECDIR/${SPEC} $SPEC" cp -a $SPEC $SPECDIR/${SPEC} #cp -a *.patch $SRCDIR cd $SPECDIR -echo "RPM: rpm -ba -vv ${SPEC}" +echo "RPM: rpm -ba ${SPEC}" rpm -ba ${SPEC} diff --git a/re2c.spec.in b/re2c.spec.in index cc70b550..b5376db2 100644 --- a/re2c.spec.in +++ b/re2c.spec.in @@ -1,7 +1,7 @@ Summary: re2c - A tool for generating C-based recognizers from regular expressions Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -Release: 1 +Release: RPM_RELEASE Group: Development License: public domain URL: http://sourceforge.net/projects/re2c/