From 3dacf075b53a068b4f7c647a6822f63a4e704e4e Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:10:56 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-arcmsr.spec b/SPECS/kmod-arcmsr.spec index ec45712..4bd9899 100644 --- a/SPECS/kmod-arcmsr.spec +++ b/SPECS/kmod-arcmsr.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.305 -Release: 3%{?dist} +Release: 4%{?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.305" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.305" && "%{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.305" && "%{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 driver supports ARECA's SATA/SAS RAID controller cards. @@ -127,6 +143,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.305-4 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.305-3 - Drop dracut conf