nuq/RPM/build_rpm.in
2000-08-30 23:20:57 +00:00

17 lines
351 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
(cd ${srcdir}; make dist)
mv ${srcdir}/nuq-${version}.tar.gz SOURCES
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba nuq.spec --rcfile rpmrc