]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm.macros
- %__gnome_doc_prepare, %update_mime_database, %update_icon_cache,
[packages/rpm-build-macros.git] / rpm.macros
index 6163a69f97b4990c5d321cc44480d061b82da14e..95550ad20588c7436851ae6d110fde92639de524 100644 (file)
@@ -31,6 +31,7 @@ fi; \
 
 %__glib_gettextize     glib-gettextize --copy --force
 %__gnome_doc_common    gnome-doc-common --copy
+%__gnome_doc_prepare   gnome-doc-prepare --copy --force
 %__gtkdocize           gtkdocize --copy
 %__intltoolize         intltoolize --copy --force
 %__libtoolize          libtoolize --copy --force
@@ -278,12 +279,15 @@ unset LINGUAS ||:\
        elfarchiveslist=`echo $filelist | xargs -r file | \
                awk '/current ar archive/ {print $1}' | cut -d: -f1`; \
        if [ -n "$elfexelist" ]; then \
+               chmod u+w $elfexelist; \
                %{__strip} --remove-section=.note --remove-section=.comment $elfexelist; \
        fi; \
        if [ -n "$elfsharedlist" ]; then \
+               chmod u+w $elfsharedlist; \
                %{__strip} --strip-unneeded --remove-section=.note --remove-section=.comment $elfsharedlist; \
        fi; \
        if [ -n "$elfarchiveslist" ]; then \
+               chmod u+w $elfarchiveslist; \
                %{__strip} --strip-debug --remove-section=.note --remove-section=.comment $elfarchiveslist; \
        fi; \
 fi; }; __spec_install_post_strip } } }
@@ -368,16 +372,34 @@ fi \
 #
 %update_desktop_database_post() {{ \
        umask 022; \
-       /usr/bin/update-desktop-database; \
+       /usr/bin/update-desktop-database -q; \
 }}
 
 %update_desktop_database_postun() {{ \
 if [ $1 = 0 ]; then \
        umask 022; \
-       /usr/bin/update-desktop-database; \
+       /usr/bin/update-desktop-database -q; \
 fi \
 }}
 
+#-----------------------------------------------------------------
+# Update shared MIME info database
+# requires: shared-mime-info
+#
+%update_mime_database() {{ \
+       umask 022; \
+       /usr/bin/update-mime-database %{_datadir}/mime; \
+}}
+
+#-----------------------------------------------------------------
+# Update icon cache
+# requires: gtk+
+#
+%update_icon_cache() {{ \
+       umask 022; \
+       gtk-update-icon-cache -qf %{_datadir}/icons/%1; \
+}}
+
 #-----------------------------------------------------------------
 # Update scrollkeeper database
 # requires: scrollkeeper
This page took 0.041744 seconds and 4 git commands to generate.