diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-12-13 01:37:17 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-12-13 01:37:17 +0100 |
commit | d30bd4322f0f63ef36bf48fac129bb53207ec622 (patch) | |
tree | e1b38ed0c367d92a4bd26fbfd17c6539df0aec01 | |
parent | 75b78d6725e58605484d063929f082702feb179e (diff) | |
download | buildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.tar.gz buildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.tar.bz2 buildscripts-d30bd4322f0f63ef36bf48fac129bb53207ec622.zip |
support v3 signature for epel-5 builds
-rwxr-xr-x | bin/build-rpm-package | 5 |
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 |