diff mbox series

[ndctl,1/2] ndctl.spec.in: remove obsolete ldconfig scriptlets

Message ID 20190131003518.10934-1-vishal.l.verma@intel.com (mailing list archive)
State Accepted
Commit 27e8d272b88bf03b1e931202f58094771c27ebef
Headers show
Series [ndctl,1/2] ndctl.spec.in: remove obsolete ldconfig scriptlets | expand

Commit Message

Verma, Vishal L Jan. 31, 2019, 12:35 a.m. UTC
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>

Pulled in via Fedora packaging.

References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
[vishal: update patch so it applies to ndctl.spec.in]
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 ndctl.spec.in | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/ndctl.spec.in b/ndctl.spec.in
index bc65a47..25d5296 100644
--- a/ndctl.spec.in
+++ b/ndctl.spec.in
@@ -101,13 +101,9 @@  find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %check
 make check
 
-%post -n LNAME -p /sbin/ldconfig
+%ldconfig_scriptlets -n LNAME
 
-%postun -n LNAME -p /sbin/ldconfig
-
-%post -n DAX_LNAME -p /sbin/ldconfig
-
-%postun -n DAX_LNAME -p /sbin/ldconfig
+%ldconfig_scriptlets -n DAX_LNAME
 
 %define bashcompdir %(pkg-config --variable=completionsdir bash-completion)