From 46d9e24b723527e1ec0c07596009bdf067ec49bf Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 14:52:08 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-arcmsr.spec b/SPECS/kmod-arcmsr.spec index e2e45b8..2267045 100644 --- a/SPECS/kmod-arcmsr.spec +++ b/SPECS/kmod-arcmsr.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.257 -Release: 4%{?dist} +Release: 5%{?dist} Summary: ARECA ARC11xx/12xx/13xx/16xx SATA/SAS RAID Controller (%{pkg}) driver License: GPLv2 @@ -60,6 +60,22 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.257" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + +%if "%{version}" == "4.18.0.257" && "%{release}" == "4%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +%endif + +%if "%{version}" == "4.18.0.257" && "%{release}" == "5%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-4%{?dist} +%endif + + %description This driver supports ARECA's SATA/SAS RAID controller cards. @@ -127,6 +143,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.257-5 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.257-4 - Drop dracut conf