From fdfc3b79daca11d9c96f0dd895d7ba8c38480701 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sat, 19 Oct 2024 11:59:31 +0800 Subject: [PATCH] filter out wrong requires --- ...ct-do-not-install-GIMarshallingTests.patch | 10 +++++++++ pygobject3.spec | 21 ++++++++++--------- 2 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 pygobject-do-not-install-GIMarshallingTests.patch diff --git a/pygobject-do-not-install-GIMarshallingTests.patch b/pygobject-do-not-install-GIMarshallingTests.patch new file mode 100644 index 0000000..698facd --- /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 7537fe8..cc82c8e 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 -- Gitee