]> granicus.if.org Git - re2c/commitdiff
Reenable release param to makerpm.
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 14 Mar 2004 14:00:55 +0000 (14:00 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 14 Mar 2004 14:00:55 +0000 (14:00 +0000)
makerpm.in
re2c.spec.in

index b5a8ab3ac95c74c435db44373f7a103289360343..32b8c1d9311bad9867328c379a73d5be5663a6db 100644 (file)
@@ -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}
index cc70b550c7081acb00bd06b01df0ff2f58c06148..b5376db26614354a9d10f0c4c6bb4a5af24ba5a9 100644 (file)
@@ -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/