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 # file path
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
%post -p /sbin/ldconfig %ldconfig_scriptlets
%postun -p /sbin/ldconfig
%files %files
%dir %{_libdir}/ldb %dir %{_libdir}/ldb
@ -224,8 +222,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
%{_includedir}/pyldb.h %{_includedir}/pyldb.h
%{_mandir}/man*/Py*.gz %{_mandir}/man*/Py*.gz
%post -n python2-ldb -p /sbin/ldconfig %ldconfig_scriptlets -n python2-ldb
%postun -n python2-ldb -p /sbin/ldconfig
%if 0%{?with_python3} %if 0%{?with_python3}
@ -239,8 +236,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
%{_libdir}/libpyldb-util.cpython-*.so %{_libdir}/libpyldb-util.cpython-*.so
%{_libdir}/pkgconfig/pyldb-util.cpython-*.pc %{_libdir}/pkgconfig/pyldb-util.cpython-*.pc
%post -n python3-ldb -p /sbin/ldconfig %ldconfig_scriptlets -n python3-ldb
%postun -n python3-ldb -p /sbin/ldconfig
%endif %endif