build_rpm.in:

now builds the rpms. NOTE: only i386 and i686 supported for now. other
	archs need to be atted to the mkdir -p line for RPMS.
rpmrc:
	new file. tell rpm where to pick up our macros for _topdir
This commit is contained in:
Bill Currie 2000-01-23 00:45:19 +00:00
parent 9be70be1b0
commit 2f5ba89cf0
2 changed files with 12 additions and 2 deletions

View File

@ -2,9 +2,14 @@
version=@QF_VERSION@
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}
cp -a @srcdir@ ${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
@ -12,6 +17,10 @@ cd ${temp_dir}/quakeforge-${version}
./configure
make distclean
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}
rm -rf ${temp_dir}/quakeforge-${version}
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba quakeforge.spec --rcfile rpmrc

1
rpm/rpmrc Normal file
View File

@ -0,0 +1 @@
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:rpmmacros