Use ldconfig scriptlets

https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
This commit is contained in:
Lukas Slebodnik 2018-02-26 15:26:46 +01:00
parent 3a6764e343
commit 46dc8a0bf0

View File

@ -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