nuq/RPM/build_rpm.in

28 lines
616 B
Text
Raw Normal View History

2000-08-19 22:57:42 +00:00
#!/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
2000-08-20 05:51:42 +00:00
rm -rf ${temp_dir}/nuq-${version}
cp -a $srcdir ${temp_dir}/nuq-${version}
2000-08-19 22:57:42 +00:00
dest_dir=$PWD
2000-08-20 05:51:42 +00:00
cd ${temp_dir}/nuq-${version}
2000-08-19 22:57:42 +00:00
# this is needed to ensure there is a makefile
./bootstrap
./configure
make distclean
cd ${temp_dir}
2000-08-20 05:51:42 +00:00
tar zcf ${dest_dir}/SOURCES/nuq-${version}.tar.gz nuq-${version}
2000-08-19 22:57:42 +00:00
cd ${dest_dir}
2000-08-20 05:51:42 +00:00
rm -rf ${temp_dir}/nuq-${version}
2000-08-19 22:57:42 +00:00
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
2000-08-20 05:51:42 +00:00
rpm -ba nuq.spec --rcfile rpmrc