Verify an upstream archive signature

This commit is contained in:
Petr Písař 2021-01-13 09:33:11 +01:00
parent 7f2032769b
commit 91ffda4709
4 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
time-1.7.tar.gz
/time-1.8.tar.gz
/time-1.9.tar.gz
/time-1.9.tar.gz.sig

Binary file not shown.

View File

@ -1 +1,2 @@
SHA512 (time-1.9.tar.gz) = 5c6dabbbe71e9103a47b892b86bb914c1704122d4fe7dff1e2cbd28503297163118d295077d8e062b035d673a1f91c36f8a45c7383f374fd766942b32bde4406
SHA512 (time-1.9.tar.gz.sig) = cfcd147e237639144d9a37346ea3fce827544320faf8629d92ccea0b27b7c943de523ed54c50fdbafd4f9d77458954e335c0ea7a6462f157d12e6a5e5478beb0

View File

@ -40,7 +40,10 @@ Release: 13%{?dist}
# tests/time-posix-quiet.sh: GPLv3+
License: GPLv3+ and GFDL
Url: https://www.gnu.org/software/%{name}/
Source: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
# Obtained from a key server
Source2: gpgkey-F576AAAC1B0FF849792D8CB129A794FD2272BC86.gpg
# Fix measuring time when a clock experiences a jump, bug #1004416,
# <http://lists.gnu.org/archive/html/bug-gnu-utils/2013-09/msg00003.html>
Patch0: time-1.8-Prefer-clock_gettime-CLOCK_MONOTONIC.patch
@ -58,6 +61,7 @@ BuildRequires: automake
BuildRequires: bash
BuildRequires: coreutils
BuildRequires: gcc
BuildRequires: gnupg2
BuildRequires: make
BuildRequires: texinfo
# Tests
@ -69,6 +73,7 @@ the resources used by that program while it is running, and displays
the results.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%setup -q
%patch0 -p1
%patch1 -p1
@ -98,6 +103,7 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%changelog
* Wed Jan 13 2021 Petr Pisar <ppisar@redhat.com> - 1.9-13
- Update URL and Source addresses (thanks to Robert Scheck)
- Verify an upstream archive signature
* Mon Nov 16 2020 Petr Pisar <ppisar@redhat.com> - 1.9-12
- Fix a regression in closing a file descriptor if no --output was given