3 # $Id: makerpm.in 545 2006-05-25 13:39:46Z helly $
4 # M.Boerger <re2c@somabo.de>
6 PREFIX
="@PACKAGE_NAME@"
7 VERSION
="@PACKAGE_VERSION@"
8 TARDIR
="`basename \`pwd\``"
16 echo -n "Building RPM version $VERSION, release: $RELEASE "
17 sleep 1 ; echo -n .
; sleep 1 ; echo -n .
; sleep 1 ; echo -n .
20 TAR
=@PACKAGE_TARNAME@
-$VERSION.
tar.gz
21 SPEC
=re2c-
${VERSION}.spec
23 RPMBASE
=/usr
/src
/redhat
24 for i
in /usr
/src
/redhat
/usr
/src
/packages
/usr
/src
/RPM
; do
31 RPMDIR
=${RPMBASE}/RPMS
32 SPECDIR
=${RPMBASE}/SPECS
33 SRCDIR
=${RPMBASE}/SOURCES
38 cat re2c.spec |
sed -e "s/RPM_RELEASE/${RELEASE}/g" > ${SPEC}
40 echo "CP: (`pwd`) cp -a $SPEC $SPECDIR/${SPEC}"
41 cp -a $SPEC $SPECDIR/${SPEC}
42 #cp -a *.patch $SRCDIR
44 echo "RPM: rpm -ba ${SPEC}"