From: Jakub Bogusz Date: Wed, 3 Sep 2008 14:53:39 +0000 (+0000) Subject: - fix !dist_kernel with non-built tree X-Git-Tag: auto/th/rpm-build-macros-1_478-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=c940d7763dbbadc077c4d8cba3a00f8d69f1f4bb;ds=sidebyside - fix !dist_kernel with non-built tree Changed files: rpm.macros -> 1.477 --- diff --git a/rpm.macros b/rpm.macros index 84b3d37..dfebf63 100644 --- a/rpm.macros +++ b/rpm.macros @@ -1312,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} \