mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-25 05:21:41 +00:00
14 lines
316 B
Bash
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
|