public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Introduce %with_ostree_desktop macro.
@ 2026-08-10 9:35 Aleksei Bavshin
0 siblings, 0 replies; only message in thread
From: Aleksei Bavshin @ 2026-08-10 9:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : 1b1d57869ccee69a2687adb3a8f5d81825238ecb
Author : Aleksei Bavshin <alebastr@fedoraproject.org>
Date : 2023-01-09T18:08:54+00:00
Stats : +8/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/1b1d57869ccee69a2687adb3a8f5d81825238ecb?branch=f45
Log:
Introduce %with_ostree_desktop macro.
The macro is added to avoid listing all ostree desktop editions.
At 2 it was fine, at 3 it gets tedious, if we add more variants it'll
become unmaintainable.
---
diff --git a/fedora-release.spec b/fedora-release.spec
index 58b6e76..e4b5c76 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -64,6 +64,10 @@
%bcond_without sway
%endif
+%if %{with silverblue} || %{with kinoite}
+%global with_ostree_desktop 1
+%endif
+
%global dist %{?eln:.eln%{eln}}
# Changes should be submitted as pull requests under
@@ -668,7 +672,7 @@ itself as Fedora Kinoite.
%endif
-%if %{with silverblue} || %{with kinoite}
+%if %{with ostree_desktop}
%package ostree-desktop
Summary: Configuration package for rpm-ostree variants to add rpm-ostree polkit rules
@@ -1283,12 +1287,12 @@ install -Dm0644 %{SOURCE26} -t %{buildroot}%{_prefix}/lib/systemd/system-preset/
install -Dm0644 %{SOURCE27} -t %{buildroot}%{_prefix}/lib/systemd/system-preset/
%endif
-%if %{with silverblue} || %{with kinoite}
+%if %{with ostree_desktop}
# Install rpm-ostree polkit rules
install -Dm0644 %{SOURCE17} -t %{buildroot}%{_datadir}/polkit-1/rules.d/
%endif
-%if %{with iot} || %{with silverblue} || %{with kinoite}
+%if %{with iot} || %{with ostree_desktop}
# Statically enable rpm-ostree-countme timer
install -dm0755 %{buildroot}%{_unitdir}/timers.target.wants/
ln -snf %{_unitdir}/rpm-ostree-countme.timer %{buildroot}%{_unitdir}/timers.target.wants/
@@ -1545,7 +1549,7 @@ ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.or
%endif
-%if %{with silverblue} || %{with kinoite}
+%if %{with ostree_desktop}
%files ostree-desktop
%attr(0644,root,root) %{_prefix}/share/polkit-1/rules.d/org.projectatomic.rpmostree1.rules
%endif
^ 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: Introduce %with_ostree_desktop macro Aleksei Bavshin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox