Enable tarball signing.

This commit is contained in:
Richard W.M. Jones 2018-06-09 14:33:06 +01:00
parent 6d9d5e1cc9
commit 70cec0a451
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/clog
/nbdkit-*.tar.gz
/nbdkit-*.tar.gz.sig

BIN
libguestfs.keyring Normal file

Binary file not shown.

View File

@ -16,6 +16,9 @@
%global have_python3 1
%endif
# If we should verify tarball signature with GPGv2.
%global verify_tarball_signature 1
Name: nbdkit
Version: 1.3.2
Release: 1%{?dist}
@ -25,6 +28,11 @@ License: BSD
URL: https://github.com/libguestfs/nbdkit
Source0: http://libguestfs.org/download/nbdkit/%{name}-%{version}.tar.gz
%if 0%{verify_tarball_signature}
Source1: http://libguestfs.org/download/nbdkit/%{name}-%{version}.tar.gz.sig
# Keyring used to verify tarball signature.
Source2: libguestfs.keyring
%endif
%if 0%{?rhel} == 7
# On RHEL 7, nothing in the virt stack is shipped on aarch64 and
@ -60,6 +68,9 @@ BuildRequires: python3-devel
BuildRequires: ocaml >= 4.02.2
%endif
BuildRequires: ruby-devel
%if 0%{verify_tarball_signature}
BuildRequires: gnupg2
%endif
# Only for running the test suite:
BuildRequires: /usr/bin/certtool
@ -393,6 +404,10 @@ plugins for %{name}.
%prep
%if 0%{verify_tarball_signature}
tmphome="$(mktemp -d)"
gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%endif
%setup -q
%autopatch -p1
@ -666,6 +681,7 @@ popd
- New upstream version 1.3.2.
- Remove patches now upstream.
- New ext2 plugin and subpackage, requires e2fsprogs-devel to build.
- Enable tarball signatures.
* Wed Jun 6 2018 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-1
- New upstream version 1.3.1.