From d86b6861ae3a689b51ac95281936e8c109986b70 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:11:49 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-mvsas.spec b/SPECS/kmod-mvsas.spec index 4402990..aecbd9b 100644 --- a/SPECS/kmod-mvsas.spec +++ b/SPECS/kmod-mvsas.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Marvell 88SE64XX/88SE94XX SAS/SATA Controller (%{pkg}) driver License: GPLv2 @@ -59,6 +59,22 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%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 driver supports Marvell's SAS/SATA 3Gb/s 88SE64XX and 6Gb/s 88SE94XX chip based PCI-E host adapters. @@ -127,6 +143,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