Hello community, here is the log from the commit of package python-gtk for openSUSE:Leap:15.2 checked in at 2020-03-06 12:36:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-gtk (Old) and /work/SRC/openSUSE:Leap:15.2/.python-gtk.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gtk" Fri Mar 6 12:36:15 2020 rev:12 rq:779554 version:2.24.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-gtk/python-gtk.changes 2020-01-15 15:49:10.483451102 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-gtk.new.26092/python-gtk.changes 2020-03-06 12:36:16.326574650 +0100 @@ -1,0 +2,19 @@ +Wed Nov 27 14:21:38 UTC 2019 - Dominique Leuenberger <[email protected]> + +- Add pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch: + Drop the PangoFont find_shaper virtual method. This API has been + removed from Pango 1.44.6, because it was completely unused by + anything. + +------------------------------------------------------------------- +Sun Aug 18 15:04:48 UTC 2019 - Bjørn Lie <[email protected]> + +- Drop python-numpy-devel BuildRequires and python-numpy Requires: + No longer build the optional numpy support. + +------------------------------------------------------------------- +Wed Feb 28 16:39:05 UTC 2018 - [email protected] + +- Modernize spec-file by calling spec-cleaner + +------------------------------------------------------------------- New: ---- pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gtk.spec ++++++ --- /var/tmp/diff_new_pack.gqDHgf/_old 2020-03-06 12:36:16.730574896 +0100 +++ /var/tmp/diff_new_pack.gqDHgf/_new 2020-03-06 12:36:16.730574896 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-gtk # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,12 +23,14 @@ Version: 2.24.0 Release: 0 Summary: Python bindings for the GTK+ widget set -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/Python -Url: http://www.pygtk.org/ +URL: http://www.pygtk.org/ Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM pygtk-2.22.0-capsule.patch bgo#623965 bnc#669802 [email protected] -- Conditionally use the new Capsule API instead of PyCObject Patch0: pygtk-2.22.0-capsule.patch +# pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch -- Drop the PangoFont find_shaper virtual method +Patch1: https://raw.githubusercontent.com/flathub/org.glimpse_editor.Glimpse/master/patches/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch BuildRequires: fdupes # Only for directory ownership: BuildRequires: gtk-doc @@ -36,9 +38,7 @@ BuildRequires: python-cairo-devel BuildRequires: python-devel BuildRequires: python-gobject2-devel -BuildRequires: python-numpy-devel Requires: %{python_gtk_req} -Requires: python-numpy # for cross-distro compatibility: Provides: pygtk2 = %{version} Provides: python2-gtk = %{version} @@ -76,9 +76,10 @@ %prep %setup -q -n pygtk-%{version} %patch0 -p1 +%patch1 -p1 -find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!/usr/bin/python2|" {} \; -find examples -type f -name "*.py" -exec sed -i "s|#! /usr/bin/env python|#!/usr/bin/python2|" {} \; +find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python|#!%{_bindir}/python2|" {} \; +find examples -type f -name "*.py" -exec sed -i "s|#! %{_bindir}/env python|#!%{_bindir}/python2|" {} \; %build %configure @@ -92,7 +93,7 @@ mkdir -p %{buildroot}%{_docdir} mv %{buildroot}%{_datadir}/gtk-doc %{buildroot}%{_docdir}/%{name} -sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" %{buildroot}%{_bindir}/pygtk-demo +sed -i "s|#!%{_bindir}/python|#!%{_bindir}/python2|" %{buildroot}%{_bindir}/pygtk-demo rm examples/Makefile* # demo is already in devel package @@ -102,8 +103,8 @@ %fdupes %{buildroot}%{_datadir} %files -%defattr(-,root,root) -%doc AUTHORS NEWS README MAPPING ChangeLog THREADS COPYING +%license COPYING +%doc AUTHORS NEWS README MAPPING ChangeLog THREADS %exclude %{_docdir}/%{name}/html/ %{python_sitearch}/gtk-2.0/gtk/ %{python_sitearch}/gtk-2.0/atk.so @@ -111,7 +112,6 @@ %{python_sitearch}/gtk-2.0/pango*.so %files devel -%defattr(-,root,root) %{_bindir}/pygtk-codegen-2.0 %{_bindir}/pygtk-demo %{_includedir}/pygtk-2.0/pygtk/ @@ -127,7 +127,6 @@ %{_libdir}/pygtk/2.0/demos/ %files doc -%defattr(-,root,root) %doc examples/ %{_docdir}/%{name}/html/ ++++++ pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch ++++++ >From 877164b6b70780468a31d8211f29421b6f34b0c8 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon <[email protected]> Date: Thu, 24 Oct 2019 22:58:36 +0200 Subject: [PATCH] Drop the PangoFont find_shaper virtual method This API has been removed from Pango 1.44.6, because it was completely unused by anything. However, PyGTK tries to bind everything, even unused API. Removing this from PyGTK means we can build it against the latest Pango again. --- pango.defs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pango.defs b/pango.defs index 2a79ecc..862667a 100644 --- a/pango.defs +++ b/pango.defs @@ -1391,15 +1391,6 @@ ) ) -(define-virtual find_shaper - (of-object "PangoFont") - (return-type "PangoEngineShape*") - (parameters - '("PangoLanguage*" "lang") - '("guint32" "ch") - ) -) - (define-virtual get_glyph_extents (of-object "PangoFont") (return-type "none") -- 2.21.0
