summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2019-11-06 13:05:32 -0500
committerLaura Abbott <labbott@redhat.com>2019-11-13 10:01:45 -0500
commitd6b81a036fe8e441c8b8f401a06c343a3e6d89f3 (patch)
treee36e84142b7200618f07dfdebab19669545b7c44
parent897c1bc38db23dcf437f999d834cfb1fa5078d09 (diff)
downloadkernel-d6b81a036fe8e441c8b8f401a06c343a3e6d89f3.tar.gz
kernel-d6b81a036fe8e441c8b8f401a06c343a3e6d89f3.tar.xz
kernel-d6b81a036fe8e441c8b8f401a06c343a3e6d89f3.zip
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.
-rw-r--r--kernel.spec3
1 files changed, 3 insertions, 0 deletions
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