Skip to content

Commit

Permalink
SPEC: build Fedora >= 39 package with sssd user support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Sep 4, 2023
1 parent 5054056 commit 8f729f7
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} >= 39 || 0%{?rhel}
%global sssd_user sssd
%else
%global sssd_user root
Expand Down Expand Up @@ -188,7 +188,7 @@ Requires: (libsss_autofs%{?_isa} = %{version}-%{release} if autofs)
Requires: (sssd-nfs-idmap = %{version}-%{release} if libnfsidmap)
Requires: libsss_idmap = %{version}-%{release}
Requires: libsss_certmap = %{version}-%{release}
%if 0%{?rhel}
%if 0%{?fedora} >= 39 || 0%{?rhel}
Requires(pre): shadow-utils
%endif
%{?systemd_requires}
Expand Down Expand Up @@ -436,7 +436,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} >= 39 || 0%{?rhel}
%package polkit-rules
Summary: Rules for polkit integration for SSSD
Group: Applications/System
Expand Down Expand Up @@ -552,7 +552,7 @@ autoreconf -ivf
%if %{build_subid}
--with-subid \
%endif
%if 0%{?fedora}
%if 0%{?fedora} && 0%{?fedora} < 39
--disable-polkit-rules-path \
%endif
%if %{build_passkey}
Expand Down Expand Up @@ -806,7 +806,7 @@ done
%{_datadir}/systemtap/tapset/sssd_functions.stp
%{_mandir}/man5/sssd-systemtap.5*

%if 0%{?rhel}
%if 0%{?fedora} >= 39 || 0%{?rhel}
%files polkit-rules
%{_datadir}/polkit-1/rules.d/*
%endif
Expand Down Expand Up @@ -1002,7 +1002,7 @@ done
%config(noreplace) %{_sysconfdir}/krb5.conf.d/sssd_enable_passkey
%endif

%if 0%{?rhel}
%if 0%{?fedora} >= 39 || 0%{?rhel}
%pre common
getent group sssd >/dev/null || groupadd -r sssd
getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "User for sssd" sssd
Expand Down

0 comments on commit 8f729f7

Please sign in to comment.