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)