From: Jan Stancek <jstancek(a)redhat.com>
kernel.spec: skip kernel meta package when building without up
We already don't build core and modules, skip also meta-package.
It also provides 'kernel', which can confuse dnf trying to find
best match and that failing on core and modules subpackages.
Signed-off-by: Jan Stancek <jstancek(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -3289,9 +3289,11 @@ fi
%endif
# empty meta-package
+%if %{with_up}
%ifnarch %nobuildarches noarch
%files
%endif
+%endif
# This is %%{image_install_path} on an arch where that includes ELF files,
# or empty otherwise.
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2460