diff --git a/pre_checkin.sh b/pre_checkin.sh deleted file mode 100644 index d08c70f..0000000 --- a/pre_checkin.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -sed 's,build_for_python3 0,build_for_python3 1,;s,^\(Name: *\)python-gobject,\1python3-gobject,' python-gobject2.spec > python3-gobject2.spec -cp python-gobject2.changes python3-gobject2.changes diff --git a/python-gobject2.changes b/python-gobject2.changes index 0fb75f8..620324d 100644 --- a/python-gobject2.changes +++ b/python-gobject2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 8 16:07:38 UTC 2022 - Ben Greiner + +- remove Python 3 code from specfile: not compatible with + Python 3.10 + ------------------------------------------------------------------- Mon Mar 23 13:29:38 UTC 2020 - Tomáš Chvátal diff --git a/python-gobject2.spec b/python-gobject2.spec index 38c5203..341a5d2 100644 --- a/python-gobject2.spec +++ b/python-gobject2.spec @@ -16,14 +16,8 @@ # -%define build_for_python3 0 -%if %{build_for_python3} -%define local_py_requires Requires: python(abi) = %{py3_ver} -%define local_py_sitedir %{python3_sitearch} -%else %define local_py_requires %py_requires %define local_py_sitedir %{python2_sitearch} -%endif %define _name pygobject Name: python-gobject2 Version: 2.28.7 @@ -36,14 +30,9 @@ BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: libffi-devel %{local_py_requires} -%if %{build_for_python3} -BuildRequires: python3-cairo-devel -BuildRequires: python3-devel -%else BuildRequires: python-cairo-devel BuildRequires: python-devel Provides: python2-gobject2 = %{version} -%endif %description Pygobjects is an extension module for python that gives you access to @@ -64,14 +53,9 @@ This package contains the Python Cairo bindings for GObject. %package devel Summary: Python bindings for GObject Requires: %{name} = %{version} -%if %{build_for_python3} -# Several files are conflicting between python2 and python3 builds -Conflicts: python-gobject2-devel -%else Provides: python-gobject2-doc = %{version} Obsoletes: python-gobject2-doc < %{version} Provides: python2-gobject2-devel = %{version} -%endif %description devel This package contains files required to build wrappers for gobject @@ -81,9 +65,6 @@ addon libraries such as pygtk. %setup -q -n %{_name}-%{version} %build -%if %{build_for_python3} -export PYTHON=python3 -%endif %configure --disable-static --disable-introspection %make_build @@ -110,11 +91,9 @@ rm examples/Makefile* %{_includedir}/pygtk-2.0/ %{_libdir}/*.so %{_libdir}/pkgconfig/pygobject-2.0.pc -%if !%{build_for_python3} ## codegen %{_bindir}/pygobject-codegen-2.0 %{_datadir}/%{_name}/2.0/codegen/ -%endif # we explicitly list the directories here to be sure we don't include something # that should live in the main package %dir %{_datadir}/%{_name} diff --git a/python3-gobject2.changes b/python3-gobject2.changes deleted file mode 100644 index 0fb75f8..0000000 --- a/python3-gobject2.changes +++ /dev/null @@ -1,622 +0,0 @@ -------------------------------------------------------------------- -Mon Mar 23 13:29:38 UTC 2020 - Tomáš Chvátal - -- Use python2_sitearch to fix build without extra macros - -------------------------------------------------------------------- -Mon Jul 23 08:35:35 UTC 2018 - dimstar@opensuse.org - -- Use python_sitearch instead of deprecated py_sitedir. - -------------------------------------------------------------------- -Wed Dec 13 13:34:36 UTC 2017 - dimstar@opensuse.org - -- Update to version 2.28.7: - + Move property and signal creation into _class_init(). - + gio-types.defs: change some enums to flags. - + Fix set_qdata warning on accessing NULL gobject property. - + Disable introspection support by default. - + Don't install codegen for Python 3. - + Ship tests/te_ST@nouppera in release tarballs for tests to - succeed. - + [gi] Port test_properties from static gio to GI Gio. - + python3: - - Fix build. PYcairo_IMPORT doesn't exists anymore. - - Fix maketrans import. - + [gi-overrides] fix MessageBox so it correctly handles the type - constructor param. - + gdbus tests: Fix hang if test case fails. - + Fix crash in Gtk.TextIter overrides. - + correctly initialize the _gi_cairo_functions array to be zero - filled. - + [gtk-override] print warning if user imports Gtk 2.0. - + Add support for enums in gobject.property. -- Drop python-gobject-python3.patch and - python-gobject-gio_types.patch: fixed upstream. -- Drop libtool BuildRequires and call to autoreconf: no longer - needed since we don't carry patches anymore. - -------------------------------------------------------------------- -Sat Feb 25 05:27:38 UTC 2017 - toddrme2178@gmail.com - -- Add python2-gobject2 and python2-gobject2-devel provides for - compatibility with multipython packages. - -------------------------------------------------------------------- -Wed Sep 25 12:24:06 UTC 2013 - toddrme2178@gmail.com - -- Fix building python 3 version on openSUSE <= 12.3; __pycache__ - was not built a this time. - -------------------------------------------------------------------- -Tue Jul 16 08:53:05 UTC 2013 - dimstar@opensuse.org - -- Run pre_checkin.sh to re-introduce python3 capabilities: - + Adds python3-gobject2.spec and .changes. - -------------------------------------------------------------------- -Thu Sep 13 02:15:50 UTC 2012 - andrea.bedini@gmail.com - -- Add python-gobject-gio_types.patch: patches taken from git, to fix - some type mismatches in gio-types.defs. - -------------------------------------------------------------------- -Sun Nov 27 06:55:54 UTC 2011 - coolo@suse.com - -- add libtool as buildrequire to avoid implicit dependency - -------------------------------------------------------------------- -Fri Sep 30 08:25:18 UTC 2011 - vuntz@opensuse.org - -- Update python3-gobject2 packaging: - + Use %{python3_sitearch} now that it's defined, instead of our - own custom macro. - + Change python3 Requires to python(abi) = %py3_ver, which is - saner. - -------------------------------------------------------------------- -Wed Aug 24 11:40:27 UTC 2011 - dimstar@opensuse.org - -- Revert the rename from pygobject to pygobject2 for the docs: This - fix is counter productive. python-gobject (version 3) does not - provide useful documentation in first place. The right fix is not - to install the doc in python-gobject (version 2.90.x+) - -------------------------------------------------------------------- -Mon Aug 22 13:01:34 UTC 2011 - dimstar@opensuse.org - -- Remove gobject-introspection-devel BuildRequires: We no longer - build the gi bindings, as they were moved to python-gobject 3. -- Move the doc from /usr/share/gtk-doc/html/pygobject to pygobject2 - in order to not conflicy with python-gobject 3 on file level. - -------------------------------------------------------------------- -Sat Aug 20 21:15:39 UTC 2011 - dimstar@opensuse.org - -- Pass --disable-introspection to configure. The introspection - based bindings are provided by python-gobject, the newer version - of this code. - -------------------------------------------------------------------- -Mon Aug 15 08:46:22 UTC 2011 - dimstar@opensuse.org - -- Rename package to python(3)?-gobject2. This package is legacy - gtk2 based and is 'fading out'. -- Pass --disable-static to configure and use find -delete to clean - up the libtool archives. - -------------------------------------------------------------------- -Fri Jun 17 11:53:53 CEST 2011 - vuntz@opensuse.org - -- Change the source package so we can build both python 2 - (python-gobject) and python 3 (python3-gobject) versions, based - on the same .spec file: - + define a build_for_python3 variable to control the behavior - + use local_py_requires and local_py_sitedir variables, that - proxy the appropriate values depending on what is being built - + do not change anything for the python 2 build - + for the python 3 build: - . replace python-cairo-devel and python-devel BuildRequires - with python3-cairo-devel and python3-devel - . do not keep any Provides/Obsoletes that are related to - python-gobject2 - . add Conflicts with python-gobject-devel to the devel - subpackage, as both devel subpackages install the same files - . export PYTHON=python3 for the build -- Add libffi-devel BuildRequires that will now work, since - libffi-devel finally comes with a pkg-config file. -- Add python-gobject-python3.patch: patches taken from git, to fix - build with python 3. Add call to autoreconf, as configure.ac is - modified. - -------------------------------------------------------------------- -Fri Jun 17 06:17:54 CEST 2011 - vuntz@opensuse.org - -- Update to version 2.28.6: - + Fixes for GVariant. - + Added __eq__ method for Gdk.Color and Gdk.RGBA - + Fix symbol names to be locale independent - + closure: Check the out arg is not null (bgo#651812) - + Use _gi.Struct to wrap fundamentals - + Fix two crashes. - -------------------------------------------------------------------- -Wed May 4 16:26:18 UTC 2011 - dimstar@opensuse.org - -- Update to version 2.28.4: - + [gi] Don't create variant twice - + [gi] Removed hack to avoid using GLib.Variant.new_variant. - + [gi] Added additional test case for GVariant handling - + [gi] Added support for GVariant arguments - + pygi-convert.sh: Make sure the uppercase GObject module is - imported instead of the lowercase - + Fix ABI break in old static bindings - + Fetch size from an enum type - + dsextras.py: ensure eol characters are preserved when writing - template files (so \n does not become \r\n) -- Use full URL to tarball as Source: tag. - -------------------------------------------------------------------- -Wed Mar 23 17:39:40 UTC 2011 - fcrozat@novell.com - -- Update to version 2.28.3: - + fix a typo when converting objects to strings gvalues -- Changes from version 2.28.2: - + fixed an ABI break in the static bindings when setting string - gvalues e.g. passing an int to a Gtk.ListStore column which - expects a string automatically converts the int to a string - instead of throwing an error. -- Changes from version 2.28.1: - + pygi-convert.sh now supports webkit conversions and favors - using GObject over gobject. - + Raw closures can now be passed from a signal/vfunc callback to - a method. - + Revert linking to the python libs because the python runtime - statically links it in TreeModel column marshalling is now more - robust (supports GObject Python Object storing). - + Gtk.MessageDialog now respects the MessageType - + You can now send None in for the signature of GDBus messages - that have no parameters. - + TreeViewColumn.set_cell_data_func can take None for the func_data - + Fix syntax error so we can run in Python 2.5 - + Add pickers and menu demos -- Changes from version 2.28.0: - + fix sinking of floating objects - + fix leaks when setting properties - + add basic icon view demo - + add search entry demo - + override Gdk.RGBA so you can construct it like - Gdk.RGBA(1.0, 1.0, 1.0, 1.0). - + handle unichar gvalues in TreeModels - + check for _thread module when configuring threading - + package config file now contains overridesdir variable for 3rd - party overrides. - + on windows set bdist_wininst user-access-control property when - installing. - + Gtk.stock_lookup return None on failure instead of a success - value. - + Python 2.5 fixes - + Python 3 fixes - -------------------------------------------------------------------- -Tue Mar 1 08:30:34 UTC 2011 - fcrozat@novell.com - -- Update to version 2.27.91: - + Typelibs now loaded at import time instead of lazy loading. - + Various fixes for GTK+/GDK support via gi. - + Various other fixes. -- Changes from version 2.27.90: - + Faster handling of virtual methods when constructing objects - + Enhanced gdbus and gvarient handling. - + Enhanced drag and drop support. - + Enhanced GtkTextBuffer support - + Enhanced pygi-convert.sh script for automating PyGtk to - PyGObject Introspection migration. - + Many introspection fixes. - + Add/improve various overrides for GTK+. - + Python 3 fixes. -- Changes from version 2.27.0: - + Implement richcompare for GIBaseInfo - + Add a overrides registry so we can reference overrides inside - the module - + Add/improve various overrides for GTK+. - + Many introspection fixes. - + Python 3 fixes. - + Various other fixes. -- Remove pygobject-2.26.0-capsule.patch: fixed upstream. -- Change python-gobject2, python-gobject2-cairo and - python-gobject2-devel Obsoletes to be < instead of <= now that we - have a new version. - -------------------------------------------------------------------- --Wed Feb 9 18:09:19 UTC 2011 - jmatejek@novell.com - -- added patch that switches to new Capsule API, because the deprecated - PyCObject API will cause a segfault when warnings are exceptions - (bnc#669802) - -------------------------------------------------------------------- -Fri Jan 7 15:05:51 CET 2011 - vuntz@opensuse.org - -- Rename source package and binary package from python-gobject2 to - python-gobject: there's no reason to have the trailing 2 here. -- Add appropriate Provides/Obsoletes for migration. - -------------------------------------------------------------------- -Mon Sep 27 20:37:08 CEST 2010 - vuntz@opensuse.org - -- Update to version 2.26.0: - + A lot of work for introspection support. - + A lot of work for python3 support. - + Wrap g_get_system_{config,data}_dirs() - + Wrap g_uri_list_extract_uris. - + Add override for GLib.Variant.new_tuple - + Use Bytes instead of Unicode when reading io - + Many bug fixes. - + Fix warnings. - + Code cleanup. - -------------------------------------------------------------------- -Fri Aug 27 16:00:44 CEST 2010 - vuntz@opensuse.org - -- Fix Supplements of python-gobject2-cairo subpackage to reference - the name of the package providing cairo, instead of - name-version-arch. - -------------------------------------------------------------------- -Sun Aug 8 16:49:36 CEST 2010 - vuntz@opensuse.org - -- Merge doc subpackage in devel subpackage, since the files in - there are needed when building API docs for other python - bindings. - -------------------------------------------------------------------- -Sun Aug 8 14:29:38 CEST 2010 - vuntz@opensuse.org - -- Update to version 2.21.5: - + Adjust to API break in GObject-Introspection - + Override test fixes for new GTK+ annotations - + Fix up treeiter usage due to caller-allocates annotations in - gtk+ - + Add __name__ to DynamicModule class. - + Do not override GdkRectangle. - + Add override for TreeModel implementing __len__() - + Fix warnings - + Various fixes to demos, and new demos -- Changes from version 2.21.4: - + Merge PyGI - + Various fixes to demos, and new demos -- Changes from version 2.21.3: - + Proper handling of null-ok in virtual methods - + Fall back to use the floating references API in glib if there - isn't a sinkfunc defined. - + Revert "Drop sinkfuncs." - + [giounix] Make it possible to compile on glib 2.20 - + Release the lock when potentially invoking Python code. -- Changes from version 2.21.2: - + Drop sinkfuncs. - + Clear error if we failed the import - + Added missing , to keyword list of gio.GFile.set_attribute - + Fix arg conversion in gio.GFile.set_attribute - + Set constants under python 2.5 or before - + Doc Extractor: Use replacements that make sense for &...; - expressions. - + Setup.py cosmetic tidy - + Fix crash when importing gio - + Include pygsource.h - + codegen/docextract_to_xml.py: One more &...; replacement - ( ). - + codegen/docextract_to_xml.py: Replace some &..; that cause - errors. - + codegen/docextract_to_xml.py: Handle C++ multi-line comments. - + codegen/docextract.py: Stop final section processing on first - match. - + Update doc extraction tool to handle GObjectIntrospection - annotations. - + bgo#613341 - pygobject tests seem to require pygtk causing a - circular dependencies problem - + Don't raise an error in _pygi_import if pygi support is - disabled - + Initialize PyGPollFD_Type.fd_obj to NULL - + Wrap gio.Cancellable.make_pollfd() and add a test - + Make cancellable an optional parameter in many methods - + Documentation fixes. - + Build fixes. -- Add gobject-introspection-devel, python-cairo-devel - BuildRequires. -- Remove non-existing --enable-pygi configure flag. -- Create a cairo subpackage, for the pygi cairo binding, so that - cairo is not installed by default with the main package (since - cairo implies installing X). -- Move /usr/bin/pygobject-codegen-2.0 and /usr/share/pygobject/ to - devel subpackage. - -------------------------------------------------------------------- -Wed Jan 6 12:26:38 CET 2010 - vuntz@opensuse.org - -- Update to version 2.21.1: - + Wrap a lot of new API. - + Make cancellable optional in gio.SocketClient.connect_to_host, - gio.SocketAddressEnumerator.next, - gio.Resolver.lookup_by_address, GFile.create_readwrite - + Deprecate old gio.Drive methods - + Strip g_ prefix for many other functions - + Strip g_ prefix from InetAddress functions - + Fix function name gio.resolver_get_default - + Register enums and flags in PyGI if needed (bgo#603534) - + Remove a duplicate entry in gio.defs - + Fix handling of uchar in pyg_value_from_pyobject - -------------------------------------------------------------------- -Sun Dec 20 11:57:27 CET 2009 - vuntz@opensuse.org - -- Update to version 2.21.0: - + pygmainloop: fix use of PySignal_WakeUpFD API for nested loops - (bgo#481569) - + Add capabilities to import wrappers from pygi - + Move threads_init() function from 'gobject' to 'glib' - + Fix wrong minimum checking in float properties (bgo#587637) - + Wrap new API added in GIO 2.22 - + Fix bad name when rebuilding the unix source module - + Add the missing limit constants from glibconfig.h (bgo#603244) - + Suppress warnings about format conversion (bgo#603355) - + Properly define Connectable as interface type and not object - type - + Wrap new API added in GIO-UNIX 2.22 - + Wrap g_find_program_in_path (bgo#598435) - + Add pygi-external.h into Makefile SOURCES -- Pass --enable-pygi to configure to have introspection support. - -------------------------------------------------------------------- -Thu Dec 17 17:54:09 CET 2009 - jengelh@medozas.de - -- Package documentation as noarch - -------------------------------------------------------------------- -Tue Sep 29 10:20:43 CEST 2009 - vuntz@opensuse.org - -- Update to version 2.20.0: - - Allow to use automake 1.11 - - Specify programming language in .devhelp file - - Plug reference leak of GSource in pyg_main_loop_init - - Updated uninstalled.pc file -- Changes from version 2.19.0: - - Add macros to help with Python list to/from GList/GSList - conversions. - - GIO docs practically completed - - GFileInfo.list_attributes should accept None/NULL - - Strip out Windows DLL API macros - - Document that many functions got moved gobject -> glib - - Allow h2def.py to work when there are tabs or multiple spaces - after the struct keyword. - - Fix build when builddir is not the same as srcdir - - Make gio.Emblem constructor new-style - - Cleanup GIO overrides to use Python function/method names - - Make codegen report errors using Python function/method names - - Fix object type in gio.BufferedInputStream_fill_async - - Wrap gio.BufferedInputStream.fill_async - - Add gio.BufferedOutputStream which was forgotten in the types - - Split overrides for gio.MemoryOutputStream - - Wrap gio.memory_input_stream_new_from_data - - Introduces the girepository module from the former PyBank - - Add API appeared in 2.20 but not marked as such in gio docs - - Wrap gio.FileOutputStream.query_info_async - - Wrap gio.FileInputStream.query_async - - Install executable codegen parts with executing permissions - - Wrap gio.DataInputStream.read_line_async and read_until_async - - Fix gio.OutputStream.splice_async - - Add GIO 2.20 API and update docs -- Remove AutoReqProv: it's default now. - -------------------------------------------------------------------- -Wed May 27 12:25:51 CEST 2009 - vuntz@novell.com - -- Update to version 2.18.0: - + Improve gio docs with some more classes - + Wrap gio.OutputStream.splice_async() - + Add Python ver into installed libpyglib name - + Wrap gio.OutputStream.flush_async() - + Use 'Requires.private' for libffi in '.pc' files - + Add wrapper for gio.FileAttributeMatcher - + Mark relevant glib.IOChannel methods as METH_NOARGS - + Retire hand-written ChangeLog; autocreate from Git history - + Wrap gio.InputStream.skip_async() - + Add in codegen -n --namespace option and the code to remove dll - API in headers, added documentation - + Properly mark glib.get_user_special_dir() as a keywords method - -------------------------------------------------------------------- -Fri May 1 12:45:48 CEST 2009 - mboman@suse.de - -- Update to version 2.17.0: - + Write a good part of the docs for gio - + Wrap g_mount_guess_content_type - g_mount_guess_content_type_finish - + Swap first two arguments of gio.File.query_info_async - + Fix a crash in pyg_type_add_interfaces - + Remove an empty structure, use sizeof(PyObject) - + Wrap four g_get_user_*_dir() functions - + Remove 'ltihooks.py' as using deprecated Python module - + Code maintenance: add .gitignore files - + CellRendererPixbuf stock-size property has wrong type - + Add a doap file after git migration - + missing dep on libffi in pygobject-2.0.pc - + g_volume_monitor_tp_new new function, return the singleton - object - + Remove a DeprecationWarning under python 2.6 - + several scripts from codegen directory are not distributed - + g_file_copy_async change argument order to keep it consistent - with the other methods - + memory leak in gio.File.copy_async - + g_file_monitor should accept None for cancellable and set the - default flag to G_FILE_MONITOR_NONE - + pyg_notify_free needs to ensure it has GIL before calling - Py_XDECREF - + Wrap g_file_set_display_name_async - + Add a semi-private method to return the option context C object - from an option context wrapper - + Converting a negative long Python value to a GUINT64 GValue - doesn't error out as it should - + Wrap g_file_set_attributes_async and g_file_set_attributes_finish - + g_file_query_filesystem_info_async fix a typo - + Wrap g_file_query_filesystem_info_async - + Add missing g_file_query_filesystem_info_async and - g_file_query_filesystem_info_finish - + Wrap g_file_eject_mountable - + g_file_copy callback cannot be optional - + Swap various kwargs names to reflect the code - + Update the address of the FSF - + Add g_volume_should_automount - + Wrap g_drive_enumerate_identifiers and - g_volume_enumerate_identifiers - + Add a couple of convinence functions to convert from/to a - python list and an array of strings - + Allow setting pytype wrapper class - + Wrap g_file_enumerator_close_async - -------------------------------------------------------------------- -Sun Feb 22 16:32:12 CET 2009 - vuntz@novell.com - -- Update to version 2.16.1: - + Apply the patch provided by Cygwin Ports maintainer - (bgo#564018) - + Bad -I ordering can break build, patch from (bgo#566737) - + Fix keyword list to be in sync with positional arguments - (bgo#566744) - + Add a comment explaining why the two for loops for registering - interfaces - + Huge cleanup of GIO overrides (bgo#566706) - + gtk.Buildable interface method override is not recognized - (bgo#566571) - + Do not escape the ampersand "&" in entity references. Replace - some unusual entity references in the output with their literal - values. (bgo#568485) - + gio.InputStream.read_async can cause memory corruption. - (bgo#567792) - + Inconsistent use of tabs and spaces in pygtk.py (bgo#569350) - + Huge fix of memory leaks in GIO (bgo#568427) - + non-async functions don't release python locks before calling - blocking C functions (bgo#556250) - + Change comment to avoid false positives when grep'ing for - deprecated gtk functions - + ltihooks.py updating license header from GPL to LGPL -- Remove gtk-doc BuildRequires. -- Use %makeinstall -- Stop using pygobject-acinclude.m4: it's not needed anymore, it - seems. -- Use fdupes. -- Move /usr/lib/libpyglib-2.0.so to devel package. -- Add post/postun with ldconfig call. - -------------------------------------------------------------------- -Mon Jan 5 09:59:37 EST 2009 - mboman@suse.de - -- Update to version 2.16.0: - + gobject.timeout_add_seconds() not found in docs (bgo#547119) - + _wrap_g_output_stream_write_async not adding a reference to the - buffer passed (bgo#564102) - + gio.VolumeMonitor segfaults (bgo#555613) - + Test if `domain' is not-null before using it to avoids segfaults - (bgo#561826) - + g_output_stream_write_all use gsize instead of gssize - + add __repr__ to gio.Drive, gio.Mount and gio.Volume (bgo#530935) - + Missing AC_CONFIG_MACRO_DIR([m4]) (bgo#551227) - + Make codegen not import when corresponding argument types are not - registered (bgo#551056) - + Fix typos breaking compilation (bgo#551212) - + GFile load_contents methods chop data at first \0 (bgo#551059) - -------------------------------------------------------------------- -Thu Sep 04 23:07:17 CEST 2008 - mboman@novell.com - -- Update to version 2.15.4: - + Too many changes and fixes to list. Please see NEWS for full details. - -------------------------------------------------------------------- -Mon Jun 30 23:07:17 CEST 2008 - maw@suse.de - -- Update to version 2.14.2: - + Allow gobject.property work with subclasses (bgo#523352) - + Unbreak Source.prepare (bgo#523075) - + Never override customly set 'tp_new' and 'tp_alloc' - + Don't link against libffi if we cannot find libffi on the - system (bgo#496006) - + Dist .m4 files (bgo#496011) - + Don't return NULL after warning of enum comparsion - (bgo#519631). - -------------------------------------------------------------------- -Thu Apr 3 07:20:21 CEST 2008 - hpj@suse.de - -- Upgraded to version 2.14.1: - - * Avoid wakeups when using Python trunk. - * Add an uninstalled.pc. - -------------------------------------------------------------------- -Thu Sep 20 13:14:09 CEST 2007 - sbrabec@suse.cz - -- Updated to version 2.14.0: - * Fix a Python 2.6 deprecation warning - * Wrap g_timeout_add_seconds, when compiling with glib 2.14 - * Always fully initialize the PyGObject - * Fix compilation in Solaris, again - * Fix check for default value in boolean type - * Fix new style properties with subclasses - * Docs generation fixes - -------------------------------------------------------------------- -Tue Jan 9 14:16:06 CET 2007 - sbrabec@suse.cz - -- Splitted python-gobject2-doc from python-gobject2-devel. - -------------------------------------------------------------------- -Tue Jan 9 00:05:30 CET 2007 - cthiel@suse.de - -- update to version 2.12.3 - * distutils build fixes - * documentation updates - * gobject.handler_block_by_func and friends now accept methods - * avoid truncating of gparamspec - * set __module__ on gobject derived types - * Ensure exceptions are raised on errors in gobject.OptionGroup - -------------------------------------------------------------------- -Mon Nov 27 19:34:34 CET 2006 - sbrabec@suse.cz - -- Preamble typo fix. - -------------------------------------------------------------------- -Sat Oct 21 13:45:11 CEST 2006 - cthiel@suse.de - -- update to version 2.12.2 - * Make PyGObject 64-bit safe for Python 2.5 - * All headers are now LGPL and not GPL - * Remove a couple of GCC warnings - * Revive distutils support - * Emission hook reference count bugfix - * MSVC/ANSI C compilation fix - * Bump Ctrl-C timeout handler from 100ms to 1000 - -------------------------------------------------------------------- -Sun Oct 1 15:25:51 CEST 2006 - cthiel@suse.de - -- update to version 2.12.1 - * Corrected version check -- changes from 2.11.4 to 2.12.0 - * Install the html files even when using --disable-docs -- changes from 2.11.3 to 2.11.4 - * Include pre-generated html docs in the tarball - * Fix bug in do_set_property called from constructor - * Fix type registration involving interfaces with signals and/or properties -- changes from 2.11.2 to 2.11.3 - * Documentation updates - * Documentation build fixes - * PyGObject can now be compiled using a C++ compiler - * Type registration bug fix - -------------------------------------------------------------------- -Thu Aug 10 18:34:07 CEST 2006 - cthiel@suse.de - -- initial package (version 2.11.2) - diff --git a/python3-gobject2.spec b/python3-gobject2.spec deleted file mode 100644 index 819f64a..0000000 --- a/python3-gobject2.spec +++ /dev/null @@ -1,131 +0,0 @@ -# -# spec file for package python3-gobject2 -# -# Copyright (c) 2020 SUSE LLC -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# - - -%define build_for_python3 1 -%if %{build_for_python3} -%define local_py_requires Requires: python(abi) = %{py3_ver} -%define local_py_sitedir %{python3_sitearch} -%else -%define local_py_requires %py_requires -%define local_py_sitedir %{python2_sitearch} -%endif -%define _name pygobject -Name: python3-gobject2 -Version: 2.28.7 -Release: 0 -Summary: Python bindings for GObject -License: LGPL-2.1-or-later -URL: https://ftp.gnome.org/pub/GNOME/sources/pygobject/ -Source: http://download.gnome.org/sources/pygobject/2.28/%{_name}-%{version}.tar.xz -BuildRequires: fdupes -BuildRequires: glib2-devel -BuildRequires: libffi-devel -%{local_py_requires} -%if %{build_for_python3} -BuildRequires: python3-cairo-devel -BuildRequires: python3-devel -%else -BuildRequires: python-cairo-devel -BuildRequires: python-devel -Provides: python2-gobject2 = %{version} -%endif - -%description -Pygobjects is an extension module for python that gives you access to -GLib's GObjects. - -%package cairo -%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo) -Summary: Python bindings for GObject -- Cairo bindings -Requires: %{name} = %{version} -Supplements: (%{name} and %{cairo_real_package}) - -%description cairo -Pygobjects is an extension module for python that gives you access to -GLib's GObjects. - -This package contains the Python Cairo bindings for GObject. - -%package devel -Summary: Python bindings for GObject -Requires: %{name} = %{version} -%if %{build_for_python3} -# Several files are conflicting between python2 and python3 builds -Conflicts: python-gobject2-devel -%else -Provides: python-gobject2-doc = %{version} -Obsoletes: python-gobject2-doc < %{version} -Provides: python2-gobject2-devel = %{version} -%endif - -%description devel -This package contains files required to build wrappers for gobject -addon libraries such as pygtk. - -%prep -%setup -q -n %{_name}-%{version} - -%build -%if %{build_for_python3} -export PYTHON=python3 -%endif -%configure --disable-static --disable-introspection -%make_build - -%install -%make_install -find %{buildroot} -type f -name "*.la" -delete -print -rm examples/Makefile* -%fdupes %{buildroot} - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%files -%doc AUTHORS NEWS README ChangeLog examples -%{local_py_sitedir}/glib/ -%{local_py_sitedir}/gobject/ -%dir %{local_py_sitedir}/gtk-2.0 -%{local_py_sitedir}/gtk-2.0/dsextras.py* -%{local_py_sitedir}/gtk-2.0/gio/ -%{local_py_sitedir}/pygtk.* -%{_libdir}/*.so.* - -%files devel -%{_includedir}/pygtk-2.0/ -%{_libdir}/*.so -%{_libdir}/pkgconfig/pygobject-2.0.pc -%if !%{build_for_python3} -## codegen -%{_bindir}/pygobject-codegen-2.0 -%{_datadir}/%{_name}/2.0/codegen/ -%endif -# we explicitly list the directories here to be sure we don't include something -# that should live in the main package -%dir %{_datadir}/%{_name} -%dir %{_datadir}/%{_name}/2.0 -%{_datadir}/%{_name}/2.0/defs/ -%{_datadir}/%{_name}/xsl/ -## doc: we need the files there since building API docs for other python -## bindings require some files from here -# Own these repositories to not depend on gtk-doc while building: -%dir %{_datadir}/gtk-doc -%dir %{_datadir}/gtk-doc/html -%{_datadir}/gtk-doc/html/pygobject/ - -%changelog