public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ipcalc] rawhide: Use the signed release tarball and verify its signature
@ 2026-10-04 11:22 Nikos Mavrogiannopoulos
  0 siblings, 0 replies; only message in thread
From: Nikos Mavrogiannopoulos @ 2026-10-04 11:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ipcalc
            Branch : rawhide
            Commit : 4bc44159c1c72d4fb3a9197c3611a6b487c95369
            Author : Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
            Date   : 2026-10-04T13:00:31+02:00
            Stats  : +9/-2 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/ipcalc/c/4bc44159c1c72d4fb3a9197c3611a6b487c95369?branch=rawhide

            Log:
            Use the signed release tarball and verify its signature

Upstream publishes a signed ipcalc-%{version}.tar.xz as a release asset
since 1.1.0; use it instead of the GitLab archive and verify it with
the upstream key in %prep.

---
diff --git a/.gitignore b/.gitignore
index 000121a..5d26d86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,5 @@
 /ipcalc-1.0.2.tar.gz
 /ipcalc-1.0.3.tar.gz
 /ipcalc-1.1.0.tar.gz
+/ipcalc-1.1.0.tar.xz
+/ipcalc-1.1.0.tar.xz.sig

diff --git a/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg b/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
new file mode 100644
index 0000000..b1ee43c
Binary files /dev/null and b/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg differ

diff --git a/ipcalc.spec b/ipcalc.spec
index 60c4a09..b51643f 100644
--- a/ipcalc.spec
+++ b/ipcalc.spec
@@ -4,9 +4,12 @@ Release: %autorelease
 Summary: IP network address calculator
 License: GPL-2.0-or-later
 URL: https://gitlab.com/ipcalc/ipcalc
-Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/ipcalc-%{version}.tar.gz
+Source0: https://gitlab.com/api/v4/projects/ipcalc%%2Fipcalc/packages/generic/ipcalc/%{version}/ipcalc-%{version}.tar.xz
+Source1: https://gitlab.com/api/v4/projects/ipcalc%%2Fipcalc/packages/generic/ipcalc/%{version}/ipcalc-%{version}.tar.xz.sig
+Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
 
 BuildRequires: gcc, libmaxminddb-devel, meson, rubygem-ronn-ng
+BuildRequires: gnupg2
 # for the test suite (JsonEscapeHostname)
 BuildRequires: jq
 Recommends:    libmaxminddb, geolite2-city, geolite2-country
@@ -25,6 +28,7 @@ parsing in scripts, generate random private addresses, resolve an IP address,
 or check the validity of an address.
 
 %prep
+%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
 %autosetup
 
 %build

diff --git a/sources b/sources
index 977eaa4..42f295a 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (ipcalc-1.1.0.tar.gz) = dcb52d599b7e9babf0b8a9c8462a2f7f778f49a194b350598ccfeb7fdbc069cea52665f0ea0681793f7927d2132cdd591e450bfcca608e7b436b2ce288fa4342
+SHA512 (ipcalc-1.1.0.tar.xz) = c5ef7f1dbec8addc2f39ed013c38156a57a46404a001fbfaab0c35be7e1bd6a94c4ace6a2874e620c54eb541b6a4f940852ab030fc978b9f748b2e4824c3c22b
+SHA512 (ipcalc-1.1.0.tar.xz.sig) = 32ec4179666a3b82498fbf3db89925716d04f6e395acfa56ace11bfa8e32750a50118e803267d9441f73da9892168391f6d22ebaaaa5dba72737bba38a5f3644

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-04 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-04 11:22 [rpms/ipcalc] rawhide: Use the signed release tarball and verify its signature Nikos Mavrogiannopoulos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox