File cond-multiversion.diff of Package kernel-macros
From: Kurt Garloff <kurt@garloff.de>
Subject: Declare KMP as multiversion only with -m or for TW
Leap and SLE keep the kernel ABI very stable, multiversion thus causes more
trouble (due to file conflicts) than it helps (due to having the ability to
have multiple modulesfor incompatible kABI kernels).
See bsc #1109137 for discussion.
--- usr/lib/rpm/kernel-module-subpackage.orig 2018-09-21 11:26:57.741653239 +0200
+++ usr/lib/rpm/kernel-module-subpackage 2018-09-21 11:31:24.249645486 +0200
@@ -23,6 +23,10 @@ END { print tags["summary"]
Provides: %{-n*}-kmp = %_this_kmp_version
Provides: %{-n*}-kmp = %{-v*}
Requires: coreutils grep
+%if 0%{?suse_version} > 1500 && 0%{?is_opensuse}
+Provides: multiversion(kernel)
+%endif
+%{-m:Provides: multiversion(kernel)}
%{-c:Requires: %{-n*}-ueficert}
Enhances: kernel-%1
Supplements: packageand(kernel-%1:%{-n*})