From: Igor Gnatenko <[email protected]>

Pulled in via Fedora packaging.

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

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)
 
-- 
2.20.1

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to