diff --git a/SPECS/kmod-sata_mv.spec b/SPECS/kmod-sata_mv.spec index 57fc90c..bba8df6 100644 --- a/SPECS/kmod-sata_mv.spec +++ b/SPECS/kmod-sata_mv.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.358 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Marvell SATA Controller (%{pkg}) driver License: GPLv2 @@ -58,6 +58,22 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.358" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.358" && "%{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.358" && "%{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 Serial ATA controllers. Currently supports 88SX[56]0[48][01] PCI(-X) and newer [67]042 PCI-X/PCIe chips. @@ -126,6 +142,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.358-4 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.358-3 - Drop dracut conf