]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm.macros
- fix !dist_kernel with non-built tree
[packages/rpm.git] / rpm.macros
index 4f204a33ed43c70a75d0063a47b24b33514f39a0..dfebf636f2989c4691f985ec996dc1bd627b9542 100644 (file)
@@ -519,11 +519,9 @@ fi; }; __spec_install_post_chrpath } } }
 # Requires: GConf2
 #
 %gconf_schema_install() \
-       if [ -x /usr/bin/gconftool-2 ]; then \
-               umask 022; \
-               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; \
-       fi; \
+       umask 022; \
+       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() \
@@ -1314,7 +1312,7 @@ for cfg in ${cfgs:-dist}; do                                        \
        [ -z "$PATCH_SH" ] || echo "$PATCH_SH" | %__spec_build_shell    \
        set -x                                                                                                                  \
                                                                                                                                        \
-       %if %{with dist_kernel}                                                                                 \
+       %if %{with dist_kernel} || %(test -f %{_kernelsrcdir}/scripts/bin2c ; echo $?)  \
                %{__make} -j1 -C %{_kernelsrcdir} prepare scripts                       \\\
                        %{-p*} %{-P*}                                                                                   \\\
                        %{MakeOpts}                                                                                             \
This page took 0.087356 seconds and 4 git commands to generate.