add build scripts for debs and rpms

This commit is contained in:
Manuel Domke
2018-03-01 23:12:26 +01:00
parent 9ca57f5687
commit 7169a19dff
12 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
VERSION=$1
ARCH=$2
PATH=$PATH:/sbin/
mkdir -p SOURCES
tar -czf SOURCES/infnoise.tar.gz . --exclude="*.sh" --exclude="SOURCES"
mkdir -p BUILD SPECS RPMS SRPMS
cp infnoise.spec SPECS
sed -i -- 's/__VERSION__/'$VERSION'/g' SPECS/infnoise.spec
rpmbuild --define "_topdir `pwd`" -ba SPECS/infnoise.spec