build_rpm works though only one monolithic package is built currently

This commit is contained in:
Bill Currie 2001-08-01 18:19:36 +00:00
parent fe8738b042
commit 8fc8b564ab
3 changed files with 8 additions and 17 deletions

View file

@ -3,25 +3,14 @@
version=@VERSION@
temp_dir=/var/tmp
srcdir=@srcdir@
if [ "$srcdir" = "." ]; then
srcdir=..
fi
top_srcdir=@top_srcdir@
top_builddir=..
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}
make -C $top_builddir dist
mv $top_builddir/quakeforge-${version}.tar.gz SOURCES
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba quakeforge.spec --rcfile rpmrc
rpm -ba quakeforge.spec --rcfile $srcdir/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

View file

@ -1426,7 +1426,8 @@ AC_OUTPUT(
debian/Makefile
RPM/build_rpm,
RPM/build_rpm
RPM/quakeforge.spec,
chmod +x quakeforge-config RPM/build_rpm
)