public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ipcalc] rawhide: Use the signed release tarball and verify its signature
Date: Sun, 04 Oct 2026 11:22:20 GMT	[thread overview]
Message-ID: <179111294040.1.12913534109110127167.rpms-ipcalc-4bc44159c1c7@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-10-04 11:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179111294040.1.12913534109110127167.rpms-ipcalc-4bc44159c1c7@fedoraproject.org \
    --to=n.mavrogiannopoulos@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox