summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-10-28 16:14:24 +0200
committerRemi Collet <remi@php.net>2022-10-28 16:14:24 +0200
commit27243de3f527870861632096d49c676daa64f5fe (patch)
tree98b33ccea314376a79f0792950c1f521c9f2efae
parent2b474395f763f9e6e6f2cc4aa254c5456f7cb0cf (diff)
check archive signature
-rw-r--r--rnp.spec14
1 files changed, 11 insertions, 3 deletions
diff --git a/rnp.spec b/rnp.spec
index 5a62524..e3baf26 100644
--- a/rnp.spec
+++ b/rnp.spec
@@ -23,11 +23,15 @@
Name: rnp
Summary: OpenPGP (RFC4880) tools
Version: 0.16.2
-Release: 2%{?dist}
+Release: 3%{?dist}
+# From LICENSE.md
License: BSD-2-Clause and BSD-3-Clause and Apache-2.0
URL: https://github.com/rnpgp/rnp
-Source0: https://github.com/rnpgp/rnp/archive/refs/tags/v%{version}.tar.gz
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Source1: %{url}/releases/download/v%{version}/v%{version}.tar.gz.asc
+# See https://www.rnpgp.org/openpgp_keys/
+Source2: %{name}-keyring.gpg
BuildRequires: cmake >= 3.14
BuildRequires: gcc
@@ -71,7 +75,8 @@ for %{libname}.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
+%{?gpgverify:%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'}
%build
@@ -114,6 +119,9 @@ for %{libname}.
%changelog
+* Fri Oct 28 2022 Remi Collet <remi@remirepo.net> - 0.16.2-3
+- check archive signature
+
* Fri Oct 28 2022 Remi Collet <remi@remirepo.net> - 0.16.2-2
- switch from botan-2 to openssl on EL-8