From ac471e66df7f2e0a8d296b0b4e0f7eb451ac0a2e Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 15:02:07 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-isci.spec b/SPECS/kmod-isci.spec index eb52f17..054871d 100644 --- a/SPECS/kmod-isci.spec +++ b/SPECS/kmod-isci.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.305 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Intel(R) C600 Series Chipset SAS Controller (%{pkg}) driver License: GPLv2 and (BSD or GPLv2) @@ -59,6 +59,16 @@ 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 + + %description This driver supports the 6Gb/s SAS capabilities of the storage control unit found in the Intel(R) C600 series chipset. Supported devices: @@ -140,6 +150,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.305-3 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.305-2 - Drop dracut conf