From 95c25dcd119588639534627961e30f1c690fe3e23a0d4e63c91e363828ab4d4c Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 11 Jan 2021 14:59:06 +0000 Subject: [PATCH] Accepting request 862348 from GNOME:Next - Rename libgtk-4-0 to libgtk-4-1: the library changed soname with version 4.0.0. - Obsolete libgtk-4-0 > 4 by libgtk-4.1: this is a bit a special hack, but we know that versions < 4 were indeed libgtk-4-.so.0, and starting from version 4, it shold have been renamed. OBS-URL: https://build.opensuse.org/request/show/862348 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=58 --- baselibs.conf | 6 +++--- gtk4.changes | 9 +++++++++ gtk4.spec | 19 +++++++++++-------- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 548c82b..e99940c 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,5 +1,5 @@ gtk4-devel requires -gtk4- - requires "libgtk-4-0- = " -libgtk-4-0 - provides "gtk4- = " \ No newline at end of file + requires "libgtk-4-1- = " +libgtk-4-1 + provides "gtk4- = " diff --git a/gtk4.changes b/gtk4.changes index 3feb6d1..aed5664 100644 --- a/gtk4.changes +++ b/gtk4.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jan 11 14:11:26 UTC 2021 - Dominique Leuenberger + +- Rename libgtk-4-0 to libgtk-4-1: the library changed soname with + version 4.0.0. +- Obsolete libgtk-4-0 > 4 by libgtk-4.1: this is a bit a special + hack, but we know that versions < 4 were indeed libgtk-4-.so.0, + and starting from version 4, it shold have been renamed. + ------------------------------------------------------------------- Sat Jan 9 11:44:20 UTC 2021 - Bjørn Lie diff --git a/gtk4.spec b/gtk4.spec index 171ba24..b2781a4 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -92,7 +92,7 @@ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites. -%package -n libgtk-4-0 +%package -n libgtk-4-1 Summary: The GTK+ toolkit library (version 4) # gtk4-data is currently not being built, might be an upstream oversight though Group: System/Libraries @@ -117,10 +117,13 @@ Obsoletes: %{name}-immodule-thai Obsoletes: %{name}-immodule-tigrigna Obsoletes: %{name}-immodule-vietnamese Obsoletes: %{name}-immodule-xim +# with version 4.0.0, the soname was actually changed to libgtk-4.so.1 +# but the package was nor correctly renamed +Obsoletes: libgtk-4-0 >= 4 # Provide main package to make the lang subpackage installable Provides: %{name} = %{version} -%description -n libgtk-4-0 +%description -n libgtk-4-1 GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites. @@ -159,8 +162,8 @@ ranging from small one-off projects to complete application suites. %package branding-upstream Summary: Upstream theme configuration for the GTK+ toolkit library v4 Group: System/Libraries -Requires: libgtk-4-0 = %{version} -Supplements: (libgtk-4-0 and branding-upstream) +Requires: libgtk-4-1 = %{version} +Supplements: (libgtk-4-1 and branding-upstream) Conflicts: %{name}-branding Provides: %{name}-branding = %{version} BuildArch: noarch @@ -181,7 +184,7 @@ icon themes. Summary: Development files for the GTK+ toolkit library v4 Group: Development/Libraries/X11 Requires: gettext-its-%{name} >= %{version} -Requires: libgtk-4-0 = %{version} +Requires: libgtk-4-1 = %{version} Requires: typelib-1_0-Gtk-4_0 = %{version} Requires: vulkan-devel @@ -249,10 +252,10 @@ cp %{SOURCE3} %{buildroot}%{_sysconfdir}/rpm %fdupes %{buildroot}%{_datadir} %fdupes %{buildroot}%{_libdir} -%post -n libgtk-4-0 -p /sbin/ldconfig -%postun -n libgtk-4-0 -p /sbin/ldconfig +%post -n libgtk-4-1 -p /sbin/ldconfig +%postun -n libgtk-4-1 -p /sbin/ldconfig -%files -n libgtk-4-0 +%files -n libgtk-4-1 %license COPYING %doc AUTHORS NEWS %dir %{_libdir}/gtk-4.0