From d48f3226e3e86f5c6ada0a58b5e2d28a2de40d1c Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 14:53:45 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-iwlegacy.spec b/SPECS/kmod-iwlegacy.spec index 69f92cf..dd69f57 100644 --- a/SPECS/kmod-iwlegacy.spec +++ b/SPECS/kmod-iwlegacy.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.315 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Intel WiFi 3945ABG/BG (iwl3945) and 4965AGN (iwl4965) driver License: GPLv2 and (BSD or GPLv2) @@ -73,6 +73,17 @@ Provides: kmod-iwl4965 = %{?epoch:%{epoch}:}%{version}-%{release} Supplements: iwl4965-firmware Recommends: iwl4965-firmware + +%if "%{version}" == "4.18.0.315" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + +%if "%{version}" == "4.18.0.315" && "%{release}" == "4%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?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 +154,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.315-4 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.315-3 - Enable aarch64 and ppc64le