mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 21:12:27 +00:00
7e5af715bb
You will need to run automake --add-missing to create the necessary symlinks for install-sh, etc.
27 lines
665 B
Bash
27 lines
665 B
Bash
#!/bin/sh -x
|
|
|
|
version=@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
|