Home Home > GIT Browse > packaging
diff options
authorMichal Suchanek <msuchanek@suse.de>2019-04-10 14:02:14 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-04-10 19:06:56 +0200
commit6d148376c09bcfcce292e488dec5b79513630707 (patch)
parentd6c71ceaa0b8137666b70134bfd20f757b351e2d (diff)
kernel-subpackage-spec: Add dummy package to ensure subpackages are
rebuilt with kernel update (bsc#1106751). In factory packages are not rebuilt automatically so a dependency is needed on the old kernel to get a rebuild with the new kernel. THe subpackage itself cannot depend on the kernel so add another empty pacakge that does depend on it. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
1 files changed, 13 insertions, 0 deletions
diff --git a/rpm/kernel-subpackage-spec b/rpm/kernel-subpackage-spec
index f8b30937cc..4501aeb6aa 100644
--- a/rpm/kernel-subpackage-spec
+++ b/rpm/kernel-subpackage-spec
@@ -48,6 +48,19 @@ Conflicts: %(rpm -q --queryformat '[%%{PROVIDENEVRS}\n]' %kernel_package_na
This is a subpackage of %kernel_package_name. Development files are in
%kernel_package_name-devel and sources in kernel-source%variant.
+%package rebuild
+Summary: Empty package to ensure rebuilding %name in OBS
+Group: Other
+Requires: %kernel_package_name = %rpm_kver-%rpm_krel
+%description rebuild
+This is empty package that ensures %name is rebuilt every time
+%kernel_package_name is rebuilt in OBS.
+There is no reason to install this package.
+%files rebuild