fixed release attributes of rpms and archlinux

This commit is contained in:
Manuel Domke
2018-03-01 23:43:26 +01:00
parent 9ad7e532e5
commit b428787161
3 changed files with 15 additions and 2 deletions

View File

@@ -3,6 +3,10 @@
VERSION=`git --no-pager describe --tags --always | cut -d'-' -f1`
PKGREL=`git --no-pager describe --tags --always | cut -d'-' -f2`
if [ $VERSION == $PKGREL ]; then # this is a release
PKGREL=0
fi
# x86_64
mkdir -p x86_64
cd x86_64

View File

@@ -1,4 +1,12 @@
VERSION=`git --no-pager describe --tags --always`
#!/bin/bash
VERSION=`git --no-pager describe --tags --always | cut -d'-' -f1`
RELEASE=`git --no-pager describe --tags --always | cut -d'-' -f2`
if [ $VERSION == $RELEASE ]; then # this is a release
RELEASE=0
fi
ARCH=$2
PATH=$PATH:/sbin/
@@ -10,6 +18,7 @@ mkdir -p BUILD SPECS RPMS SRPMS
cp build-scripts/infnoise.spec SPECS
sed -i -- 's/__VERSION__/'$VERSION'/g' SPECS/infnoise.spec
sed -i -- 's/__RELEASE__/'$RELEASE'/g' SPECS/infnoise.spec
rpmbuild --define "_topdir `pwd`" -ba SPECS/infnoise.spec

View File

@@ -1,6 +1,6 @@
Name: infnoise
Version: __VERSION__
Release: 0
Release: __RELEASE__
Summary: Infinite Noise TRNG
Group: Applications/Security
License: GPL