From 801e50437f1780c9f4c8c6f71ccfc4b67a8e99e5 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Feb 17 2017 09:58:05 +0000 Subject: New upstream version 1.3.14. Add GPG signature and mechanics for checking it. --- diff --git a/.gitignore b/.gitignore index 1f47dbb..60c1064 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.build-* /clog /hivex-*.tar.gz +/hivex-1.3.14.tar.gz.sig diff --git a/hivex.spec b/hivex.spec index 30679a2..872093f 100644 --- a/hivex.spec +++ b/hivex.spec @@ -5,15 +5,26 @@ %bcond_with ocaml %endif +# Verify tarball signature with GPGv2. +%global verify_tarball_signature 1 + Name: hivex -Version: 1.3.13 -Release: 12%{?dist} +Version: 1.3.14 +Release: 1%{?dist} Summary: Read and write Windows Registry binary hive files License: LGPLv2 URL: http://libguestfs.org/ Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz +%if 0%{verify_tarball_signature} +Source1: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz.sig +%endif + +# Keyring used to verify tarball signature. +%if 0%{verify_tarball_signature} +Source2: libguestfs.keyring +%endif BuildRequires: perl BuildRequires: perl-devel @@ -48,6 +59,9 @@ BuildRequires: rubygem(minitest) BuildRequires: rubygem(rdoc) BuildRequires: readline-devel BuildRequires: libxml2-devel +%if 0%{verify_tarball_signature} +BuildRequires: gnupg2 +%endif # https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions Provides: bundled(gnulib) @@ -162,6 +176,10 @@ ruby-%{name} contains Ruby bindings for %{name}. %prep +%if 0%{verify_tarball_signature} +tmphome="$(mktemp -d)" +gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} +%endif %setup -q @@ -270,6 +288,10 @@ rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.la %changelog +* Fri Feb 17 2017 Richard W.M. Jones - 1.3.14-1 +- New upstream version 1.3.14. +- Add GPG signature and mechanics for checking it. + * Fri Feb 10 2017 Fedora Release Engineering - 1.3.13-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/libguestfs.keyring b/libguestfs.keyring new file mode 100644 index 0000000..bb3eb55 Binary files /dev/null and b/libguestfs.keyring differ diff --git a/sources b/sources index 3a3c559..446ad80 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -a4c9cb138c0cb839759c54b59e52793f hivex-1.3.13.tar.gz +SHA512 (hivex-1.3.14.tar.gz) = dd7dd52dceda580179a815fc48a2a2c7e8f7234614beceb937fba7e317df17984e65453338160c4c467b70d7d4f9bd61b48aad3ca51e19bd5e4cfbca8ee3adb6 +SHA512 (hivex-1.3.14.tar.gz.sig) = 9e4d6dbc2b05a484deb1541edd7e11f4abbd815dd92c30d9049b4b0bb866202c5d8f575b0f7ff6da732e9b56efaffe9fe940042c4fd204b520c60a6c1a65dfa7