mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
more improvements
This commit is contained in:
parent
b455458629
commit
e236dd8842
1 changed files with 10 additions and 4 deletions
|
@ -6,12 +6,18 @@ srcdir=@srcdir@
|
||||||
top_srcdir=@top_srcdir@
|
top_srcdir=@top_srcdir@
|
||||||
top_builddir=..
|
top_builddir=..
|
||||||
|
|
||||||
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
mkdir -p RPMS/{noarch,i386,i686}
|
||||||
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
|
||||||
make -C $top_builddir changelog
|
make -C $top_builddir changelog
|
||||||
make -C $top_builddir dist
|
make -C $top_builddir dist
|
||||||
mv $top_builddir/quakeforge-${version}.tar.gz SOURCES
|
|
||||||
cat > rpmmacros <<EOF
|
cat > rpmmacros <<EOF
|
||||||
%_topdir $PWD
|
%_topdir $PWD
|
||||||
|
%_rpmdir $PWD/RPMS
|
||||||
|
%_sourcedir $top_builddir
|
||||||
|
%_specdir $PWD
|
||||||
|
%_srcrpmdir $PWD
|
||||||
|
%_builddir $PWD
|
||||||
EOF
|
EOF
|
||||||
rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc
|
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
|
||||||
|
|
Loading…
Reference in a new issue