diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2012-08-01 19:35:06 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-01 21:11:43 +0200 |
commit | e0c977418f90260aa66cce41b1f8f294660ed734 (patch) | |
tree | c3c079f27d49cb48beeb1fe3d49ab2ad0e3310f5 | |
parent | 25f8fac2489fd209d603acb2b494f7c72968e9bb (diff) | |
download | sssd-e0c977418f90260aa66cce41b1f8f294660ed734.tar.gz sssd-e0c977418f90260aa66cce41b1f8f294660ed734.tar.bz2 sssd-e0c977418f90260aa66cce41b1f8f294660ed734.zip |
Require and call ldconfig from subpackages if appropriate
The SSSD subpackages were not calling ldconfig even though they contain
shared libraries.
-rw-r--r-- | contrib/sssd.spec.in | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index b444b86d..15e9dda4 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -52,9 +52,9 @@ Requires: libipa_hbac = %{version}-%{release} Requires: libsss_idmap = %{version}-%{release} Requires: cyrus-sasl-gssapi Requires: keyutils-libs -Requires(post): initscripts chkconfig /sbin/ldconfig +Requires(post): initscripts chkconfig Requires(preun): initscripts chkconfig -Requires(postun): initscripts chkconfig /sbin/ldconfig +Requires(postun): initscripts chkconfig %global servicename sssd %global sssdstatedir %{_localstatedir}/lib/sss @@ -130,6 +130,8 @@ services for projects like FreeIPA. Summary: SSSD Client libraries for NSS and PAM Group: Applications/System License: LGPLv3+ +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description client Provides the libraries needed by the PAM and NSS stacks to connect to the SSSD @@ -152,6 +154,8 @@ use with ldap_default_authtok_type = obfuscated_password. Summary: FreeIPA Idmap library Group: Development/Libraries License: LGPLv3+ +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description -n libsss_idmap Utility library to SIDs to Unix uids and gids @@ -169,6 +173,8 @@ Utility library to SIDs to Unix uids and gids Summary: FreeIPA HBAC Evaluator library Group: Development/Libraries License: LGPLv3+ +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description -n libipa_hbac Utility library to validate FreeIPA HBAC rules for authorization requests @@ -197,6 +203,8 @@ used by Python applications. Summary: A library to allow communication between SUDO and SSSD Group: Development/Libraries License: LGPLv3+ +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description -n libsss_sudo A utility library to allow communication between SUDO and SSSD @@ -487,7 +495,6 @@ A utility library to allow communication between Autofs and SSSD %endif %post -/sbin/ldconfig /sbin/chkconfig --add %{servicename} if [ $1 -ge 1 ] ; then @@ -500,12 +507,22 @@ if [ $1 = 0 ]; then /sbin/chkconfig --del %{servicename} fi -%postun -p /sbin/ldconfig - %post client -p /sbin/ldconfig %postun client -p /sbin/ldconfig +%post -n libipa_hbac -p /sbin/ldconfig + +%postun -n libipa_hbac -p /sbin/ldconfig + +%post -n libsss_idmap -p /sbin/ldconfig + +%postun -n libsss_idmap -p /sbin/ldconfig + +%post -n libsss_sudo -p /sbin/ldconfig + +%postun -n libsss_sudo -p /sbin/ldconfig + %changelog * Mon Mar 15 2010 Stephen Gallagher <sgallagh@redhat.com> - @PACKAGE_VERSION@-0@PRERELEASE_VERSION@ - Automated build of the SSSD |