quakeforge/RPM/build_rpm.in

17 lines
372 B
Text
Raw Normal View History

#!/bin/sh -x
version=@VERSION@
temp_dir=/var/tmp
srcdir=@srcdir@
top_srcdir=@top_srcdir@
top_builddir=..
rm -rf BUILD SPECS RPMS SOURCES SRPMS
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
make -C $top_builddir dist
mv $top_builddir/quakeforge-${version}.tar.gz SOURCES
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc