Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-03-07 14:11:58 +0100
committerMichal Suchanek <msuchanek@suse.de>2019-03-07 14:12:45 +0100
commit5568093d5dbacaeb60b6e0f7f4bbe384b586b82a (patch)
tree958b4c893b24292b075a60535a320dcbef9317b3
parent821419f311f3edd58124e551664a2362b62671d6 (diff)
KMPs: provide and conflict a kernel version specific KMP name
(bsc#1127155, bsc#1109137). Signed-off-by: Michal Suchanek <msuchanek@suse.de>
-rw-r--r--rpm/kernel-module-subpackage6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpm/kernel-module-subpackage b/rpm/kernel-module-subpackage
index e8f864dfbc..cc5b552ad1 100644
--- a/rpm/kernel-module-subpackage
+++ b/rpm/kernel-module-subpackage
@@ -1,5 +1,6 @@
%package -n %{-n*}-kmp-%1
-%define _this_kmp_version %{-v*}_k%(echo %2 | sed -r 'y/-/_/; s/^(2\.6\.[0-9]+)_/\\1.0_/; # use 2.6.x.0 for mainline kernels')
+%define _this_kmp_kernel_version k%(echo %2 | sed -r 'y/-/_/; s/^(2\.6\.[0-9]+)_/\\1.0_/; # use 2.6.x.0 for mainline kernels')
+%define _this_kmp_version %{-v*}_%_this_kmp_kernel_version
Version: %_this_kmp_version
Release: %{-r*}
%(
@@ -23,11 +24,12 @@ END { print tags["summary"]
Provides: %{-n*}-kmp = %_this_kmp_version
Provides: %{-n*}-kmp = %{-v*}
Provides: multiversion(kernel)
+Provides: %{-n*}-kmp-%1-%_this_kmp_kernel_version
Requires: coreutils grep
%{-c:Requires: %{-n*}-ueficert}
Enhances: kernel-%1
Supplements: packageand(kernel-%1:%{-n*})
-Obsoletes: %{-n*}-kmp-%1 < %_this_kmp_version-%release
+Conflicts: %{-n*}-kmp-%1-%_this_kmp_kernel_version
%if "%1" == "default"
Obsoletes: %{-n*}-kmp-trace
%ifarch %ix86