From 8ec0fbd29862747ae2bb2ab051e294d845abf03c Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Thu, 17 Jan 2019 22:59:06 +0100 Subject: [PATCH] Switch to %ldconfig_scriptlets --- libtdb.spec | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libtdb.spec b/libtdb.spec index d36426d..d97fc99 100644 --- a/libtdb.spec +++ b/libtdb.spec @@ -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