From 46dc8a0bf00ce995b8e296034e9856881a1e1e3f Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Feb 26 2018 14:28:35 +0000 Subject: Use ldconfig scriptlets https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets --- diff --git a/libldb.spec b/libldb.spec index 56b9f93..c35f12a 100644 --- a/libldb.spec +++ b/libldb.spec @@ -173,9 +173,7 @@ cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} # file path rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %dir %{_libdir}/ldb @@ -224,8 +222,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %{_includedir}/pyldb.h %{_mandir}/man*/Py*.gz -%post -n python2-ldb -p /sbin/ldconfig -%postun -n python2-ldb -p /sbin/ldconfig +%ldconfig_scriptlets -n python2-ldb %if 0%{?with_python3} @@ -239,8 +236,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %{_libdir}/libpyldb-util.cpython-*.so %{_libdir}/pkgconfig/pyldb-util.cpython-*.pc -%post -n python3-ldb -p /sbin/ldconfig -%postun -n python3-ldb -p /sbin/ldconfig +%ldconfig_scriptlets -n python3-ldb %endif