Skip to content

Commit

Permalink
SPEC: merge 'sssd-polkit-rules' into 'sssd-common'
Browse files Browse the repository at this point in the history
'p11_child' runs under non-privileged user and thus requires
polkit-rules by default.
  • Loading branch information
alexey-tikhonov committed Jul 23, 2024
1 parent 71160e3 commit 0ac0b6f
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions contrib/sssd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ License: GPL-3.0-or-later
Obsoletes: libsss_simpleifp < 2.9.0
Obsoletes: libsss_simpleifp-debuginfo < 2.9.0
%endif
%if %{use_sssd_user}
Obsoletes: sssd-polkit-rules < 2.10.0
%endif
# Requires
# due to ABI changes in 1.1.30/1.2.0
Requires: libldb >= %{ldb_version}
Expand Down Expand Up @@ -467,19 +470,6 @@ 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 %{use_sssd_user}
%package polkit-rules
Summary: Rules for polkit integration for SSSD
Group: Applications/System
License: GPL-3.0-or-later
Requires: polkit >= 0.106
Requires: sssd-common = %{version}-%{release}

%description polkit-rules
Provides rules for polkit integration with SSSD. This is required
for smartcard support.
%endif

%if 0%{?rhel} == 9
%package -n libsss_simpleifp
Summary: The SSSD D-Bus responder helper library
Expand Down Expand Up @@ -882,13 +872,11 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/sssd.conf
%if %{use_sysusers}
%{_sysusersdir}/sssd.conf
%endif


%if %{use_sssd_user}
%files polkit-rules
%{_datadir}/polkit-1/rules.d/*
%endif


%files ldap -f sssd_ldap.lang
%license COPYING
%{_libdir}/%{name}/libsss_ldap.so
Expand Down

0 comments on commit 0ac0b6f

Please sign in to comment.