From 4e90bb08240beb6b84783b5f0f8d1910d5c46c1b Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Fri, 1 Sep 2023 19:39:40 +0200 Subject: [PATCH] SPEC: build Fedora >= 41 package with sssd user support --- contrib/sssd.spec.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index d03c3a0e1bd..1afade24160 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1,7 +1,7 @@ # SSSD SPEC file for Fedora 34+ and RHEL-9+ # define SSSD user -%if 0%{?rhel} +%if 0%{?fedora} >= 41 || 0%{?rhel} %global sssd_user sssd %else %global sssd_user root @@ -200,7 +200,7 @@ Requires: libsss_idmap = %{version}-%{release} Requires: libsss_certmap = %{version}-%{release} Requires(post): coreutils Requires(postun): coreutils -%if 0%{?rhel} +%if 0%{?fedora} >= 41 || 0%{?rhel} Requires(pre): shadow-utils %endif %{?systemd_requires} @@ -449,7 +449,7 @@ Requires: sssd-common = %{version}-%{release} Provides the D-Bus responder of the SSSD, called the InfoPipe, that allows the information from the SSSD to be transmitted over the system bus. -%if 0%{?rhel} +%if 0%{?fedora} >= 41 || 0%{?rhel} %package polkit-rules Summary: Rules for polkit integration for SSSD Group: Applications/System @@ -567,7 +567,7 @@ autoreconf -ivf %if %{build_subid} --with-subid \ %endif -%if 0%{?fedora} +%if 0%{?fedora} && 0%{?fedora} < 41 --disable-polkit-rules-path \ %endif %if %{build_passkey} @@ -828,7 +828,7 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %endif -%if 0%{?rhel} +%if 0%{?fedora} >= 41 || 0%{?rhel} %files polkit-rules %{_datadir}/polkit-1/rules.d/* %endif @@ -1027,7 +1027,7 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %config(noreplace) %{_sysconfdir}/krb5.conf.d/sssd_enable_passkey %endif -%if 0%{?rhel} +%if 0%{?fedora} >= 41 || 0%{?rhel} %pre common %if %{use_sysusers} %sysusers_create_compat contrib/sssd.sysusers