Skip to content

Commit

Permalink
SPEC: build Fedora >= 41 package with sssd user support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Feb 20, 2024
1 parent 7496b18 commit 297a5ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contrib/sssd.spec.in
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 297a5ce

Please sign in to comment.