diff --git a/pycompile-searchpath.patch b/pycompile-searchpath.patch deleted file mode 100644 index 7044fd9..0000000 --- a/pycompile-searchpath.patch +++ /dev/null @@ -1,30 +0,0 @@ -Index: pygobject-3.11.92/py-compile -=================================================================== ---- pygobject-3.11.92.orig/py-compile -+++ pygobject-3.11.92/py-compile -@@ -116,7 +116,11 @@ else - fi - - $PYTHON -c " --import sys, os, py_compile, imp -+import sys -+# when this runs interactively, '' (cwd) is in sys.path. we don't want that. -+sys.path.remove('') -+ -+import os, py_compile, imp - - files = '''$files''' - -@@ -137,7 +141,11 @@ sys.stdout.write('\n')" || exit $? - - # this will fail for python < 1.5, but that doesn't matter ... - $PYTHON -O -c " --import sys, os, py_compile, imp -+import sys -+# when this runs interactively, '' (cwd) is in sys.path. we don't want that. -+sys.path.remove('') -+ -+import os, py_compile, imp - - # pypy does not use .pyo optimization - if hasattr(sys, 'pypy_translation_info'): diff --git a/pygobject-3.28.3.tar.xz b/pygobject-3.28.3.tar.xz deleted file mode 100644 index e8d0190..0000000 --- a/pygobject-3.28.3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3dd3e21015d06e00482ea665fc1733b77e754a6ab656a5db5d7f7bfaf31ad0b0 -size 1005368 diff --git a/pygobject-3.30.0.tar.xz b/pygobject-3.30.0.tar.xz new file mode 100644 index 0000000..865d5d1 --- /dev/null +++ b/pygobject-3.30.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d20ba1475df922f4c26c69274ab89f7e7730d2101e46846caaddc53afd56bd0 +size 546212 diff --git a/python-gobject.changes b/python-gobject.changes index 6cfda8c..36c58af 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,3 +1,80 @@ +------------------------------------------------------------------- +Sat Sep 1 19:54:43 UTC 2018 - bjorn.lie@gmail.com + +- Update to version 3.30.0: + + Various test suite fixes to get things to pass with Ubuntu + 18.10. + +------------------------------------------------------------------- +Fri Aug 17 10:13:21 UTC 2018 - bjorn.lie@gmail.com + +- Update to version 3.29.3: + + meson: + - Support building pycairo as a subproject. + - Declare_dependency for use by potential superprojects. + - Update glib wrap file. + - Fix the Python 2 build not not use the system pycairo + extension when running tests. + + pygi-convert.sh: Various fixes and updates. + + Gtk.Template: + - Fix instantiation error when using the new code with older + PyGObject. + - Don't error out when loading a resource that is only + available in an overlay. + + Fix various crashes when running against a debug Python 3.7 + build. + + overrides: + - Allow calling GObject.Binding.unbind() multiple times with + GLib 2.58+. + - Gio.ListStore overrides use splice() when adding/removing + many items with GLib 2.58+. + + Work around pylint reporting bogus warnings regarding a missing + self argument for normal functions. + + Add override for GdkPixbuf.Pixbuf.new_from_data() to wrap + new_from_bytes() to work around a use after free. + +------------------------------------------------------------------- +Sat Jun 9 01:24:42 UTC 2018 - luc14n0@linuxmail.org + +- Update to version 3.29.2: + + Gtk.Template: Allow marking children as "internal-child". + + Gio.Settings: implement __iter__. + + Release the GIL when emitting a signal. + + Don't wrap GValue in GValue when creating GValueArray. + + Don't crash on multiple calls to GObject.Value.__del__. + + Various fixes. + + Various fixes/improvements for PyPy. + + Issues fixed: glgo#GNOME/pygobject#115, + glgo#GNOME/pygobject#134, glgo#GNOME/pygobject#130, + glgo#GNOME/pygobject#45, glgo#GNOME/pygobject#200, + glgo#GNOME/pygobject#29, glgo#GNOME/pygobject#213, + glgo#GNOME/pygobject#219, glgo#GNOME/pygobject#193. + + Updated documentation. + +------------------------------------------------------------------- +Mon Jun 4 03:29:01 UTC 2018 - luc14n0@linuxmail.org + +- Update to version 3.29.1: + + Support for `PyPy `__ and PyPy3. + (glgo#GNOME/pygobject#180). + + Cairo: support :class:`cairo.Matrix` conversion. + (glgo#GNOME/pygobject#16). + + Speed up repeated closure creation by caching the closure cache + in the argument cache (glgo#GNOME/pygobject#103). + + Overrides: Make :meth:`Gtk.ListStore.insert_before`, + :meth:`Gtk.ListStore.insert_after`, :meth:`Gtk.TreeStore.\ + insert_before` and :meth:`Gtk.TreeStore.insert_after` atomic. + + Make :class:`GLib.Error` picklable (glgo#GNOME/pygobject#45). + + Add basic support for template based widgets through + ``Gtk.Template`` (glgo#GNOME/pygobject#52). + + Avoid truncating value returned from g_value_info_get_value. + + Various documentation improvements. +- Drop: + + gnome-common BuildRequires and autoreconf call, and replace + configure/make_build/make_install macros with python_build and + python_install, following upstream drop of Autotools. + + pycompile-searchpath.patch: it is no longer needed. + ------------------------------------------------------------------- Fri Jun 1 21:37:37 UTC 2018 - bjorn.lie@gmail.com diff --git a/python-gobject.spec b/python-gobject.spec index dee5b80..22447ef 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -22,21 +22,18 @@ %global __requires_exclude_from ^%{python2_sitearch}/gi/__init__.py|%{python3_sitearch}/gi/__init__.py$ %define _name pygobject Name: python-gobject -Version: 3.28.3 +Version: 3.30.0 Release: 0 Summary: Python bindings for GObject License: LGPL-2.1-or-later Group: Development/Languages/Python URL: https://wiki.gnome.org/Projects/PyGObject/ -Source: http://download.gnome.org/sources/pygobject/3.28/%{_name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM pycompile-searchpath.patch jmatejek@suse.com -- Fix build with python 3.4 -Patch0: pycompile-searchpath.patch +Source0: https://download.gnome.org/sources/pygobject/3.30/%{_name}-%{version}.tar.xz BuildRequires: %{python_module cairo >= 1.11.1} BuildRequires: %{python_module cairo-devel} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: gnome-common BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(cairo) @@ -110,33 +107,15 @@ addon libraries such as pygtk in both Python2 and Python3. %prep %setup -q -n %{_name}-%{version} -%patch0 -p1 -# Remove the executable bit from example scripts: +# Remove the executable bits from example scripts: chmod -R -x examples/*.py %build -autoreconf -fiv - -# We want to do an out-of-source build -%define _configure ../configure - -%{python_expand mkdir build_%{$python_bin_suffix} -pushd build_%{$python_bin_suffix} - -export PYTHON=$python -%configure -%make_build - -popd -} +export CFLAGS="%{optflags}" +%python_build %install -%{python_expand pushd build_%{$python_bin_suffix} - -%make_install - -popd -} +%python_install # Drop pygtkcompat layer - It's useless and we lack other stuff for it to work %python_expand rm %{buildroot}%{$python_sitearch}/gi/pygtkcompat.py* @@ -145,25 +124,29 @@ popd # Drop GIMarshallingTests - It's test suite remainders that should not be installed find %{buildroot}%{_prefix} -name GIMarshallingTests.py* -delete -print -rm examples/Makefile* find %{buildroot} "(" -name '*.la' -or -name '*.a' ")" -delete %fdupes %{buildroot}/%{_prefix} %files %{python_files} %license COPYING -%doc examples/ NEWS README.rst +%doc NEWS +%doc examples/ %{python_sitearch}/gi/ -%{python_sitearch}/pygobject-%{version}-py*.egg-info +%{python_sitearch}/PyGObject-%{version}-py*.egg-info # Lives in cairo subpackage %exclude %{python_sitearch}/gi/_gi_cairo*.so # Lives in Gdk subpackage +%exclude %{python_sitearch}/gi/_gtktemplate.py %exclude %{python_sitearch}/gi/overrides/Gdk.* +%exclude %{python_sitearch}/gi/overrides/GdkPixbuf.py %exclude %{python_sitearch}/gi/overrides/Gtk.* %exclude %{python_sitearch}/gi/overrides/keysyms.* %exclude %{python_sitearch}/gi/overrides/Pango.* %files %{python_files Gdk} +%{python_sitearch}/gi/_gtktemplate.py %{python_sitearch}/gi/overrides/Gdk.* +%{python_sitearch}/gi/overrides/GdkPixbuf.py %{python_sitearch}/gi/overrides/Gtk.* %{python_sitearch}/gi/overrides/keysyms.* %{python_sitearch}/gi/overrides/Pango.* @@ -172,7 +155,7 @@ find %{buildroot} "(" -name '*.la' -or -name '*.a' ")" -delete %{python_sitearch}/gi/_gi_cairo*.so %files %{python_files devel} -%doc ChangeLog +%doc README.rst %files -n %{name}-common-devel %{_includedir}/pygobject-3.0/