diff --git a/SPECS/kmod-mlx4.spec b/SPECS/kmod-mlx4.spec index 591ec57..023e114 100644 --- a/SPECS/kmod-mlx4.spec +++ b/SPECS/kmod-mlx4.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.315 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Mellanox ConnectX HCA (%{pkg}) driver License: GPLv2 and (BSD or GPLv2) @@ -60,6 +60,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.315" && "%{release}" == "6%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-5%{?dist} +%endif + +%if "%{version}" == "4.18.0.315" && "%{release}" == "7%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-5%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-6%{?dist} +%endif + + %description This package provides the Mellanos ConnectX HCA (%{pkg}) driver. Compared to the in-kernel driver this driver re-enables support for deprecated Mellanox @@ -151,6 +161,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.315-7 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.315-6 - Enable ppc64le