From 03220ba43b2081d9b02c62c143d237465ccb7c3e Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:11:28 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-iwlegacy.spec b/SPECS/kmod-iwlegacy.spec index 112f8a2..2bcdb48 100644 --- a/SPECS/kmod-iwlegacy.spec +++ b/SPECS/kmod-iwlegacy.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.348 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Intel WiFi 3945ABG/BG (iwl3945) and 4965AGN (iwl4965) driver License: GPLv2 and (BSD or GPLv2) @@ -73,6 +73,16 @@ Provides: kmod-iwl4965 = %{?epoch:%{epoch}:}%{version}-%{release} Supplements: iwl4965-firmware Recommends: iwl4965-firmware + +%if "%{version}" == "4.18.0.348" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.348" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + %description This package provides drivers for Intel's WiFi adapter 3945ABG/BG (iwl3945) and 4965AGN (iwl4965) including the required Intel WiFi legacy driver (iwlegacy). @@ -143,6 +153,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.348-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.348-2 - Enable aarch64 and ppc64le