From 81639685389ee8ad0bb4cee610a035609a9bd0b2 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 19 Mar 2018 11:08:04 +0100 Subject: [PATCH] Use ldconfig_scriptlets macro --- xorg-x11-drv-nvidia.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec index 10d7ab2..80007c1 100644 --- a/xorg-x11-drv-nvidia.spec +++ b/xorg-x11-drv-nvidia.spec @@ -431,9 +431,8 @@ fi %{_grubby} --args='%{_dracutopts}' &>/dev/null || : %endif -%post libs -p /sbin/ldconfig - -%post cuda-libs -p /sbin/ldconfig +%ldconfig_scriptlets libs +%ldconfig_scriptlets cuda-libs %if 0%{?rhel} == 6 %posttrans @@ -450,9 +449,6 @@ if [ "$1" -eq "0" ]; then [ -f %{_sysconfdir}/X11/xorg.conf ] && mv %{_sysconfdir}/X11/xorg.conf %{_sysconfdir}/X11/xorg.conf.nvidia_uninstalled &>/dev/null fi ||: -%postun libs -p /sbin/ldconfig - -%postun cuda-libs -p /sbin/ldconfig %files %license nvidiapkg/LICENSE