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.

Reviewed-by: Scott Poore <[email protected]>
Reviewed-by: Sumit Bose <[email protected]>
Reviewed-by: Tomáš Halman <[email protected]>
  • Loading branch information
alexey-tikhonov committed Aug 1, 2024
1 parent e4ae4d6 commit a7d0bbe
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 @@ -210,6 +210,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 @@ -470,19 +473,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 @@ -885,13 +875,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 a7d0bbe

Please sign in to comment.