From 9dc560e289f46c0ad7caea0a4a2b239c083c2534 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 12 Feb 2024 15:55:41 -0500 Subject: [PATCH] Use gtk3 in tests The tests currently fail with gtk4-4.13.7. Whether the bug is in gtk or in pyobject has yet to be determined: https://gitlab.gnome.org/GNOME/pygobject/-/issues/620 --- pygobject3.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pygobject3.spec b/pygobject3.spec index d54793f..3b67221 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -5,7 +5,7 @@ Name: pygobject3 Version: 3.46.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python bindings for GObject Introspection License: LGPL-2.1-or-later @@ -23,8 +23,9 @@ BuildRequires: meson BuildRequires: python3-devel >= %{python3_version} BuildRequires: python3-setuptools # Test dependencies. +# Keep TEST_GTK_VERSION in %%check in sync with gtk version used here BuildRequires: python3dist(pytest) -BuildRequires: gtk4 +BuildRequires: gtk3 BuildRequires: xorg-x11-server-Xvfb # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility @@ -86,7 +87,7 @@ This package contains files required to embed PyGObject %meson_install %check -export TEST_GTK_VERSION=4.0 +export TEST_GTK_VERSION=3.0 %{shrink:xvfb-run -s "-screen 0 1600x1200x24" %meson_test --timeout-multiplier=5} @@ -113,6 +114,9 @@ export TEST_GTK_VERSION=4.0 %{_libdir}/pkgconfig/pygobject-3.0.pc %changelog +* Mon Feb 12 2024 Yaakov Selkowitz - 3.46.0-4 +- Use gtk3 in tests + * Fri Jan 26 2024 Fedora Release Engineering - 3.46.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild