commit 670582c0a338e37ef6a2d844b7f8aa508eb2ae3b
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Mar 23 17:03:06 2018 +0100
Add ldconfig_scriptlets
vlc.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vlc.spec b/vlc.spec
index 840c6ec..b33e8ff 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -372,6 +372,10 @@ rm -rf %{buildroot}/%{_datadir}/macosx
%find_lang %{name}
+%ldconfig_scriptlets
+%ldconfig_scriptlets core
+%ldconfig_scriptlets extras
+
%post
if [ $1 == 1 ] ; then
%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins &>/dev/null
@@ -383,8 +387,6 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
fi
%{_bindir}/update-desktop-database %{_datadir}/applications &>/dev/null || :
-%post core -p /sbin/ldconfig
-
%postun
%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins &>/dev/null
%{_bindir}/update-desktop-database %{_datadir}/applications &>/dev/null
@@ -393,8 +395,6 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fi || :
-%postun core -p /sbin/ldconfig
-
%posttrans core
%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins &>/dev/null || :