diff --git a/SPECS/kmod-pata_amd.spec b/SPECS/kmod-pata_amd.spec index 302f94e..8816dde 100644 --- a/SPECS/kmod-pata_amd.spec +++ b/SPECS/kmod-pata_amd.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 4%{?dist} +Release: 5%{?dist} Summary: AMD/nVidia PATA Controller (%{pkg}) driver License: GPLv2 @@ -58,6 +58,22 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.80" && "%{release}" == "3%{?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}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +%endif + +%if "%{version}" == "4.18.0.80" && "%{release}" == "5%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-4%{?dist} +%endif + + %description This driver supports AMD and nVidia PATA interfaces found on the chipsets for the AMD Athlon/Athlon64. @@ -126,6 +142,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.80-5 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.80-4 - Drop dracut conf