forked from pool/python-gobject
Compare commits
13 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 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">
|
<service name="obs_scm" mode="manual">
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="url">https://gitlab.gnome.org/GNOME/pygobject.git</param>
|
<param name="url">https://gitlab.gnome.org/GNOME/pygobject.git</param>
|
||||||
<param name="revision">3.48.2</param>
|
<param name="revision">3.52.3</param>
|
||||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||||
<param name="versionrewrite-pattern">v?(.*)\+0</param>
|
<param name="versionrewrite-pattern">v?(.*)\+0</param>
|
||||||
<param name="versionrewrite-replacement">\1</param>
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
<!-- <param name="changesgenerate">enable</param> -->
|
<!-- <param name="changesgenerate">enable</param> -->
|
||||||
</service>
|
</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="tar" mode="buildtime"/>
|
||||||
<service name="recompress" mode="buildtime">
|
<service name="recompress" mode="buildtime">
|
||||||
<param name="file">*.tar</param>
|
<param name="file">*.tar</param>
|
||||||
<param name="compression">zst</param>
|
<param name="compression">zst</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="set_version" mode="manual" />
|
<service name="set_version" mode="manual">
|
||||||
|
<param name="basename">pygobject</param>
|
||||||
|
</service>
|
||||||
</services>
|
</services>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5b284a70c43d79909a604f020b798237eff2a6d460f8812043b57b449a366ee0
|
|
||||||
size 2975756
|
|
||||||
BIN
pygobject-3.52.3.obscpio
LFS
Normal file
BIN
pygobject-3.52.3.obscpio
LFS
Normal file
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
name: pygobject
|
name: pygobject
|
||||||
version: 3.48.2
|
version: 3.52.3
|
||||||
mtime: 1712387303
|
mtime: 1742148884
|
||||||
commit: 02be5508acd0abd8567b319e0830947994c57320
|
commit: 1c675e47a160662e5247a387dcd35e0d36b3c4d2
|
||||||
|
|||||||
@@ -1,3 +1,104 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Mon Apr 8 06:47:10 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-gobject
|
# spec file for package python-gobject
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
# Define these before the call of python_subpackages
|
# 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)
|
%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!
|
# 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
|
# It produces a dependency cycle: avahi - gtk3-devel - python-dbus-python
|
||||||
@@ -28,19 +28,20 @@
|
|||||||
%global __requires_exclude typelib\\(%%namespaces\\)
|
%global __requires_exclude typelib\\(%%namespaces\\)
|
||||||
%global __requires_exclude_from ^%{_libdir}/python.*/site-packages/gi/__init__.py$
|
%global __requires_exclude_from ^%{_libdir}/python.*/site-packages/gi/__init__.py$
|
||||||
%define _name pygobject
|
%define _name pygobject
|
||||||
%define glib_version 2.64.0
|
%define glib_version 2.80.0
|
||||||
%define gi_version 1.64.0
|
%define gi_version 1.64.0
|
||||||
%define pycairo_version 1.16.0
|
%define pycairo_version 1.16.0
|
||||||
%define libffi_version 3.0
|
%define libffi_version 3.0
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-gobject
|
Name: python-gobject
|
||||||
Version: 3.48.2
|
Version: 3.52.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for GObject
|
Summary: Python bindings for GObject
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://wiki.gnome.org/Projects/PyGObject/
|
URL: https://wiki.gnome.org/Projects/PyGObject/
|
||||||
Source0: %{_name}-%{version}.tar.zst
|
Source0: %{_name}-%{version}.tar.zst
|
||||||
|
Source1: pythoncapi-compat-vendored.tar.zst
|
||||||
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module meson-python}
|
BuildRequires: %{python_module meson-python}
|
||||||
@@ -55,13 +56,14 @@ BuildRequires: pkgconfig(cairo-gobject)
|
|||||||
# build cycle!
|
# build cycle!
|
||||||
# BuildRequires: pkgconfig(gdk-3.0) >= 2.38.0
|
# BuildRequires: pkgconfig(gdk-3.0) >= 2.38.0
|
||||||
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
|
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
|
||||||
|
BuildRequires: pkgconfig(girepository-2.0) >= %{glib_version}
|
||||||
BuildRequires: pkgconfig(glib-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-2.0) >= %{glib_version}
|
||||||
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gi_version}
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gi_version}
|
||||||
BuildRequires: pkgconfig(libffi) >= %{libffi_version}
|
BuildRequires: pkgconfig(libffi) >= %{libffi_version}
|
||||||
# Trigger an automatic installation of python(2|3.*)-gobject when python and libgirepository are installed.
|
# Trigger an automatic installation of python(2|3.*)-gobject when python and libgirepository are installed.
|
||||||
Supplements: (python and %{introspection_real_package})
|
Supplements: (python and %{introspection_real_package})
|
||||||
|
Provides: python-pygobject = %{version}
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -124,12 +126,17 @@ addon libraries such as pygtk in both Python2 and Python3.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
# Remove the executable bits from example scripts:
|
%autopatch -p1
|
||||||
find examples -name '*.py' -exec chmod -R -x {} +
|
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
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%meson
|
%meson -Dtests=false -Dwheel=false
|
||||||
%meson_build
|
%meson_build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
@@ -157,7 +164,8 @@ find %{buildroot}%{$python_sitearch} -name GIMarshallingTests* -delete -print
|
|||||||
}
|
}
|
||||||
|
|
||||||
find %{buildroot} "(" -name '*.la' -or -name '*.a' ")" -delete
|
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_compileall}
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
@@ -165,23 +173,20 @@ rm %{buildroot}%{_libdir}/*/site-packages/*.egg-info
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc NEWS
|
%doc NEWS
|
||||||
%doc examples/
|
|
||||||
%{python_sitearch}/gi/
|
%{python_sitearch}/gi/
|
||||||
# Lives in cairo subpackage
|
# Lives in cairo subpackage
|
||||||
%exclude %{python_sitearch}/gi/_gi_cairo*.so
|
%exclude %{python_sitearch}/gi/_gi_cairo*.so
|
||||||
%{python_sitearch}/pygobject-%{version}.dist-info/
|
%{python_sitearch}/pygobject-*.dist-info/
|
||||||
# Lives in Gdk subpackage
|
# Lives in Gdk subpackage
|
||||||
%exclude %{python_sitearch}/gi/_gtktemplate.py
|
%exclude %{python_sitearch}/gi/_gtktemplate.py
|
||||||
%exclude %{python_sitearch}/gi/overrides/Gdk.*
|
%exclude %{python_sitearch}/gi/overrides/Gdk.*
|
||||||
%exclude %{python_sitearch}/gi/overrides/GdkPixbuf.py
|
%exclude %{python_sitearch}/gi/overrides/GdkPixbuf.py
|
||||||
%exclude %{python_sitearch}/gi/overrides/Gtk.*
|
%exclude %{python_sitearch}/gi/overrides/Gtk.*
|
||||||
%exclude %{python_sitearch}/gi/overrides/keysyms.*
|
|
||||||
%exclude %{python_sitearch}/gi/overrides/Pango.*
|
%exclude %{python_sitearch}/gi/overrides/Pango.*
|
||||||
%pycache_only %exclude %{python_sitearch}/gi/__pycache__/_gtktemplate*
|
%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__/Gdk.*
|
||||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
|
%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__/Gtk.*
|
||||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
|
|
||||||
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
||||||
|
|
||||||
%files %{python_files Gdk}
|
%files %{python_files Gdk}
|
||||||
@@ -189,13 +194,11 @@ rm %{buildroot}%{_libdir}/*/site-packages/*.egg-info
|
|||||||
%{python_sitearch}/gi/overrides/Gdk.*
|
%{python_sitearch}/gi/overrides/Gdk.*
|
||||||
%{python_sitearch}/gi/overrides/GdkPixbuf.py
|
%{python_sitearch}/gi/overrides/GdkPixbuf.py
|
||||||
%{python_sitearch}/gi/overrides/Gtk.*
|
%{python_sitearch}/gi/overrides/Gtk.*
|
||||||
%{python_sitearch}/gi/overrides/keysyms.*
|
|
||||||
%{python_sitearch}/gi/overrides/Pango.*
|
%{python_sitearch}/gi/overrides/Pango.*
|
||||||
%pycache_only %{python_sitearch}/gi/__pycache__/_gtktemplate*
|
%pycache_only %{python_sitearch}/gi/__pycache__/_gtktemplate*
|
||||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
|
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
|
||||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
|
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
|
||||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
|
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
|
||||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
|
|
||||||
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Pango.*
|
||||||
|
|
||||||
%files %{python_files cairo}
|
%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