diff --git a/pygobject-do-not-install-GIMarshallingTests.patch b/pygobject-do-not-install-GIMarshallingTests.patch new file mode 100644 index 0000000000000000000000000000000000000000..698facd4427c8d9cc529e2d1711e7853b2704713 --- /dev/null +++ b/pygobject-do-not-install-GIMarshallingTests.patch @@ -0,0 +1,10 @@ +--- pygobject-3.46.0/gi/overrides/meson.build.orig 2024-10-19 11:56:33.161139900 +0800 ++++ pygobject-3.46.0/gi/overrides/meson.build 2024-10-19 11:56:37.632926300 +0800 +@@ -5,7 +5,6 @@ + 'GdkPixbuf.py', + 'GObject.py', + 'Gio.py', +- 'GIMarshallingTests.py', + 'Pango.py', + 'keysyms.py', + '__init__.py'] diff --git a/pygobject3.spec b/pygobject3.spec index 7537fe82304d112c196862699124dce3f7e6f894..cc82c8e37894fad5439eb8dcebf1691ce896e015 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -1,11 +1,17 @@ +%global __requires_exclude typelib\\(%%namespaces\\) +%global __requires_exclude_from ^%{python3_sitelib}/pygtkcompat/.*$ + Name: pygobject3 Version: 3.46.0 -Release: 2 +Release: 3 Summary: Provides bindings for GObject based libraries -License: LGPLv2+ and MIT +License: LGPL-2.1-or-later and MIT URL: https://wiki.gnome.org/Projects/PyGObject Source0: https://download.gnome.org/sources/pygobject/3.46/pygobject-%{version}.tar.xz +# Drop GIMarshallingTests - It's test suite remainders that should not be installed +Patch0: pygobject-do-not-install-GIMarshallingTests.patch + BuildRequires: glib2-devel >= 2.64.0 gobject-introspection-devel >= 1.64.0 BuildRequires: meson cairo-gobject-devel BuildRequires: python3-devel >= 3.8 python3-cairo-devel >= 1.16.0 @@ -59,14 +65,6 @@ This package contains files required to embed PyGObject %check xvfb-run %{__python3} setup.py test -%pre - -%preun - -%post - -%postun - %files -n python3-gobject %{python3_sitearch}/gi/_gi_cairo*.so @@ -88,6 +86,9 @@ xvfb-run %{__python3} setup.py test %{_libdir}/pkgconfig/pygobject-3.0.pc %changelog +* Fri Oct 18 2024 Funda Wang - 3.46.0-3 +- filter out wrong requires + * Mon May 27 2024 fuanan - 3.46.0-2 - python3-gobject-base provide the "%{python3_sitelib}/gi/" directory