From 849717fbdaad52253faa1602e96541770d8ce270 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:30:38 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-aacraid.spec b/SPECS/kmod-aacraid.spec index fbe5146..6ec47a6 100644 --- a/SPECS/kmod-aacraid.spec +++ b/SPECS/kmod-aacraid.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.257 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI (%{pkg}) driver License: GPLv2 and GPLv2+ @@ -59,6 +59,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.257" && "%{release}" == "4%{?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}-3%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-4%{?dist} +%endif + + %description This package provides the Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI driver (%{pkg}) driver. @@ -202,6 +212,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.257-5 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.257-4 - Enable ppc64le