public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: The %srcdir macro is presuming the version will have a format `x.y.z`
@ 2026-11-23  9:30 Florian Festi
  0 siblings, 0 replies; only message in thread
From: Florian Festi @ 2026-11-23  9:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : ebc71181c94b88587b33451b2ddb6d47a674238a
            Author : Florian Festi <ffesti@redhat.com>
            Date   : 2017-05-03T16:17:00+02:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/ebc71181c94b88587b33451b2ddb6d47a674238a?branch=pmatilai-v6

            Log:
            The %srcdir macro is presuming the version will have a format `x.y.z`

and fails when presented with a longer version `4.13.0.1`.

In addition, the download location changed from `rpm.org` to `ftp.rpm.org`.

Resolves: #1447417

---
diff --git a/rpm.spec b/rpm.spec
index 73f3a51..5f6d07e 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -24,7 +24,7 @@
 %global rpmver 4.13.0.1
 #global snapver rc2
 %global srcver %{version}%{?snapver:-%{snapver}}
-%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(v=%{version}; echo ${v%.*}.x)}
+%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
 
 %define bdbname libdb
 %define bdbver 5.3.15
@@ -36,7 +36,7 @@ Version: %{rpmver}
 Release: %{?snapver:0.%{snapver}.}20%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
-Source0: http://rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
+Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
 %if %{with int_bdb}
 Source1: db-%{bdbver}.tar.gz
 %else

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

only message in thread, other threads:[~2026-11-23  9:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:30 [rpms/rpm] pmatilai-v6: The %srcdir macro is presuming the version will have a format `x.y.z` Florian Festi

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