2000-01-18 04:02:58 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
version=@QF_VERSION@
|
|
|
|
temp_dir=/var/tmp
|
2000-01-25 04:45:07 +00:00
|
|
|
srcdir=@srcdir@
|
|
|
|
if [ "$srcdir" = "." ]; then
|
|
|
|
srcdir=..
|
|
|
|
fi
|
2000-01-18 04:02:58 +00:00
|
|
|
|
2000-03-13 11:54:24 +00:00
|
|
|
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
2000-01-25 04:45:07 +00:00
|
|
|
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
2000-01-18 04:02:58 +00:00
|
|
|
rm -rf ${temp_dir}/quakeforge-${version}
|
2000-01-25 04:45:07 +00:00
|
|
|
cp -a $srcdir ${temp_dir}/quakeforge-${version}
|
2000-01-18 04:02:58 +00:00
|
|
|
dest_dir=$PWD
|
|
|
|
cd ${temp_dir}/quakeforge-${version}
|
|
|
|
# this is needed to ensure there is a makefile
|
|
|
|
./bootstrap
|
|
|
|
./configure
|
|
|
|
make distclean
|
|
|
|
cd ${temp_dir}
|
2000-01-25 04:45:07 +00:00
|
|
|
tar zcf ${dest_dir}/SOURCES/quakeforge-${version}.tar.gz quakeforge-${version}
|
2000-01-18 04:02:58 +00:00
|
|
|
cd ${dest_dir}
|
|
|
|
rm -rf ${temp_dir}/quakeforge-${version}
|
2000-01-25 04:45:07 +00:00
|
|
|
cat > rpmmacros <<EOF
|
|
|
|
%_topdir $PWD
|
|
|
|
EOF
|
|
|
|
rpm -ba quakeforge.spec --rcfile rpmrc
|