public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Escape %distprefix in the spec
@ 2026-08-10  9:34 Jason Tibbitts
  0 siblings, 0 replies; only message in thread
From: Jason Tibbitts @ 2026-08-10  9:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 098bb02d24b296efdea16272eca5ad78855cc6f6
            Author : Jason Tibbitts <tibbs@math.uh.edu>
            Date   : 2018-08-18T22:16:40+02:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/098bb02d24b296efdea16272eca5ad78855cc6f6?branch=f45

            Log:
            Escape %distprefix in the spec

The point is %distprefix is to allow things like the forge macros to add
things to %dist without overriding its value. But currently %distprefix
gets expanded (to nothing) in the fedora-release specfile, which
prevents it from appearing as desired in the installed macros.dist file.

Signed-off-by: Jason Tibbitts <tibbs@math.uh.edu>
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index 1d2435e..966fbbe 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -11,7 +11,7 @@
 Summary:        Fedora release files
 Name:           fedora-release
 Version:        30
-Release:        0.2
+Release:        0.3
 License:        MIT
 URL:            https://fedoraproject.org/
 
@@ -202,7 +202,7 @@ cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.dist << EOF
 # dist macros.
 
 %%fedora                %{dist_version}
-%%dist                %{?distprefix}.fc%{dist_version}
+%%dist                %%{?distprefix}.fc%{dist_version}
 %%fc%{dist_version}                1
 EOF
 
@@ -347,6 +347,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 /usr/sbin/convert-to-edition
 
 %changelog
+* Fri Aug 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 30-0.3
+- Escape use of the distprefix macro, so it makes it into the macro
+  file instead of being expanded in the spec.
+
 * Wed Aug 15 2018 David Herrmann <dh.herrmann@gmail.com> - 30-0.2
 - Enable dbus user units explicitly
 

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

only message in thread, other threads:[~2026-08-10  9:34 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:34 [rpms/fedora-release] f45: Escape %distprefix in the spec Jason Tibbitts

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