diff --git a/SPECS/kmod-sata_sis.spec b/SPECS/kmod-sata_sis.spec index 6f8dccc..77d26c8 100644 --- a/SPECS/kmod-sata_sis.spec +++ b/SPECS/kmod-sata_sis.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 4%{?dist} +Release: 5%{?dist} Summary: SiS P/SATA Controller (pata_sis and %{pkg}) driver License: GPLv2 and GPLv2+ @@ -60,6 +60,22 @@ Requires(postun): %{_sbindir}/weak-modules Provides: kmod-pata_sis = %{?epoch:%{epoch}:}%{version}-%{release} +%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 SiS P/SATA controllers. @@ -128,6 +144,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