quakeforge-old/rpm/build_rpm.in
Bill Currie 2800c2856e make install now works (caused by a flakey install-sh), as does build_rpm.
Also, there was a bug in configure.in that caused glx not to be built at all on
my system.

NOTE: I changed SRC_DIR to srcdir (GNU `standard'), though I'm beginning to
wonder if that was so good.
2000-03-13 11:54:24 +00:00

27 lines
668 B
Bash
Executable file

#!/bin/sh -x
version=@QF_VERSION@
temp_dir=/var/tmp
srcdir=@srcdir@
if [ "$srcdir" = "." ]; then
srcdir=..
fi
rm -rf BUILD SPECS RPMS SOURCES SRPMS
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
rm -rf ${temp_dir}/quakeforge-${version}
cp -a $srcdir ${temp_dir}/quakeforge-${version}
dest_dir=$PWD
cd ${temp_dir}/quakeforge-${version}
# this is needed to ensure there is a makefile
./bootstrap
./configure
make distclean
cd ${temp_dir}
tar zcf ${dest_dir}/SOURCES/quakeforge-${version}.tar.gz quakeforge-${version}
cd ${dest_dir}
rm -rf ${temp_dir}/quakeforge-${version}
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba quakeforge.spec --rcfile rpmrc