public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sparse] f45: Use the kernel.org cgit snapshot tarball as Source0
@ 2026-11-05 15:34 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-11-05 15:34 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 15:34 [rpms/sparse] f45: Use the kernel.org cgit snapshot tarball as Source0 Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox