summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-13 01:37:17 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-13 01:37:17 +0100
commitd30bd4322f0f63ef36bf48fac129bb53207ec622 (patch)
treee1b38ed0c367d92a4bd26fbfd17c6539df0aec01
parent75b78d6725e58605484d063929f082702feb179e (diff)
downloadbuildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.tar.gz
buildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.tar.bz2
buildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.zip
support v3 signature for epel-5 builds
-rwxr-xr-xbin/build-rpm-package5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index d93928c..df9624c 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -284,7 +284,10 @@ build_packages() {
done
ls $PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SRPMS/$PROJECT-$UPSTREAM_VERSION-$PKG_SRCRELEASE.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT.*.src.rpm | while read srpm; do
if mock -r ${l_DIST}-${l_CODENAME}-x86_64 --result $PKGDIST/$l_DIST/$l_CODENAME/x86_64 $srpm; then
- rpmsign-unattended -D "%_gpg_name debian@x2go.org" --addsign $PKGDIST/$l_DIST/$l_CODENAME/x86_64/*.rpm
+ if [ "$l_DIST" = "epel" ] && [ "$l_CODENAME" = "5" ]; then
+ RPMMACRO_V3SIGN='-D "%__gpg_sign_cmd %{__gpg} gpg --force-v3-sigs --digest-algo=sha1 --batch --no-verbose --no-armor --passphrase-fd 3 --no-secmem-warning -u \"%{_gpg_name}\" -sbo \"%{__signature_filename}\" \"%{__plaintext_filename}\""'
+ fi
+ rpmsign-unattended -D "%_gpg_name debian@x2go.org" $RPMMACRO_V3SIGN --addsign $PKGDIST/$l_DIST/$l_CODENAME/x86_64/*.rpm
cat $PKGDIST/$l_DIST/$l_CODENAME/x86_64/build.log
else
cat $PKGDIST/$l_DIST/$l_CODENAME/x86_64/build.log