public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Set %rhel and %eln when appropriate
@ 2026-08-10  9:35 Troy Dawson
  0 siblings, 0 replies; only message in thread
From: Troy Dawson @ 2026-08-10  9:35 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : e57de46a3569218ed0f7d11e133c1bd61386125a
            Author : Troy Dawson <tdawson@redhat.com>
            Date   : 2020-08-11T10:26:12-07:00
            Stats  : +15/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/e57de46a3569218ed0f7d11e133c1bd61386125a?branch=f45

            Log:
            Set %rhel and %eln when appropriate

Signed-off-by: Troy Dawson <tdawson@redhat.com>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index 736b40d..748d7d5 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -1,5 +1,6 @@
 %define release_name Rawhide
 %define dist_version 34
+%define rhel_dist_version 9
 %define bug_version rawhide
 
 # Change this when branching to fNN
@@ -14,7 +15,7 @@
 Summary:        Fedora release files
 Name:           fedora-release
 Version:        34
-Release:        0.1
+Release:        0.2
 License:        MIT
 URL:            https://fedoraproject.org/
 
@@ -736,12 +737,18 @@ install -d -m 755 %{buildroot}%{_rpmconfigdir}/macros.d
 cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.dist << EOF
 # dist macros.
 
-%if !0%{?eln}
+%%__bootstrap         ~bootstrap
+%if 0%{?eln}
+%%rhel              %{rhel_dist_version}
+%%el%{rhel_dist_version}                1
+# Although eln is set in koji tags, we put it in the macros.dist file for local and mock builds.
+%%eln              %{eln}
+%%dist                %%{!?distprefix0:%%{?distprefix}}%%{expand:%%{lua:for i=0,9999 do print("%%{?distprefix" .. i .."}") end}}.el%%{eln}%%{?with_bootstrap:%{__bootstrap}}
+%else
 %%fedora              %{dist_version}
 %%fc%{dist_version}                1
-%endif
-%%__bootstrap         ~bootstrap
 %%dist                %%{!?distprefix0:%%{?distprefix}}%%{expand:%%{lua:for i=0,9999 do print("%%{?distprefix" .. i .."}") end}}.fc%%{fedora}%%{?with_bootstrap:%{__bootstrap}}
+%endif
 EOF
 
 # Install licenses
@@ -909,10 +916,13 @@ ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.or
 
 
 %changelog
+* Tue Aug 11 2020 Troy Dawson <tdawson@redhat.com> - 34-0.2
+- Set %rhel and %eln when appropriate
+
 * Mon Aug 10 2020 Tomas Hrcka <thrcka@redhat.com> - 34-0.1
 - Setup for rawhide being F34
 
-* Thu Aug 06 2020 Ben Cotton <tdawson@redhat.com> - 33-0.11
+* Mon Aug 10 2020 Troy Dawson <tdawson@redhat.com> - 33-0.11
 - No %fedora set for eln
 
 * Thu Aug 06 2020 Ben Cotton <bcotton@fedoraproject.org> - 33-0.10

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

only message in thread, other threads:[~2026-08-10  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10  9:35 [rpms/fedora-release] f45: Set %rhel and %eln when appropriate Troy Dawson

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