mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
merge in changes from the Release_0_1 branch
This commit is contained in:
parent
56a753d763
commit
ba7ab28fe4
2 changed files with 12 additions and 2 deletions
|
@ -2,9 +2,14 @@
|
||||||
|
|
||||||
version=@QF_VERSION@
|
version=@QF_VERSION@
|
||||||
temp_dir=/var/tmp
|
temp_dir=/var/tmp
|
||||||
|
srcdir=@srcdir@
|
||||||
|
if [ "$srcdir" = "." ]; then
|
||||||
|
srcdir=..
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
||||||
rm -rf ${temp_dir}/quakeforge-${version}
|
rm -rf ${temp_dir}/quakeforge-${version}
|
||||||
cp -a @srcdir@ ${temp_dir}/quakeforge-${version}
|
cp -a $srcdir ${temp_dir}/quakeforge-${version}
|
||||||
dest_dir=$PWD
|
dest_dir=$PWD
|
||||||
cd ${temp_dir}/quakeforge-${version}
|
cd ${temp_dir}/quakeforge-${version}
|
||||||
# this is needed to ensure there is a makefile
|
# this is needed to ensure there is a makefile
|
||||||
|
@ -12,6 +17,10 @@ cd ${temp_dir}/quakeforge-${version}
|
||||||
./configure
|
./configure
|
||||||
make distclean
|
make distclean
|
||||||
cd ${temp_dir}
|
cd ${temp_dir}
|
||||||
tar zcf ${dest_dir}/quakeforge-${version}.tar.gz quakeforge-${version}
|
tar zcf ${dest_dir}/SOURCES/quakeforge-${version}.tar.gz quakeforge-${version}
|
||||||
cd ${dest_dir}
|
cd ${dest_dir}
|
||||||
rm -rf ${temp_dir}/quakeforge-${version}
|
rm -rf ${temp_dir}/quakeforge-${version}
|
||||||
|
cat > rpmmacros <<EOF
|
||||||
|
%_topdir $PWD
|
||||||
|
EOF
|
||||||
|
rpm -ba quakeforge.spec --rcfile rpmrc
|
||||||
|
|
1
rpm/rpmrc
Normal file
1
rpm/rpmrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:rpmmacros
|
Loading…
Reference in a new issue