verify GPG signature of upstream tarball when building the package

This commit is contained in:
Kamil Dudka 2023-01-09 10:44:40 +01:00
parent a98bf28f04
commit cc71597c8b
4 changed files with 59 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/libnice-0.1.[0-9][0-9].tar.gz
/libnice-0.1.[0-9][0-9].tar.gz.asc

View File

@ -1,15 +1,22 @@
Name: libnice
Version: 0.1.21
Release: 1%{?dist}
Release: 2%{?dist}
Summary: GLib ICE implementation
License: LGPLv2 and MPLv1.1
URL: https://nice.freedesktop.org/wiki/
URL: https://nice.freedesktop.org/
Source0: https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
Source1: https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz.asc
# gpg --recv-keys 1D388E5A4ED9A2BB
# gpg --output olivier.pgp --armor --export olivier.crete@ocrete.ca
Source2: olivier.pgp
# Build against the new gupnp-igd
Patch0: libnice-gupnp-1.6.patch
BuildRequires: glib2-devel
BuildRequires: gnupg2
BuildRequires: gnutls-devel >= 2.12.0
BuildRequires: gobject-introspection-devel
BuildRequires: gstreamer1-devel >= 0.11.91
@ -50,6 +57,7 @@ developing applications that use %{name}.
%prep
%autosetup -p1
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
# disable tests that don't work in koji environment
sed \
@ -99,6 +107,9 @@ sed \
%changelog
* Mon Jan 09 2023 Kamil Dudka <kdudka@redhat.com> - 0.1.21-2
- verify GPG signature of upstream tarball when building the package
* Sun Jan 08 2023 Stefan Becker <chemobejk@gmail.com> - 0.1.21-1
- Update to 0.1.21 (#2158912)

44
olivier.pgp Normal file
View File

@ -0,0 +1,44 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGiBD++e58RBAD7/GyewUb3WQJ6xgiwxWNzNQzVDh0N3+BmkLz4ljof87pzsYr6
s8S4XTHgq+V7uV/1Fx9aOH9ke6mZnbhESAZUPLfLdcZF+VcsE6N8vpb/tyV7fquN
PPQ1jb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wpO0jp8DOQdL14ZPYR3yTx1cmjuZVwk9PkSWVHLLYOHm1CBHw5P/
aLTrZccchz6Tpq5Vy4P53sUJO7iUNpmF1exMUW4A2+XRtcwRC+u6Bn8aenrGZXPq
p8lqcz0FuYhLaASVGtWJAqp/AHeITwQYEQIADwIbDAUCWrZplAUJHNkhbwAKCRAd
OI5aTtmiu3LZAJ9JueQbqA7t4N/OSttHJu1KyTs4HwCfR+16UYPqO4HitgmY7cdn
AhB1cJM=
=drtG
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1 +1,2 @@
SHA512 (libnice-0.1.21.tar.gz) = acbd1e0e8aacb0a65cad5b70b470a74a7c4a4f1306bc4e17cd4fd899f2fae2bb538bd099e6c0f9cba6bb9a38e95bc14087aa4f77f6aa5b70d6398179783c6e26
SHA512 (libnice-0.1.21.tar.gz.asc) = cf996afde729869d5d2bfa271a423b3fb664c442d5b3145dfcfdc85bc1d1fba23cfc2e840ef8e413446c7c82c5cc976b6d03fc5f6bb62d564948fbe96944b1d2