From 5369b7af1aeb78596bbe0733e667b143966940c0 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:11:38 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-megaraid_mbox.spec b/SPECS/kmod-megaraid_mbox.spec index 5ada9a0..1a5fd67 100644 --- a/SPECS/kmod-megaraid_mbox.spec +++ b/SPECS/kmod-megaraid_mbox.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 3%{?dist} +Release: 4%{?dist} Summary: LSI Logic MegaRAID (%{pkg}) driver License: GPLv2 and GPLv2+ @@ -60,6 +60,22 @@ Requires(postun): %{_sbindir}/weak-modules Provides: kmod-megaraid_mm = %{?epoch:%{epoch}:}%{version}-%{release} +%if "%{version}" == "4.18.0.80" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.80" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + +%if "%{version}" == "4.18.0.80" && "%{release}" == "4%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +%endif + + %description This package provides the LSI Logic MegaRAID (%{pkg}) driver including the required LSI Logic Management Module (megaraid_mm) driver. Supported devices: @@ -168,6 +184,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.80-4 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.80-3 - Drop dracut conf