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

View File

@ -2390,7 +2390,10 @@ fi
%endif %endif
# empty meta-package # empty meta-package
%ifnarch %nobuildarches noarch
%files %files
%endif
%if %{with_gcov} %if %{with_gcov}
%ifarch x86_64 s390x ppc64le aarch64 %ifarch x86_64 s390x ppc64le aarch64
%files gcov %files gcov