2
# This script parses the package name and version out of configure.ac,
3
# uses them to assemble the names of the distribution tar.gz and source rpm,
4
# then calls make to generate those files.
5
# Any arguments will be passed on to configure when building the tarball.
7
AC_INIT=`grep AC_INIT configure.ac`
8
PACKAGE=`echo ${AC_INIT} | awk 'BEGIN { FS="[][]" }; { print $2 };'`
9
VERSION=`echo ${AC_INIT} | awk 'BEGIN { FS="[][]" }; { print $4 };'`
11
tgz=${PACKAGE}-${VERSION}.tar.gz
12
srpm=${PACKAGE}-${VERSION}-1.src.rpm
20
configure: configure.ac Makefile.am
21
autoreconf --install -s
27
${srpm}: ${tgz} ${PACKAGE}.spec
28
rpmbuild --eval "%undefine dist" \
29
--define "_sourcedir ${PWD}" \
30
--define "_specdir ${PWD}" \
31
--define "_srcrpmdir ${PWD}" \