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.
This commit is contained in:
Laura Abbott 2019-11-06 13:05:32 -05:00
parent 897c1bc38d
commit d6b81a036f
1 changed files with 3 additions and 0 deletions

View File

@ -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