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}