%__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
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 } } }
#
%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