mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
23 lines
508 B
Bash
23 lines
508 B
Bash
#!/bin/sh -x
|
|
|
|
version=@VERSION@
|
|
temp_dir=/var/tmp
|
|
srcdir=@srcdir@
|
|
top_srcdir=@top_srcdir@
|
|
top_builddir=..
|
|
|
|
mkdir -p RPMS/{noarch,i386,i686}
|
|
make -C $top_builddir changelog
|
|
make -C $top_builddir dist
|
|
cat > rpmmacros <<EOF
|
|
%_topdir $PWD
|
|
%_rpmdir $PWD/RPMS
|
|
%_sourcedir $top_builddir
|
|
%_specdir $PWD
|
|
%_srcrpmdir $PWD
|
|
%_builddir $PWD
|
|
EOF
|
|
rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc
|
|
find . -maxdepth 1 -type d -name 'quakeforge-*' -exec rm -rf {} \;
|
|
find RPMS -name '*.rpm' -exec mv {} . \;
|
|
rm -rf RPMS
|