Use ldconfig_scriptlets macro

el9
Nicolas Chauvet 7 years ago
parent 8f9e11dbb9
commit 8163968538

@ -431,9 +431,8 @@ fi
%{_grubby} --args='%{_dracutopts}' &>/dev/null || : %{_grubby} --args='%{_dracutopts}' &>/dev/null || :
%endif %endif
%post libs -p /sbin/ldconfig %ldconfig_scriptlets libs
%ldconfig_scriptlets cuda-libs
%post cuda-libs -p /sbin/ldconfig
%if 0%{?rhel} == 6 %if 0%{?rhel} == 6
%posttrans %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 [ -f %{_sysconfdir}/X11/xorg.conf ] && mv %{_sysconfdir}/X11/xorg.conf %{_sysconfdir}/X11/xorg.conf.nvidia_uninstalled &>/dev/null
fi ||: fi ||:
%postun libs -p /sbin/ldconfig
%postun cuda-libs -p /sbin/ldconfig
%files %files
%license nvidiapkg/LICENSE %license nvidiapkg/LICENSE

Loading…
Cancel
Save