quakeforge/RPM/build_rpm.in

26 lines
548 B
Text
Raw Normal View History

#!/bin/sh -x
2002-06-08 21:12:59 +00:00
set -e
version=@VERSION@
temp_dir=/var/tmp
srcdir=@srcdir@
top_srcdir=@top_srcdir@
top_builddir=..
2001-08-02 23:00:17 +00:00
mkdir -p RPMS/{noarch,i386,i686}
2002-10-01 05:17:25 +00:00
test -d $top_srcdir/CVS && make -C $top_builddir changelog
make -C $top_builddir dist
cat > rpmmacros <<EOF
2001-08-02 23:00:17 +00:00
%_topdir $PWD
%_rpmdir $PWD/RPMS
%_sourcedir $top_builddir
%_specdir $PWD
%_srcrpmdir $PWD
%_builddir $PWD
EOF
2006-07-23 02:45:13 +00:00
rpmbuild -ba quakeforge.spec --rcfile $srcdir/rpmrc
2001-08-02 23:00:17 +00:00
find . -maxdepth 1 -type d -name 'quakeforge-*' -exec rm -rf {} \;
find RPMS -name '*.rpm' -exec mv {} . \;
rm -rf RPMS