public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icecream] rawhide: add sysusers compatibility handling
@ 2026-07-29 11:52 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-29 11:52 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/icecream
            Branch : rawhide
            Commit : 77b9a5e98b7b1a46ee57f24e7fb984b8d1dacd8e
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-07-29T09:54:13+02:00
            Stats  : +3/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/icecream/c/77b9a5e98b7b1a46ee57f24e7fb984b8d1dacd8e?branch=rawhide

            Log:
            add sysusers compatibility handling

This will be useful for EPEL 9.

[skip changelog]

---
diff --git a/icecream.spec b/icecream.spec
index 50abc86..cf90e54 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -22,7 +22,7 @@ Source13: icecream-scheduler.xml
 Source14: icecream.sysusers.conf
 
 BuildRequires: gcc-c++
-BuildRequires: systemd
+BuildRequires: systemd systemd-rpm-macros
 BuildRequires: libcap-ng-devel
 BuildRequires: lzo-devel libzstd-devel libarchive-devel
 BuildRequires: docbook2X
@@ -36,6 +36,7 @@ Requires(post):   systemd
 Requires(preun):  systemd
 Requires(postun): systemd
 Requires(post):   findutils
+%{?sysusers_requires_compat}
 
 %if %{with selinux}
 # For SELinux protection:
@@ -172,6 +173,7 @@ fi;
 install -m0644 -D fedora/icecream.sysusers.conf %{buildroot}%{_sysusersdir}/icecream.conf
 
 %pre
+%sysusers_create_compat %{SOURCE14}
 %if %{with selinux}
 for selinuxvariant in %{selinux_variants}; do
 	%saveFileContext ${selinuxvariant}

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

only message in thread, other threads:[~2026-07-29 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 11:52 [rpms/icecream] rawhide: add sysusers compatibility handling Michal Schmidt

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