From b8c86fb197d6fca92d933f63fc9683e3fcc7eed6 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 21 Sep 2019 20:00:39 +0200 Subject: [PATCH] Minor packaging cleanup Drop unused check section that has been disabled for a long time, and reorder BRs. --- pygobject3.spec | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/pygobject3.spec b/pygobject3.spec index c258ff0..db55c07 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -4,8 +4,6 @@ %define python2_version 2.7 %define python3_version 3.4 -%global with_check 0 - Name: pygobject3 Version: 3.34.0 Release: 2%{?dist} @@ -15,6 +13,7 @@ License: LGPLv2+ and MIT URL: https://wiki.gnome.org/Projects/PyGObject Source0: https://download.gnome.org/sources/pygobject/3.34/pygobject-%{version}.tar.xz +BuildRequires: cairo-gobject-devel BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} BuildRequires: meson @@ -22,25 +21,6 @@ BuildRequires: python2-devel >= %{python2_version} BuildRequires: python2-cairo-devel >= %{pycairo_version} BuildRequires: python3-devel >= %{python3_version} BuildRequires: python3-cairo-devel >= %{pycairo_version} -BuildRequires: cairo-gobject-devel - -# Required by the upstream selftest suite: -%if %{with_check} -# Temporarily disabled pyflakes tests to avoid the build failing due to too new -# pyflakes 0.7.2 in F19 -# https://bugzilla.gnome.org/show_bug.cgi?id=701009 -#BuildRequires: python2-pyflakes -BuildRequires: python2-pep8 -## for the Gdk and Gtk typelibs, used during the test suite: -BuildRequires: gtk3 -## for xvfb-run: -BuildRequires: xorg-x11-server-Xvfb -BuildRequires: dejavu-sans-fonts -BuildRequires: dejavu-sans-mono-fonts -BuildRequires: dejavu-serif-fonts -## for dbus-launch, used by test_gdbus: -BuildRequires: dbus-x11 -%endif # with_check %description The %{name} package provides a convenient wrapper for the GObject library @@ -135,21 +115,6 @@ pushd %{py3dir} %meson_install popd -%check -%if %{with_check} -# Run the selftests under a temporary xvfb X server (so that they can -# initialize Gdk etc): - -pushd %{py3dir} -PYTHON=%{__python3} -export PYTHON -xvfb-run make DESTDIR=$RPM_BUILD_ROOT check V=1 -popd - -xvfb-run make DESTDIR=$RPM_BUILD_ROOT check V=1 - -%endif # with_check - %files -n python2-gobject %{python2_sitearch}/gi/_gi_cairo.so