]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- added macros: glib_gettextize, gnome_doc_comon, gtkdocize, intloolize,
authorfreetz <freetz@pld-linux.org>
Thu, 7 Apr 2005 17:31:23 +0000 (17:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  update_desktop_database_{post,postun}, scrollkeeer_update_{post,postun},
  ldconfig_{post,postun}, simplfied gconf_schema_* macros, check for $1
  added

Changed files:
    rpm.macros -> 1.198

rpm.macros

index 37532b9a78a15017bd346e251ba8a40e23c0fbe8..4eaed700b0e2d753ca18109abbd29b396c5ed873 100644 (file)
 
 # Build system path macros.
 #
-%__libtoolize           libtoolize --copy --force
+%__autoconf                    autoconf %{?debug:-Wall}
+%__automake                    automake -a -c -f --foreign
+%__autopoint           autopoint --force
+
 %__gettextize { \
     if ! gettextize --version | grep -q '0\.10\.' ; then \
        if grep -qs 'AM_GNU_GETTEXT.*external' configure.{ac,in} ; then \
        gettextize --copy --force; \
     fi; \
 }
-%__autopoint            autopoint --force
-%__automake             automake -a -c -f --foreign
-%__autoconf             autoconf %{?debug:-Wall}
+
+%__glib_gettextize     glib-gettextize --copy --force
+%__gnome_doc_common    gnome-doc-common --copy
+%__gtkdocize           gtkdocize --copy
+%__intltoolize         intltoolize --copy --force
+%__libtoolize          libtoolize --copy --force
 
 %dependencytracking    %{nil}
 #-----------------------------------------------------------------
@@ -367,13 +373,60 @@ echo "Compress kernel modules if any."; \
 #
 %gconf_schema_install() \
     umask 022; \
-    GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-install-rule %{?1}%{!?1:/etc/gconf/schemas/*.schemas} > /dev/null \
+    GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null \
     %{nil}
 
 %gconf_schema_uninstall() \
+if [ $1 = 0 ]; then \
     umask 022; \
-    GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-uninstall-rule %{?1} > /dev/null \
-    %{nil}
+    GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/%{?1} > /dev/null \
+fi \
+%{nil}
+
+#-----------------------------------------------------------------
+# Update desktop MIME database
+# requries: desktop-file-utils
+#
+%update_desktop_database_post() \
+       umask 022; \
+       /usr/bin/update-desktop-database; \
+       %{nil}
+
+%update_desktop_database_postun() \
+if [ $1 = 0 ]; then \
+       umask 022; \
+       /usr/bin/update-desktop-database; \
+fi \
+%{nil}
+
+#-----------------------------------------------------------------
+# Update scrollkeeper database
+# requires: scrollkeeper
+#
+%scrollkeeper_update_post() \
+       umask 022; \
+       /usr/bin/scrollkeeper-update -q; \
+       %{nil}
+
+%scrollkeeper_update_postun() \
+if [ $1 = 0 ]; then \
+       umask 022; \
+       /usr/bin/scrollkeeper-update -q; \
+fi \
+%{nil}
+
+#-----------------------------------------------------------------
+# Run ldconfig after installing/deinstalling libraries
+#
+%ldconfig_post() \
+       /sbin/ldconfig; \
+       %{nil}
+
+%ldconfig_postun() \
+if [ $1 = 0 ]; then \
+       /sbin/ldconfig; \
+fi \
+%{nil}
 
 #-----------------------------------------------------------------
 # post %install sequence:
This page took 0.115269 seconds and 4 git commands to generate.