]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm.macros
- Reverted last change
[packages/rpm-build-macros.git] / rpm.macros
index 83f5ffd5c6100774a5f38c47b4f60da161bd9907..f0fab51551fd3b4e3f4efb9f10add63c78d55174 100644 (file)
 %rpmldflags    %{!?debug:-s}
 
 # kernel compiler
-%kgcc          gcc2
-%kgcc_package  gcc2
+%kgcc          gcc
+%kgcc_package  gcc
 
 # Build system path macros.
 #
 %__libtoolize           libtoolize --copy --force
-%__gettextize           gettextize --copy --force
+%__gettextize { \
+    if ! gettextize --version | grep -q '0\.10\.' ; then \
+       if grep -qs 'AM_GNU_GETTEXT.*external' configure.{ac,in} ; then \
+           gettextize --copy --force --no-changelog; \
+       else \
+           gettextize --copy --force --no-changelog --intl; \
+       fi; \
+       if [ ! -f po/Makevars ]; then \
+           cp -f po/Makevars{.template,}; \
+       fi; \
+    else \
+       gettextize --copy --force; \
+    fi; \
+}
+%__autopoint            autopoint --force
 %__automake             automake -a -c -f --foreign
 %__autoconf             autoconf %{?debug:-Wall}
 
 %_pkgconfigdir /usr/lib/pkgconfig
 
 # Location of top applink dir
-%_applnkdir      /usr/X11R6/share/applnk
+%_applnkdir    /usr/X11R6/share/applnk
 
 # Location pixmaps for applnk/desktop files
-%_pixmapsdir   /usr/X11R6/share/pixmaps
+%_pixmapsdir   /usr/share/pixmaps
 
 # Location of fonts directories
 %_fontsdir     /usr/share/fonts
 
+# Location of Gtk and associated libraries documentation
+%_gtkdocdir  %{_defaultdocdir}/gtk-doc/html
+
 # Current date
 %date          %(LC_ALL="C" date +"%a %b %d %Y")
 
@@ -217,13 +234,24 @@ echo "Compress kernel modules if any."; \
        find $RPM_BUILD_ROOT/lib/modules -name \*.o -type f -print | \
        xargs -r %{__gzip} -9nf; \
           find $RPM_BUILD_ROOT/lib/modules -name \*.o -type l -printf "%p %l\n" | \
-          while read a b; do ln -sf $b.gz $a.gz; rm -f $a; done \
+          while read a b; do ln -sf $b.gz $a.gz; rm -f $a; done; \
     fi; \
 } }
 
 %_source_payload        w9.gzdio
 %_binary_payload        w9.bzdio
 
+#-----------------------------------------------------------------
+# Update all GConf2 schemas
+#
+# Requires: GConf2
+#
+%gconf_schema_install { umask 022; \
+    GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" \
+    /usr/bin/gconftool-2 --makefile-install-rule \
+    /etc/gconf/schemas/*.schemas > /dev/null \
+}
+
 #-----------------------------------------------------------------
 # post %install sequence:
 # - autodeps exceptions
This page took 0.317825 seconds and 4 git commands to generate.