From 96650fcc567fef36e76ce7ecd5ac3e2843e63ff1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 10 Feb 2018 18:45:53 +0100 Subject: [PATCH] Switch to %ldconfig_scriptlets Reference: https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets Signed-off-by: Igor Gnatenko --- openldap.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openldap.spec b/openldap.spec index 9f518a4..a439c19 100644 --- a/openldap.spec +++ b/openldap.spec @@ -323,9 +323,7 @@ rm -f %{buildroot}%{_libdir}/*.la # because we do not want files in %{_libdir}/ rm -f %{buildroot}%{_localstatedir}/openldap-data/DB_CONFIG.example rmdir %{buildroot}%{_localstatedir}/openldap-data -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %pre servers @@ -430,7 +428,6 @@ exit 0 %files %doc openldap-%{version}/ANNOUNCEMENT %doc openldap-%{version}/CHANGES -%{!?_licensedir:%global license %%doc} %license openldap-%{version}/COPYRIGHT %license openldap-%{version}/LICENSE %doc openldap-%{version}/README