From d6b81a036fe8e441c8b8f401a06c343a3e6d89f3 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Wed, 6 Nov 2019 13:05:32 -0500 Subject: [PATCH] Don't build kernel meta package if we are only building a sub-package Borrowed from downstream, if we're not doing an arch build and only building a sub-package don't bother building the kernel meta package. --- kernel.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel.spec b/kernel.spec index 83064524d..9ae95c965 100644 --- a/kernel.spec +++ b/kernel.spec @@ -2390,7 +2390,10 @@ fi %endif # empty meta-package +%ifnarch %nobuildarches noarch %files +%endif + %if %{with_gcov} %ifarch x86_64 s390x ppc64le aarch64 %files gcov