fixed release attributes of rpms and archlinux
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: infnoise
|
||||
Version: __VERSION__
|
||||
Release: 0
|
||||
Release: __RELEASE__
|
||||
Summary: Infinite Noise TRNG
|
||||
Group: Applications/Security
|
||||
License: GPL
|
||||
|
||||
Reference in New Issue
Block a user