From 2815f859d4893e6b4c4ab4a063c3720f72def398 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 17:26:29 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-wireguard.spec b/SPECS/kmod-wireguard.spec index 61b8611..62b9ca1 100644 --- a/SPECS/kmod-wireguard.spec +++ b/SPECS/kmod-wireguard.spec @@ -19,7 +19,7 @@ Name: kmod-%{pkg} Version: 1.0.20211208 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast, modern, secure VPN tunnel License: GPLv2 @@ -59,6 +59,22 @@ Supplements: wireguard-tools Recommends: wireguard-tools +%if "%{version}" == "1.0.20211208" && "%{release}" == "1%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}1.0.20210606-7%{?dist} +%endif + +%if "%{version}" == "1.0.20211208" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}1.0.20210606-7%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "1.0.20211208" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}1.0.20210606-7%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + + %description WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more @@ -132,6 +148,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 1.0.20211208-3 +- Add obsoletes for update path + * Sun Jan 23 2022 Peter Georg - 1.0.20211208-2 - Enable ppc64le