nuq/RPM/build_rpm.in

14 lines
316 B
Bash

#!/bin/sh -ex
version=@VERSION@
temp_dir=/var/tmp
srcdir=@srcdir@
rm -rf BUILD SPECS RPMS SOURCES SRPMS
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
(cd ..; make dist)
(cd SOURCES; ln -s ../../nuq-${version}.tar.gz .)
cat > rpmmacros <<EOF
%_topdir $PWD
EOF
rpm -ba nuq.spec --rcfile ${srcdir}/rpmrc