From 0ab451df92973b2da437c871cbcd67858bf583b5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:40:28 +0100 Subject: [PATCH] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- ndctl.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ndctl.spec b/ndctl.spec index 8a4f225..344ce0b 100644 --- a/ndctl.spec +++ b/ndctl.spec @@ -101,13 +101,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %check make check -%post -n ndctl-libs -p /sbin/ldconfig +%ldconfig_scriptlets -n ndctl-libs -%postun -n ndctl-libs -p /sbin/ldconfig - -%post -n daxctl-libs -p /sbin/ldconfig - -%postun -n daxctl-libs -p /sbin/ldconfig +%ldconfig_scriptlets -n daxctl-libs %define bashcompdir %(pkg-config --variable=completionsdir bash-completion)