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