forked from pool/python-gobject
Compare commits
19 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 73e85baea9 | |||
| 836de60c77 | |||
| e018c5c306 | |||
| 697f69784e | |||
| 0c9b24dff0 | |||
| 47614629e4 | |||
| 4eca308c31 | |||
| a729d3f1e8 | |||
| cf6c6bc4bf | |||
| 3de340144c | |||
| e7590fba19 | |||
| 08eaf64018 | |||
| 3a855803d1 | |||
| cc777dad02 | |||
| bbe421a64c | |||
| 1b47ec2aad | |||
| 9166d21abb | |||
| e84ac33ddd | |||
| 105e7e0baa |
12
_service
12
_service
@@ -3,17 +3,25 @@
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://gitlab.gnome.org/GNOME/pygobject.git</param>
|
||||
<param name="revision">3.48.2</param>
|
||||
<param name="revision">3.54.5</param>
|
||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||
<param name="versionrewrite-pattern">v?(.*)\+0</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
<!-- <param name="changesgenerate">enable</param> -->
|
||||
</service>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/python/pythoncapi-compat.git</param>
|
||||
<param name="revision">2d18aecd7b2f549d38a13e27b682ea4966f37bd8</param>
|
||||
<param name="versionformat">vendored</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">zst</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual" />
|
||||
<service name="set_version" mode="manual">
|
||||
<param name="basename">pygobject</param>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5b284a70c43d79909a604f020b798237eff2a6d460f8812043b57b449a366ee0
|
||||
size 2975756
|
||||
3
pygobject-3.54.5.obscpio
Normal file
3
pygobject-3.54.5.obscpio
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68d423c42a99b0bbac5c750101202e2da98d26b2f63dd596c6801dea189ad4d1
|
||||
size 3405836
|
||||
@@ -1,4 +1,4 @@
|
||||
name: pygobject
|
||||
version: 3.48.2
|
||||
mtime: 1712387303
|
||||
commit: 02be5508acd0abd8567b319e0830947994c57320
|
||||
version: 3.54.5
|
||||
mtime: 1760786024
|
||||
commit: da2717480488ed93f1038ea106c7a9c394059e1d
|
||||
|
||||
@@ -1,3 +1,162 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 18 16:33:19 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.54.5:
|
||||
+ Backport: GLib 2.86/GioUnix compatibility
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 28 21:33:10 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.54.3:
|
||||
+ Do not skip symbols both in Gio and in platform specific
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 13 08:29:50 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.54.2:
|
||||
+ Prefix platform specific symbols with platform name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 12 15:03:18 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.54.1:
|
||||
+ Excempt GioPlatform namespaces from required version check
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 06:23:08 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.54.0:
|
||||
+ Fix compatibility with Python 3.14
|
||||
+ Add platform specific symbols back to Gio module
|
||||
+ Include docs from old GNOME wiki
|
||||
+ Add override for `GLib.MainContext.query()`
|
||||
+ Fix optional inout parameter marshalling
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 2 16:49:25 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.53.0:
|
||||
+ Drop Python upper limit
|
||||
+ Add `__enum|flags_values__` back to GEnum and GFlags
|
||||
+ Fix asyncio event loop selector with Python 3.13
|
||||
+ Support `Gtk.Template` on sub-classed Python classes
|
||||
+ Use GI Repository singleton if GLib >= 2.85
|
||||
+ Expose finish_func on function info to determine if a function
|
||||
can be used as awaitable
|
||||
+ Documentation updates
|
||||
+ `ParamSpec` objects now return the expected enum type
|
||||
+ Fix `Gio.ActionMap` override for `Gio.Application`
|
||||
+ Fix regression for functions with multiple callbacks
|
||||
+ Cleanup: callable argument cache
|
||||
+ Format Python and C code
|
||||
+ Fix compatibility with GLib 2.84
|
||||
+ (chore) clean up array cache code
|
||||
+ Added an option to skip automatic initialization of GTK and GDK
|
||||
+ Add more variables to the .pc files
|
||||
+ gobject.handler_block_by_func and friends now accept methods
|
||||
+ set __module__ on gobject derived types
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 1 20:36:38 UTC 2025 - Christian Boltz <suse-beta@cboltz.de>
|
||||
|
||||
- Re-add BuildRequires pkgconfig(gobject-introspection-1.0) to
|
||||
fix "cannot import name GLib, introspection typelib not found"
|
||||
error (boo#1240549)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 16 18:35:28 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.52.3:
|
||||
+ Remove invalid error check for gi_constant_info_get_value.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 12 11:26:02 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.52.2:
|
||||
+ Revert to legacy license definition in pyproject.toml.
|
||||
- Drop pygobject-license.patch: variant of this has been merged
|
||||
upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 12:54:17 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.52.1
|
||||
+ Use `girepository` 2.0 for GIR mappings.
|
||||
+ Use Python's vectorcall protocol internally.
|
||||
+ Improved API for asyncio.
|
||||
+ Deprecation: The pygtkcompat module now throws an exception
|
||||
when imported.
|
||||
+ Method signatures are exposed from PyGObject now.
|
||||
+ Use gobject-introspection-tests for testing.
|
||||
+ Convenience API for Gdk.RGBA got GDK 4, similar to GDK 3.
|
||||
+ Added a [pre-commit](https://pre-commit.com/) configuration.
|
||||
+ Use standard `enum` module for enums and flags in PyGObject.
|
||||
+ Added an option to skip automatic initialization of GTK and
|
||||
GDK.
|
||||
+ PyGObject is no longer automatically tested on i386
|
||||
architecture.
|
||||
+ Fixed iterator protocol implementation for properties.
|
||||
+ Various code and documentation improvements.
|
||||
- Add pythoncapi-compat as subproject.
|
||||
- Pass -Dtests=false to meson: disable tests for now, as we do not
|
||||
have the submodule for that.
|
||||
- Pass -Dwheel=false to meson, as we use our own python
|
||||
single-spec mechanism to install the python bindings.
|
||||
- Add pygobject-license.patch: Fix build by not relying on PE-639
|
||||
yet.
|
||||
- Replace pkgconfig(gobject-introspection-1.0) BuildRequires with
|
||||
pkgconfig(girepository-2.0): follow upstreams changes.
|
||||
- Drop pkgconfig(gmodule-2.0) BuildRequires: no longer needed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 5 14:19:09 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Update to version 3.51.0:
|
||||
+ Use `girepository` 2.0 for GIR mappings.
|
||||
+ Use Python's vectorcall protocol internally.
|
||||
+ Improved API for asyncio.
|
||||
+ Deprecation: The pygtkcompat module now throws an exception
|
||||
when imported.
|
||||
+ Method signatures are exposed from PyGObject now.
|
||||
+ Convenience API for Gdk.RGBA got GDK 4, similar to GDK 3.
|
||||
+ Use standard `enum` module for enums and flags in PyGObject.
|
||||
+ Added an option to skip automatic initialization of GTK and
|
||||
GDK.
|
||||
+ Fixed iterator protocol implementation for properties.
|
||||
+ Various code and documentation improvements.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 15:08:11 UTC 2024 - Yunhe Guo <i@guoyunhe.me>
|
||||
|
||||
- Add python-pygobject provides: help packages to eliminate rpmlint
|
||||
warnings when comparing requrements.txt vs the packages depdency.
|
||||
'pygobject' is the proper upstream name.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 12 12:32:33 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.50.0:
|
||||
+ tests: Fix event test errors when GTK is not installed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 6 18:59:31 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.49.0:
|
||||
+ Rename master branch to main
|
||||
+ Drop support for Python 3.8
|
||||
+ Add Override for Gio.DataInputStream
|
||||
+ Treat GParamSpec as any other fundamental type
|
||||
+ override connection.register_object to prevent an invocation
|
||||
object from leaking
|
||||
+ Various PyPy related fixes
|
||||
+ bind_property: Accept keyword arguments
|
||||
+ Various documentation improvements
|
||||
+ Python2 / GTK2 cleanups
|
||||
+ asyncio integration with support to await Gio async functions
|
||||
+ meson: move from .egg-info to .dist-info/METADATA
|
||||
+ build: fixes for building with gobject-introspection 1.81
|
||||
- Stop removing executable bits from examples, no longer needed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 8 06:47:10 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gobject
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,28 +19,29 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
# Define these before the call of python_subpackages
|
||||
%define introspection_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink %{_libdir}/libgirepository-1.0.so -f))
|
||||
%define introspection_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink %{_libdir}/libgirepository-2.0.so -f))
|
||||
%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo)
|
||||
# Don't BuildRequire pkgconfig(gdk-3.0) to find the real package for libgdk-3!
|
||||
# It produces a dependency cycle: avahi - gtk3-devel - python-dbus-python
|
||||
#%%define gdk_real_package %%(rpm -q --qf '%%{NAME}' -f $(readlink %%{_libdir}/libgdk-3.so -f))
|
||||
# This figures in an error message
|
||||
%global __requires_exclude typelib\\(%%namespaces\\)
|
||||
%global __requires_exclude typelib.*(namespace|GioWin32).*
|
||||
%global __requires_exclude_from ^%{_libdir}/python.*/site-packages/gi/__init__.py$
|
||||
%define _name pygobject
|
||||
%define glib_version 2.64.0
|
||||
%define glib_version 2.80.0
|
||||
%define gi_version 1.64.0
|
||||
%define pycairo_version 1.16.0
|
||||
%define libffi_version 3.0
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-gobject
|
||||
Version: 3.48.2
|
||||
Version: 3.54.5
|
||||
Release: 0
|
||||
Summary: Python bindings for GObject
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://wiki.gnome.org/Projects/PyGObject/
|
||||
Source0: %{_name}-%{version}.tar.zst
|
||||
Source1: pythoncapi-compat-vendored.tar.zst
|
||||
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module meson-python}
|
||||
@@ -55,13 +56,14 @@ BuildRequires: pkgconfig(cairo-gobject)
|
||||
# build cycle!
|
||||
# BuildRequires: pkgconfig(gdk-3.0) >= 2.38.0
|
||||
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(girepository-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(glib-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(gmodule-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(gobject-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gi_version}
|
||||
BuildRequires: pkgconfig(libffi) >= %{libffi_version}
|
||||
# Trigger an automatic installation of python(2|3.*)-gobject when python and libgirepository are installed.
|
||||
Supplements: (python and %{introspection_real_package})
|
||||
Provides: python-pygobject = %{version}
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -124,12 +126,17 @@ addon libraries such as pygtk in both Python2 and Python3.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
# Remove the executable bits from example scripts:
|
||||
find examples -name '*.py' -exec chmod -R -x {} +
|
||||
%autopatch -p1
|
||||
pushd subprojects
|
||||
tar xf %{SOURCE1} --xform=s/pythoncapi-compat-vendored/pythoncapi-compat/
|
||||
pushd pythoncapi-compat
|
||||
patch -p1 < ../packagefiles/pythoncapi-compat-meson.diff
|
||||
popd
|
||||
popd
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%meson
|
||||
%meson -Dtests=false -Dwheel=false
|
||||
%meson_build
|
||||
%pyproject_wheel
|
||||
|
||||
@@ -157,7 +164,8 @@ find %{buildroot}%{$python_sitearch} -name GIMarshallingTests* -delete -print
|
||||
}
|
||||
|
||||
find %{buildroot} "(" -name '*.la' -or -name '*.a' ")" -delete
|
||||
rm %{buildroot}%{_libdir}/*/site-packages/*.egg-info
|
||||
# Nuke a stray metadata file
|
||||
find %{buildroot}%{python_sitearch}/PyGObject*/ "(" -name 'METADATA' ")" -delete -print
|
||||
|
||||
%{?python_compileall}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
@@ -165,23 +173,20 @@ rm %{buildroot}%{_libdir}/*/site-packages/*.egg-info
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc NEWS
|
||||
%doc examples/
|
||||
%{python_sitearch}/gi/
|
||||
# Lives in cairo subpackage
|
||||
%exclude %{python_sitearch}/gi/_gi_cairo*.so
|
||||
%{python_sitearch}/pygobject-%{version}.dist-info/
|
||||
%{python_sitearch}/pygobject-*.dist-info/
|
||||
# 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.*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/__pycache__/_gtktemplate*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
|
||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
||||
|
||||
%files %{python_files Gdk}
|
||||
@@ -189,13 +194,11 @@ rm %{buildroot}%{_libdir}/*/site-packages/*.egg-info
|
||||
%{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.*
|
||||
%pycache_only %{python_sitearch}/gi/__pycache__/_gtktemplate*
|
||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
|
||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
|
||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
|
||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
|
||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
||||
|
||||
%files %{python_files cairo}
|
||||
|
||||
BIN
pythoncapi-compat-vendored.obscpio
LFS
Normal file
BIN
pythoncapi-compat-vendored.obscpio
LFS
Normal file
Binary file not shown.
4
pythoncapi-compat.obsinfo
Normal file
4
pythoncapi-compat.obsinfo
Normal file
@@ -0,0 +1,4 @@
|
||||
name: pythoncapi-compat
|
||||
version: vendored
|
||||
mtime: 1724663410
|
||||
commit: 2d18aecd7b2f549d38a13e27b682ea4966f37bd8
|
||||
Reference in New Issue
Block a user