]> git.pld-linux.org Git - packages/kde4-calligra.git/commitdiff
- update desktop database and icon caches in post scriptlets
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 29 Jun 2012 09:17:26 +0000 (09:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kde4-calligra.spec -> 1.15

kde4-calligra.spec

index d87a87ed8c06640a77028284ec180c53a437bc8d..68d2021d3a580b0384a92214f010d7c213604e4b 100644 (file)
@@ -146,6 +146,8 @@ Summary:    Calligra - common files and libraries
 Summary(pl.UTF-8):     Calligra - wspólne pliki i biblioteki
 Group:         X11/Applications
 Requires:      kde4-kdebase-workspace >= %{kdever}
+Requires:      desktop-file-utils
+Requires:      hicolor-icon-theme
 Obsoletes:     kde4-koffice-common
 Obsoletes:     kde4-koffice-kformula
 
@@ -348,35 +350,109 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  common  -p /sbin/ldconfig
-%postun        common  -p /sbin/ldconfig
-
-%post  karbon  -p /sbin/ldconfig
-%postun        karbon  -p /sbin/ldconfig
-
-%post  flow    -p /sbin/ldconfig
-%postun        flow    -p /sbin/ldconfig
-
-%post  kexi    -p /sbin/ldconfig
-%postun        kexi    -p /sbin/ldconfig
-
-%post  plan    -p /sbin/ldconfig
-%postun        plan    -p /sbin/ldconfig
-
-%post  stage   -p /sbin/ldconfig
-%postun        stage   -p /sbin/ldconfig
-
-%post  krita   -p /sbin/ldconfig
-%postun        krita   -p /sbin/ldconfig
-
-%post  sheets  -p /sbin/ldconfig
-%postun        sheets  -p /sbin/ldconfig
-
-%post  words   -p /sbin/ldconfig
-%postun        words   -p /sbin/ldconfig
-
-%post  braindump       -p /sbin/ldconfig
-%postun braindump      -p /sbin/ldconfig
+%post common
+/sbin/ldconfig
+%update_icon_cache hicolor
+%update_icon_cache oxygen
+%update_desktop_database
+
+%postun common
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_icon_cache hicolor
+       %update_icon_cache oxygen
+       %update_desktop_database
+fi
+
+%post karbon
+/sbin/ldconfig
+%update_desktop_database
+
+%postun karbon
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post flow
+/sbin/ldconfig
+%update_desktop_database
+
+%postun flow
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post kexi
+/sbin/ldconfig
+%update_desktop_database
+
+%postun kexi
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post plan
+/sbin/ldconfig
+%update_desktop_database
+
+%postun plan
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post stage
+/sbin/ldconfig
+%update_desktop_database
+
+%postun stage
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post krita
+/sbin/ldconfig
+%update_desktop_database
+
+%postun krita
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post sheets
+/sbin/ldconfig
+%update_desktop_database
+
+%postun sheets
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post words
+/sbin/ldconfig
+%update_desktop_database
+
+%postun words
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
+
+%post braindump
+/sbin/ldconfig
+%update_desktop_database
+
+%postun braindump
+/sbin/ldconfig
+if [ "$1" = 0 ]; then
+       %update_desktop_database
+fi
 
 %files common
 %defattr(644,root,root,755)
This page took 0.256655 seconds and 4 git commands to generate.