Switch to %ldconfig_scriptlets

This commit is contained in:
Lukas Slebodnik 2019-01-17 22:59:06 +01:00
parent 4e552a1d46
commit 8ec0fbd298

View File

@ -137,20 +137,14 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
%{python3_sitearch}/_tdb_text.py
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%if 0%{?with_python2}
%post -n python2-tdb -p /sbin/ldconfig
%postun -n python2-tdb -p /sbin/ldconfig
%ldconfig_scriptlets -n python2-tdb
%endif
%if 0%{?with_python3}
%post -n python3-tdb -p /sbin/ldconfig
%postun -n python3-tdb -p /sbin/ldconfig
%ldconfig_scriptlets -n python3-tdb
%endif
%changelog