From 34490cd0193cb0b07c57880a802e68a532439ea6 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 12:34:00 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-mpt3sas.spec b/SPECS/kmod-mpt3sas.spec index e29ee5f..afc862e 100644 --- a/SPECS/kmod-mpt3sas.spec +++ b/SPECS/kmod-mpt3sas.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.348 -Release: 2%{?dist} +Release: 3%{?dist} Summary: LSI MPT Fusion SAS 3.0 Device (%{pkg}) driver License: GPLv2 @@ -59,6 +59,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.348" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.348" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + + %description This package provides the LSI MPT Fusion SAS 3.0 Device (%{pkg}) driver. Compared to the in-kernel driver this driver re-enables support for deprecated @@ -145,6 +155,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.348-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.348-2 - Enable ppc64le