public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Mailhot <nim@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: manage an astronomical amount of distprefixes, to handle packagers that mix several sources in the same spec file
Date: Mon, 10 Aug 2026 09:34:50 GMT	[thread overview]
Message-ID: <178635449073.1.11780456641835801909.rpms-fedora-release-e97935f77531@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : e97935f775310fd8756761d3a63cb282673c2543
            Author : Nicolas Mailhot <nim@fedoraproject.org>
            Date   : 2019-04-14T16:02:42+02:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/e97935f775310fd8756761d3a63cb282673c2543?branch=f45

            Log:
            manage an astronomical amount of distprefixes, to handle packagers that mix several sources in the same spec file

Signed-off-by: Nicolas Mailhot <nim@fedoraproject.org>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index a703ee1..cf41682 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -479,9 +479,9 @@ install -d -m 755 %{buildroot}%{_rpmconfigdir}/macros.d
 cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.dist << EOF
 # dist macros.
 
-%%fedora                %{dist_version}
+%%fedora              %{dist_version}
 %%__bootstrap         ~bootstrap
-%%dist                %%{?distprefix}.fc%{dist_version}%%{?with_bootstrap:%{__bootstrap}}
+%%dist                %%{!?distprefix0:%%{?distprefix}}%%{expand:%%{lua:for i=0,9999 do print("%%{?distprefix" .. i .."}") end}}.fc%{dist_version}%%{?with_bootstrap:%{__bootstrap}}
 %%fc%{dist_version}                1
 EOF
 

                 reply	other threads:[~2026-08-10  9: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=178635449073.1.11780456641835801909.rpms-fedora-release-e97935f77531@fedoraproject.org \
    --to=nim@fedoraproject.org \
    --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