From e72bfebccc114da422f9e6662b72bc0c447122e0 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:40:35 +0100 Subject: [PATCH] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- openscap.spec | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/openscap.spec b/openscap.spec index 75f5a84..035da62 100644 --- a/openscap.spec +++ b/openscap.spec @@ -25,8 +25,6 @@ BuildRequires: dbus-devel BuildRequires: perl-XML-XPath BuildRequires: bzip2 %endif -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig Obsoletes: python2-openscap Obsoletes: openscap-content-sectool Obsoletes: openscap-extra-probes @@ -141,12 +139,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # fix python shebangs pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm -%clean -rm -rf $RPM_BUILD_ROOT - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %doc AUTHORS NEWS README.md