From 3e79746493dd1d4dec2282f8d542103fafe14bea5d5cb7a991fdcf8126e3bc59 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 5 Apr 2013 05:31:23 +0000 Subject: [PATCH] Accepting request 162512 from devel:languages:python Submit 3.8.0 to Factory... OBS-URL: https://build.opensuse.org/request/show/162512 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gobject?expand=0&rev=36 --- pygobject-3.4.2.tar.xz | 3 - pygobject-3.8.0.tar.xz | 3 + python-gobject.changes | 245 ++++++++++++++++++++++++++++++++++++++++ python-gobject.spec | 35 ++++-- python3-gobject.changes | 245 ++++++++++++++++++++++++++++++++++++++++ python3-gobject.spec | 35 ++++-- 6 files changed, 541 insertions(+), 25 deletions(-) delete mode 100644 pygobject-3.4.2.tar.xz create mode 100644 pygobject-3.8.0.tar.xz diff --git a/pygobject-3.4.2.tar.xz b/pygobject-3.4.2.tar.xz deleted file mode 100644 index df7499a..0000000 --- a/pygobject-3.4.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b87ef3170be3a20a53fbdb348ae4ecb41a72a17ec6531baa67147c3437d2aad -size 615032 diff --git a/pygobject-3.8.0.tar.xz b/pygobject-3.8.0.tar.xz new file mode 100644 index 0000000..a233b96 --- /dev/null +++ b/pygobject-3.8.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c57f581ae35587108c978cb116eeb7ec186b50c95b145f62033589ee248b32d +size 652616 diff --git a/python-gobject.changes b/python-gobject.changes index eea7b23..5d71c46 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,3 +1,248 @@ +------------------------------------------------------------------- +Mon Mar 25 08:12:42 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.8.0: + + tests: Fix incorrect assumption when testing pyglib version. + +------------------------------------------------------------------- +Mon Mar 18 19:41:40 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.92: + + pygtkcompat: Make gdk.Window.get_geometry return tuple of 5. + + pygtkcompat: Initialize hint to zero in set_geometry_hints. + + Remove incorrect bounds check with property helper flags. + + Bugs fixed: bgo#637832, bgo#696011, bgo#694889, bgo#695420, + bgo#695420. + +------------------------------------------------------------------- +Tue Mar 5 12:03:01 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.91.1: + + Revert "Drop gi.overrides.overridefunc()" (bgo#695199). + +------------------------------------------------------------------- +Mon Mar 4 17:25:38 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.91: + + Fix many memory leaks (bgo#675726, bgo#693402, bgo#691501, + bgo#510511, bgo#691501, bgo#672224, and several more which are + detected by our test suite) + + Dot not clobber original Gdk/Gtk functions with overrides + (bgo#686835) + + Optimize GValue.get/set_value by setting GValue.g_type to a + local (bgo#694857) + + Run tests with G_SLICE=debug_blocks (bgo#691501) + + Add override helper for stripping boolean returns (bgo#694431) + + Drop obsolete pygobject_register_sinkfunc() declaration + (bgo#639849) + + Fix marshalling of C arrays with explicit length in signal + arguments (bgo#662241) + + Fix signedness, overflow checking, and 32 bit overflow of + GFlags (bgo#693121) + + gi/pygi-marshal-from-py.c: Fix build on Visual C++ (bgo#692856) + + Raise DeprecationWarning on deprecated callables (bgo#665084) + + pygtkcompat: Add Widget.window, scroll_to_mark, and window + methods (bgo#694067) + + pygtkcompat: Add Gtk.Window.set_geometry_hints which accepts + keyword arguments (bgo#694067) + + Ship pygobject.doap for autogen.sh (bgo#694591) + + Fix crashes in various GObject signal handler functions + (bgo#633927) + + pygi-closure: Protect the GSList prepend with the GIL + (bgo#684060) + + generictreemodel: Fix bad default return type for + get_column_type. + +------------------------------------------------------------------- +Tue Feb 19 12:15:54 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.90: + + overrides: + - Fix inconsistencies with drag and drop target list API + (bgo#680640). + - Add support for iterables besides tuples for TreePath + creation (bgo#682933). + + pygtkcompat: Add pygtk compatible GenericTreeModel + implementation (bgo#682933). + + Prefix __module__ attribute of function objects with + gi.repository (bgo#693839). + + Bugs fixed: bgo#693328, bgo#693618, bgo#687522. + +------------------------------------------------------------------- +Tue Feb 5 11:20:02 UTC 2013 - p.drouand@gmail.com + +- Update to version 3.7.5.1: + + Fix ABI break with pygobject.h from 3.7.5 (bgo#675726). +- Changes from version 3.7.5: + + Move various signal methods from static bindings to GI + (bgo#692918) + + GLib overrides: Support unpacking 'maybe' variants (bgo#693032) + + Fix ref count leak when creating pygobject wrappers for input + args (bgo#675726) + + Prefix names of typeless enums and flags for GType registration + (bgo#692515) + + Fix compilation with non-C99 compilers such as Visual C++ + (bgo#692856) + + gi/overrides/Glib.py: Fix running on Windows/non-Unix + + Do not immediately initialize Gdk and Gtk on import + (bgo#692300) + - Accept inf and NaN as float and double values (bgo#692381) + - Fix repr() of GLib.Variant + - Fix gtk-demo for Python 3 + - Define GObject.TYPE_VALUE gtype constant + * gobject: Go through introspection on property setting + (bgo#684062) + * Clean up caller-allocated GValues and their memory + (bgo#691820) + - Use GNOME_COMPILE_WARNINGS from gnome-common. + +------------------------------------------------------------------- +Mon Jan 14 18:25:00 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.4: + + Allow setting values through GtkTreeModelFilter (bgo#689624) + + Support GParamSpec signal arguments from Python (bgo#683099) + + pygobject_emit(): Fix cleanup on error + + Add signal emission methods to TreeModel which coerce the path + argument (bgo#682933) + + Add override for GValue (bgo#677473) + + Mark caller-allocated boxed structures as having a slice + allocated (bgo#699501) + + pygi-property: Support boxed GSList/GList types (bgo#684059) + + tests: Add missing backwards compat methods for Python 2.6 + (bgo#691646) + + Allow setting TreeModel values to None (bgo#684094) + + Set clean-up handler for marshalled arrays (bgo#691509) + + Support setting string fields in structs (bgo#678401) + + Permit plain integers for "gchar" values + + Allow single byte values for int8 types (bgo#691524) + + Fix invalid memory access handling errors when registering an + enum type + + Fix (out) arguments in callbacks + + Fix C to Python marshalling of struct pointer arrays + + Don't let Property.setter() method names define property names + (bgo#688971) + + Use g-i stack allocation API (bgo#615982) + + pyg_value_from_pyobject: support GArray (bgo#690514) + + Fix obsolete automake macros (bgo#691101) + + Change dynamic enum and flag gtype creation to use namespaced + naming (bgo#690455) + + Fix Gtk.UIManager.add_ui_from_string() override for non-ASCII + chars (bgo#690329) + + Don't dup strings before passing them to type registration + functions (bgo#690532) + + Fix marshalling of arrays of boxed struct values (bgo#656312) + +------------------------------------------------------------------- +Wed Jan 9 19:46:40 UTC 2013 - dimstar@opensuse.org + +- Resolve conflict between python-gobject-devel and + python3-gobject-devel: only package the .h and .pc file in + python-gobject-devel, but require python-gobject-devel from this + package (See bgo#689068 for background). The .pc and .h files are + python-version agnostic. +- Add supplemnts to auto-install python(3)?-gobject when python(3)? + and libgirepository-1_0-1 are installed. + +------------------------------------------------------------------- +Wed Jan 9 18:20:17 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.3: + + Add support for caller-allocated GArray out arguments + (bgo#690041) + + [API add] Re-support calling GLib.io_add_watch with an fd or + Python file + - pygtkcompat: Work around IndexError on large flags + - Fix pyg_value_from_pyobject() range check for uint + - Fix tests to work with g-i 1.34.2 + + Fix wrong refcount for GVariant property defaults (bgo#689267) + - Fix array arguments on 32 bit architectures + - Add backwards compatible API for GLib.unix_signal_add_full() + + Drop MININT64/MAXUINT64 workaround, current g-i gets this right + now + - Fix maximum and minimum ranges of TYPE_(U)INT64 properties + (bgo#688949) + - Ship pygi-convert.sh in tarballs (bgo#688697) +- Changes from version 3.7.2: + + API changes: + - Drop almost all static GLib bindings and replace them with + proper introspection. + - Deprecate calling GLib API through the GObject namespace. + This has always been a misnomer with introspection, and will + be removed in a later version; for now this throws a + PyGIDeprecationWarning. + - Do not bind gobject_get_data() and gobject_set_data(). + (bgo#641944) + - Deprecate void pointer fields as general PyObject storage. + (bgo#683599) + - Add support for GVariant properties + - Add type checking to GVariant argument assignment + - Fix marshalling of arrays of struct pointers to Python + (bgo#678620) + - Fix Gdk.Atom to have a proper str() and repr() (bgo#678620) + - Make sure g_value_set_boxed does not cause a buffer overrun + with GStrvs (bgo#688232) + - Fix leaks with GValues holding boxed and object types + (bgo#688137) + - Add doc strings showing method signatures for gi methods + (bgo#681967) + - Set Property instance doc string and blurb to getter doc + string (bgo#688025) + - Add GObject.G_MINSSIZE + - Fix marshalling of GByteArrays + - Fix marshalling of ssize_t to smaller ints + - Add get_introspection_module for getting + un-overridden modules (bgo#686828) + + Add support for lcov code coverage, and add a lot of missing + GIMarshallingTests and g-i Regress tests. + - pygi-convert: remove deprecated GLib → GObject conversions + - Add support for overriding GObject.Object (bgo#672727) + - Add --with-python configure option + + Do not prefer unversioned "python" when configuring, as some + distros have "python" as Python 3. Use Python 3 by default if + available. Add --with-python configure option as an alternative + to setting $PYTHON, which is more discoverable. + + Fix property lookup in class hierarchy (bgo#686942) + + Move property and signal creation into _class_init() + (bgo#686149) + + Fix duplicate symbols error on OSX + + Work around wrong 64 bit constants in GLib Gir (bgo#685022) + + Mark GLib.Source.get_current_time() as deprecated + + Fix OverflowError in source_remove() (bgo#684526) + + Updated translations. + +------------------------------------------------------------------- +Sat Nov 17 09:48:57 UTC 2012 - dimstar@opensuse.org + +- Update to version 3.7.1: + + Bump version to 3.7.1; let's follow the real GNOME versioning + from now on + + Change install_properties to not use getattr on classes + (bgo#686559) + + Move property install function into propertyhelper.py + (bgo#686559) + + Fix Signal decorator to not use base class gsignals dict + (bgo#686496) + + tests: Consistently use GLib.MainLoop + + Install the .egg-info files into correct multilib directory + (bgo#686315) + + Fix leak with python callables as closure argument (bgo#685598) + + Gio overrides: Handle setting GSettings enum keys (bgo#685947) + + tests: Check reading GSettings enums in Gio overrides + + Fix unsigned values in GArray/GList/GSList/GHash (bgo#685860) + + _pygi_marshal_from_py_uint64(): Use correct data type in py2.7 + check (bgo#685000) + + pygobject.c: Don't leak GObjectClass reference (bgo#684062) + + Fix memory leak in _pygi_argument_to_array() (bgo#685082) + + GVariant overrides: Support empty tuple arrays (bgo#684928) + + tests: Fix wrong return type in test_int64_callback() + (bgo#684700) + + Fix GValue marshalling of long and unsigned long (bgo#684331) + + Clean up deprecation message for assigning gpointers to objects + (bgo#683599) + + pygi-property: Lookup property in base classes of + non-introspected types (bgo#684058) + ------------------------------------------------------------------- Fri Nov 16 08:57:51 UTC 2012 - dimstar@opensuse.org diff --git a/python-gobject.spec b/python-gobject.spec index 3e60f90..d888a23 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -1,7 +1,7 @@ # # spec file for package python-gobject # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,12 +22,14 @@ %define local_py_requires Requires: python(abi) = %py3_ver %define local_py_sitedir %{python3_sitearch} %define local_py_suffix 3 +%define local_py_pkg python3 %define local_lib_ver 3-0 %else %define local_py_requires %{py_requires} %define local_py_sitedir %{py_sitedir} -%define local_py_suffix %{nil} -%define local_lib_ver 0 +%define local_py_suffix 2 +%define local_py_pkg python +%define local_lib_ver 2-0 %endif Name: python-gobject @@ -35,13 +37,13 @@ Name: python-gobject Summary: Python bindings for GObject License: LGPL-2.1+ Group: Development/Libraries/Python -Version: 3.4.2 +Version: 3.8.0 Release: 0 Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ -Source: http://download.gnome.org/sources/pygobject/3.4/%{_name}-%{version}.tar.xz +Source: http://download.gnome.org/sources/pygobject/3.8/%{_name}-%{version}.tar.xz BuildRequires: fdupes -BuildRequires: glib2-devel >= 2.31.0 -BuildRequires: gobject-introspection-devel >= 1.34.1.1 +BuildRequires: glib2-devel >= 2.34.2 +BuildRequires: gobject-introspection-devel >= 1.34.2 BuildRequires: libffi-devel %if %{build_for_python3} BuildRequires: python3-cairo-devel @@ -52,6 +54,8 @@ BuildRequires: python-devel %endif BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-gobject) +# Trigger an automatic installation of python(3)?-gobject when python and libgirepository are installed. +Supplements: packageand(%{local_py_pkg}:libgirepository-1_0-1) BuildRoot: %{_tmppath}/%{name}-%{version}-build %{local_py_requires} @@ -99,9 +103,9 @@ Summary: Python bindings for GObject Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: libpyglib-gi-2_0-python%{local_lib_ver} = %{version} -%if %{build_for_python3} -# Several files are conflicting between python2 and python3 builds -Conflicts: python-gobject-devel +%if ! %{build_for_python3} +# If somebody wants the -devel package, we provide the full set. +Requires: python3-gobject-devel %endif %description devel @@ -121,6 +125,12 @@ make %{?jobs:-j%jobs} V=1 %install %makeinstall find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f +%if %{build_for_python3} +# If we're building for python3, we remove the header and .pc file... +# Those files are python-version agnostic... so it does not matter. +rm -r %{buildroot}%{_includedir}/pygobject-3.0/pygobject.h +rm %{buildroot}%{_libdir}/pkgconfig/pygobject-3.0.pc +%endif rm examples/Makefile* %fdupes $RPM_BUILD_ROOT @@ -152,11 +162,14 @@ rm -rf $RPM_BUILD_ROOT %files pygtkcompat %defattr(-,root,root) %{local_py_sitedir}/gi/pygtkcompat.py +%{local_py_sitedir}/pygtkcompat/ %files devel %defattr(-,root,root) -%{_includedir}/pygobject-3.0/ %{_libdir}/*.so +%if ! %{build_for_python3} +%{_includedir}/pygobject-3.0/ %{_libdir}/pkgconfig/pygobject-3.0.pc +%endif %changelog diff --git a/python3-gobject.changes b/python3-gobject.changes index eea7b23..5d71c46 100644 --- a/python3-gobject.changes +++ b/python3-gobject.changes @@ -1,3 +1,248 @@ +------------------------------------------------------------------- +Mon Mar 25 08:12:42 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.8.0: + + tests: Fix incorrect assumption when testing pyglib version. + +------------------------------------------------------------------- +Mon Mar 18 19:41:40 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.92: + + pygtkcompat: Make gdk.Window.get_geometry return tuple of 5. + + pygtkcompat: Initialize hint to zero in set_geometry_hints. + + Remove incorrect bounds check with property helper flags. + + Bugs fixed: bgo#637832, bgo#696011, bgo#694889, bgo#695420, + bgo#695420. + +------------------------------------------------------------------- +Tue Mar 5 12:03:01 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.91.1: + + Revert "Drop gi.overrides.overridefunc()" (bgo#695199). + +------------------------------------------------------------------- +Mon Mar 4 17:25:38 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.91: + + Fix many memory leaks (bgo#675726, bgo#693402, bgo#691501, + bgo#510511, bgo#691501, bgo#672224, and several more which are + detected by our test suite) + + Dot not clobber original Gdk/Gtk functions with overrides + (bgo#686835) + + Optimize GValue.get/set_value by setting GValue.g_type to a + local (bgo#694857) + + Run tests with G_SLICE=debug_blocks (bgo#691501) + + Add override helper for stripping boolean returns (bgo#694431) + + Drop obsolete pygobject_register_sinkfunc() declaration + (bgo#639849) + + Fix marshalling of C arrays with explicit length in signal + arguments (bgo#662241) + + Fix signedness, overflow checking, and 32 bit overflow of + GFlags (bgo#693121) + + gi/pygi-marshal-from-py.c: Fix build on Visual C++ (bgo#692856) + + Raise DeprecationWarning on deprecated callables (bgo#665084) + + pygtkcompat: Add Widget.window, scroll_to_mark, and window + methods (bgo#694067) + + pygtkcompat: Add Gtk.Window.set_geometry_hints which accepts + keyword arguments (bgo#694067) + + Ship pygobject.doap for autogen.sh (bgo#694591) + + Fix crashes in various GObject signal handler functions + (bgo#633927) + + pygi-closure: Protect the GSList prepend with the GIL + (bgo#684060) + + generictreemodel: Fix bad default return type for + get_column_type. + +------------------------------------------------------------------- +Tue Feb 19 12:15:54 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.90: + + overrides: + - Fix inconsistencies with drag and drop target list API + (bgo#680640). + - Add support for iterables besides tuples for TreePath + creation (bgo#682933). + + pygtkcompat: Add pygtk compatible GenericTreeModel + implementation (bgo#682933). + + Prefix __module__ attribute of function objects with + gi.repository (bgo#693839). + + Bugs fixed: bgo#693328, bgo#693618, bgo#687522. + +------------------------------------------------------------------- +Tue Feb 5 11:20:02 UTC 2013 - p.drouand@gmail.com + +- Update to version 3.7.5.1: + + Fix ABI break with pygobject.h from 3.7.5 (bgo#675726). +- Changes from version 3.7.5: + + Move various signal methods from static bindings to GI + (bgo#692918) + + GLib overrides: Support unpacking 'maybe' variants (bgo#693032) + + Fix ref count leak when creating pygobject wrappers for input + args (bgo#675726) + + Prefix names of typeless enums and flags for GType registration + (bgo#692515) + + Fix compilation with non-C99 compilers such as Visual C++ + (bgo#692856) + + gi/overrides/Glib.py: Fix running on Windows/non-Unix + + Do not immediately initialize Gdk and Gtk on import + (bgo#692300) + - Accept inf and NaN as float and double values (bgo#692381) + - Fix repr() of GLib.Variant + - Fix gtk-demo for Python 3 + - Define GObject.TYPE_VALUE gtype constant + * gobject: Go through introspection on property setting + (bgo#684062) + * Clean up caller-allocated GValues and their memory + (bgo#691820) + - Use GNOME_COMPILE_WARNINGS from gnome-common. + +------------------------------------------------------------------- +Mon Jan 14 18:25:00 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.4: + + Allow setting values through GtkTreeModelFilter (bgo#689624) + + Support GParamSpec signal arguments from Python (bgo#683099) + + pygobject_emit(): Fix cleanup on error + + Add signal emission methods to TreeModel which coerce the path + argument (bgo#682933) + + Add override for GValue (bgo#677473) + + Mark caller-allocated boxed structures as having a slice + allocated (bgo#699501) + + pygi-property: Support boxed GSList/GList types (bgo#684059) + + tests: Add missing backwards compat methods for Python 2.6 + (bgo#691646) + + Allow setting TreeModel values to None (bgo#684094) + + Set clean-up handler for marshalled arrays (bgo#691509) + + Support setting string fields in structs (bgo#678401) + + Permit plain integers for "gchar" values + + Allow single byte values for int8 types (bgo#691524) + + Fix invalid memory access handling errors when registering an + enum type + + Fix (out) arguments in callbacks + + Fix C to Python marshalling of struct pointer arrays + + Don't let Property.setter() method names define property names + (bgo#688971) + + Use g-i stack allocation API (bgo#615982) + + pyg_value_from_pyobject: support GArray (bgo#690514) + + Fix obsolete automake macros (bgo#691101) + + Change dynamic enum and flag gtype creation to use namespaced + naming (bgo#690455) + + Fix Gtk.UIManager.add_ui_from_string() override for non-ASCII + chars (bgo#690329) + + Don't dup strings before passing them to type registration + functions (bgo#690532) + + Fix marshalling of arrays of boxed struct values (bgo#656312) + +------------------------------------------------------------------- +Wed Jan 9 19:46:40 UTC 2013 - dimstar@opensuse.org + +- Resolve conflict between python-gobject-devel and + python3-gobject-devel: only package the .h and .pc file in + python-gobject-devel, but require python-gobject-devel from this + package (See bgo#689068 for background). The .pc and .h files are + python-version agnostic. +- Add supplemnts to auto-install python(3)?-gobject when python(3)? + and libgirepository-1_0-1 are installed. + +------------------------------------------------------------------- +Wed Jan 9 18:20:17 UTC 2013 - dimstar@opensuse.org + +- Update to version 3.7.3: + + Add support for caller-allocated GArray out arguments + (bgo#690041) + + [API add] Re-support calling GLib.io_add_watch with an fd or + Python file + - pygtkcompat: Work around IndexError on large flags + - Fix pyg_value_from_pyobject() range check for uint + - Fix tests to work with g-i 1.34.2 + + Fix wrong refcount for GVariant property defaults (bgo#689267) + - Fix array arguments on 32 bit architectures + - Add backwards compatible API for GLib.unix_signal_add_full() + + Drop MININT64/MAXUINT64 workaround, current g-i gets this right + now + - Fix maximum and minimum ranges of TYPE_(U)INT64 properties + (bgo#688949) + - Ship pygi-convert.sh in tarballs (bgo#688697) +- Changes from version 3.7.2: + + API changes: + - Drop almost all static GLib bindings and replace them with + proper introspection. + - Deprecate calling GLib API through the GObject namespace. + This has always been a misnomer with introspection, and will + be removed in a later version; for now this throws a + PyGIDeprecationWarning. + - Do not bind gobject_get_data() and gobject_set_data(). + (bgo#641944) + - Deprecate void pointer fields as general PyObject storage. + (bgo#683599) + - Add support for GVariant properties + - Add type checking to GVariant argument assignment + - Fix marshalling of arrays of struct pointers to Python + (bgo#678620) + - Fix Gdk.Atom to have a proper str() and repr() (bgo#678620) + - Make sure g_value_set_boxed does not cause a buffer overrun + with GStrvs (bgo#688232) + - Fix leaks with GValues holding boxed and object types + (bgo#688137) + - Add doc strings showing method signatures for gi methods + (bgo#681967) + - Set Property instance doc string and blurb to getter doc + string (bgo#688025) + - Add GObject.G_MINSSIZE + - Fix marshalling of GByteArrays + - Fix marshalling of ssize_t to smaller ints + - Add get_introspection_module for getting + un-overridden modules (bgo#686828) + + Add support for lcov code coverage, and add a lot of missing + GIMarshallingTests and g-i Regress tests. + - pygi-convert: remove deprecated GLib → GObject conversions + - Add support for overriding GObject.Object (bgo#672727) + - Add --with-python configure option + + Do not prefer unversioned "python" when configuring, as some + distros have "python" as Python 3. Use Python 3 by default if + available. Add --with-python configure option as an alternative + to setting $PYTHON, which is more discoverable. + + Fix property lookup in class hierarchy (bgo#686942) + + Move property and signal creation into _class_init() + (bgo#686149) + + Fix duplicate symbols error on OSX + + Work around wrong 64 bit constants in GLib Gir (bgo#685022) + + Mark GLib.Source.get_current_time() as deprecated + + Fix OverflowError in source_remove() (bgo#684526) + + Updated translations. + +------------------------------------------------------------------- +Sat Nov 17 09:48:57 UTC 2012 - dimstar@opensuse.org + +- Update to version 3.7.1: + + Bump version to 3.7.1; let's follow the real GNOME versioning + from now on + + Change install_properties to not use getattr on classes + (bgo#686559) + + Move property install function into propertyhelper.py + (bgo#686559) + + Fix Signal decorator to not use base class gsignals dict + (bgo#686496) + + tests: Consistently use GLib.MainLoop + + Install the .egg-info files into correct multilib directory + (bgo#686315) + + Fix leak with python callables as closure argument (bgo#685598) + + Gio overrides: Handle setting GSettings enum keys (bgo#685947) + + tests: Check reading GSettings enums in Gio overrides + + Fix unsigned values in GArray/GList/GSList/GHash (bgo#685860) + + _pygi_marshal_from_py_uint64(): Use correct data type in py2.7 + check (bgo#685000) + + pygobject.c: Don't leak GObjectClass reference (bgo#684062) + + Fix memory leak in _pygi_argument_to_array() (bgo#685082) + + GVariant overrides: Support empty tuple arrays (bgo#684928) + + tests: Fix wrong return type in test_int64_callback() + (bgo#684700) + + Fix GValue marshalling of long and unsigned long (bgo#684331) + + Clean up deprecation message for assigning gpointers to objects + (bgo#683599) + + pygi-property: Lookup property in base classes of + non-introspected types (bgo#684058) + ------------------------------------------------------------------- Fri Nov 16 08:57:51 UTC 2012 - dimstar@opensuse.org diff --git a/python3-gobject.spec b/python3-gobject.spec index 4aafe45..391f26d 100644 --- a/python3-gobject.spec +++ b/python3-gobject.spec @@ -1,7 +1,7 @@ # # spec file for package python3-gobject # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,12 +22,14 @@ %define local_py_requires Requires: python(abi) = %py3_ver %define local_py_sitedir %{python3_sitearch} %define local_py_suffix 3 +%define local_py_pkg python3 %define local_lib_ver 3-0 %else %define local_py_requires %{py_requires} %define local_py_sitedir %{py_sitedir} -%define local_py_suffix %{nil} -%define local_lib_ver 0 +%define local_py_suffix 2 +%define local_py_pkg python +%define local_lib_ver 2-0 %endif Name: python3-gobject @@ -35,13 +37,13 @@ Name: python3-gobject Summary: Python bindings for GObject License: LGPL-2.1+ Group: Development/Libraries/Python -Version: 3.4.2 +Version: 3.8.0 Release: 0 Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/ -Source: http://download.gnome.org/sources/pygobject/3.4/%{_name}-%{version}.tar.xz +Source: http://download.gnome.org/sources/pygobject/3.8/%{_name}-%{version}.tar.xz BuildRequires: fdupes -BuildRequires: glib2-devel >= 2.31.0 -BuildRequires: gobject-introspection-devel >= 1.34.1.1 +BuildRequires: glib2-devel >= 2.34.2 +BuildRequires: gobject-introspection-devel >= 1.34.2 BuildRequires: libffi-devel %if %{build_for_python3} BuildRequires: python3-cairo-devel @@ -52,6 +54,8 @@ BuildRequires: python-devel %endif BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-gobject) +# Trigger an automatic installation of python(3)?-gobject when python and libgirepository are installed. +Supplements: packageand(%{local_py_pkg}:libgirepository-1_0-1) BuildRoot: %{_tmppath}/%{name}-%{version}-build %{local_py_requires} @@ -99,9 +103,9 @@ Summary: Python bindings for GObject Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: libpyglib-gi-2_0-python%{local_lib_ver} = %{version} -%if %{build_for_python3} -# Several files are conflicting between python2 and python3 builds -Conflicts: python-gobject-devel +%if ! %{build_for_python3} +# If somebody wants the -devel package, we provide the full set. +Requires: python3-gobject-devel %endif %description devel @@ -121,6 +125,12 @@ make %{?jobs:-j%jobs} V=1 %install %makeinstall find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f +%if %{build_for_python3} +# If we're building for python3, we remove the header and .pc file... +# Those files are python-version agnostic... so it does not matter. +rm -r %{buildroot}%{_includedir}/pygobject-3.0/pygobject.h +rm %{buildroot}%{_libdir}/pkgconfig/pygobject-3.0.pc +%endif rm examples/Makefile* %fdupes $RPM_BUILD_ROOT @@ -152,11 +162,14 @@ rm -rf $RPM_BUILD_ROOT %files pygtkcompat %defattr(-,root,root) %{local_py_sitedir}/gi/pygtkcompat.py +%{local_py_sitedir}/pygtkcompat/ %files devel %defattr(-,root,root) -%{_includedir}/pygobject-3.0/ %{_libdir}/*.so +%if ! %{build_for_python3} +%{_includedir}/pygobject-3.0/ %{_libdir}/pkgconfig/pygobject-3.0.pc +%endif %changelog