public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Festi <ffesti@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: The %srcdir macro is presuming the version will have a format `x.y.z`
Date: Mon, 23 Nov 2026 09:30:55 GMT	[thread overview]
Message-ID: <179542625560.1.16374819274198216361.rpms-rpm-ebc71181c94b@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-23  9:30 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=179542625560.1.16374819274198216361.rpms-rpm-ebc71181c94b@fedoraproject.org \
    --to=ffesti@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