public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sparse] f45: Use the kernel.org cgit snapshot tarball as Source0
Date: Thu, 05 Nov 2026 15:34:28 GMT	[thread overview]
Message-ID: <179389286812.1.8030975449826743716.rpms-sparse-5ec0a4c7d03d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/sparse
            Branch : f45
            Commit : 5ec0a4c7d03df0445ae808f0a66769437bb02dd8
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-05T08:20:33-07:00
            Stats  : +12/-15 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/sparse/c/5ec0a4c7d03df0445ae808f0a66769437bb02dd8?branch=f45

            Log:
            Use the kernel.org cgit snapshot tarball as Source0

The URL formerly referenced, in the dist/ directory of kernel.org,
no longer exists: snapshot tarballs were cleaned up and only release
tarballs remain. Reference the cgit-generated snapshot of the exact
git commit instead, so the source is verifiable again. The tarball
contents are identical to the previously used one.

https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

---
diff --git a/.gitignore b/.gitignore
index 07a09ec..5165f02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ sparse-0.4.2.tar.bz2
 /sparse-0.6.4-rc1.tar.xz
 /sparse-0.6.4.tar.xz
 /sparse-0.6.4-gce1a6720f69e.tar.xz
+/sparse-ce1a6720f69e6233ec9abd4e9aae5945e05fda41.tar.gz

diff --git a/sources b/sources
index 4b1b152..9641a05 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sparse-0.6.4-gce1a6720f69e.tar.xz) = d9b5aa0f1bb3ff212429415d82de130cb40aee2aba4bf769bfd5a63e6c78fc762d64f43f8b15ba064a369de4ca2ffac3fb8fd1e4245334e74d8ca4be975cf6e6
+SHA512 (sparse-ce1a6720f69e6233ec9abd4e9aae5945e05fda41.tar.gz) = 24b7ed6b6b0011c8cecb50c7c13e27c3c1bdff56aa7b906c6cebee4e85a2a2a12a0ecff551acecd2e165ab475c7bca7abfbc3c1479f099167d36af2ebd5cd167

diff --git a/sparse.spec b/sparse.spec
index 0261312..1a5bb68 100644
--- a/sparse.spec
+++ b/sparse.spec
@@ -1,22 +1,14 @@
 Name:       sparse
 Version:    0.6.4
 
-# snapshot/rc suffix of the source tarball, or %%{nil} for a final release
-%global rcver gce1a6720f69e
-
-%if "%{?rcver}" != ""
-%global build_ver %{version}-%{rcver}
-%global dotrc .%{rcver}
-%else
-%global build_ver %{version}
-%global dotrc %{nil}
-%endif
-
-Release:    4%{dotrc}%{?dist}.10
+# git snapshot of upstream sparse, taken after the v0.6.4 release
+%global commit ce1a6720f69e6233ec9abd4e9aae5945e05fda41
+
+Release:    4.gce1a6720f69e%{?dist}.11
 Summary:    A semantic parser of source files
 License:    MIT
 URL:        https://sparse.wiki.kernel.org
-Source0:    https://www.kernel.org/pub/software/devel/sparse/dist/sparse-%{build_ver}.tar.xz
+Source0:    https://git.kernel.org/pub/scm/devel/sparse/sparse.git/snapshot/sparse-%{commit}.tar.gz
 
 Patch:      0001-linearize.c-fix-buffer-overrun-warning-from-fortify.patch
 
@@ -43,7 +35,7 @@ that the grouping implies.
 Sparse is primarily used in the development and debugging of the Linux kernel.
 
 %prep
-%autosetup -p1 -n sparse-%{build_ver}
+%autosetup -p1 -n sparse-%{commit}
 
 %build
 %make_build CFLAGS="%{optflags}" HAVE_LLVM=no
@@ -65,6 +57,10 @@ Sparse is primarily used in the development and debugging of the Linux kernel.
 %{_mandir}/man1/*
 
 %changelog
+* Tue Nov 03 2026 Michal Schmidt <mschmidt@redhat.com> - 0.6.4-4.gce1a6720f69e.11
+- Use the kernel.org cgit snapshot tarball as Source0; the tarball formerly
+  referenced is no longer available from the dist/ directory
+
 * Tue Nov 03 2026 Michal Schmidt <mschmidt@redhat.com> - 0.6.4-4.gce1a6720f69e.10
 - Modernize spec: %%license for LICENSE, %%make_build/%%make_install macros
 - Drop obsolete %%clean section and manual buildroot cleanup

                 reply	other threads:[~2026-11-05 15:34 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=179389286812.1.8030975449826743716.rpms-sparse-5ec0a4c7d03d@fedoraproject.org \
    --to=mschmidt@redhat.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