On %{nobuildarches} we don't build the real kernel and modules, so don't set a Requires for them. The positive effect is that we can eliminate an explicit kernel Provides from the fake-build-provides package in secondary kojis. --- kernel.spec | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/kernel.spec b/kernel.spec index 11352bc..fb59502 100644 --- a/kernel.spec +++ b/kernel.spec @@ -402,8 +402,10 @@ Release: %{pkg_release} # SET %%nobuildarches (ABOVE) INSTEAD ExclusiveArch: %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm} aarch64 ppc64le ExclusiveOS: Linux +%ifnarch %{nobuildarches} Requires: kernel-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant} Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant} +%endif
#
On Mon, May 19, 2014 at 10:17 AM, Dan Horák dan@danny.cz wrote:
On %{nobuildarches} we don't build the real kernel and modules, so don't set a Requires for them. The positive effect is that we can eliminate an explicit kernel Provides from the fake-build-provides package in secondary kojis.
Thanks, applied.
josh
kernel@lists.fedoraproject.org