From 60272dc02b9b924608cb5a02ded68fe10e2da6ba68601400528ed9fada27d334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 10 Dec 2021 18:52:54 +0000 Subject: [PATCH] Accepting request 939143 from home:yfjiang:branches:GNOME:Factory - Add Obsoletes of the old-name -lang package to be ready for updating from it. This change is necessary for the gtk3-soup2 flavor. OBS-URL: https://build.opensuse.org/request/show/939143 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/webkit2gtk3?expand=0&rev=320 --- webkit2gtk3.changes | 7 +++++++ webkit2gtk3.spec | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/webkit2gtk3.changes b/webkit2gtk3.changes index 9679f52..9ac1ab3 100644 --- a/webkit2gtk3.changes +++ b/webkit2gtk3.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Dec 8 08:07:59 UTC 2021 - Yifan Jiang + +- Add Obsoletes of the old-name -lang package to be ready for + updating from it. This change is necessary for the gtk3-soup2 + flavor. + ------------------------------------------------------------------- Sat Nov 27 15:20:11 UTC 2021 - Michael Gorse diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index c24fb83..184f968 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -321,7 +321,21 @@ Group: Development/Tools/Other %description minibrowser A small test browswer from webkit, useful for testing features. +# Expand %%lang_package to Obsoletes its older-name counterpart +%if "%{flavor}" == "gtk3-soup2" +%package -n WebKit2GTK-%{_apiver}-lang +Summary: Translations for package %{name} +Group: System/Localization +Requires: WebKit2GTK-%{_apiver} = %{version} +Provides: WebKit2GTK-%{_apiver}-lang-all = %{version} +Obsoletes: libwebkit2gtk3-lang +BuildArch: noarch + +%description -n WebKit2GTK-%{_apiver}-lang +Provides translations for the "%{name}" package. +%else %lang_package -n WebKit2GTK-%{_apiver} +%endif %prep %autosetup -p1 -n webkitgtk-%{version}