From 1a645b766dfcac5ae55a02ece25ac8adc677b9008f747144a8fce1568abd994d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 8 May 2021 20:31:15 +0000 Subject: [PATCH] - Skip tests using fftw library, we don't have the support built in ImageMagick (see gh#emcconville/wand#476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Wand?expand=0&rev=3 --- python-Wand.changes | 6 ++++++ python-Wand.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/python-Wand.changes b/python-Wand.changes index 3b23d58..934ae6c 100644 --- a/python-Wand.changes +++ b/python-Wand.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 8 20:30:37 UTC 2021 - Matej Cepl + +- Skip tests using fftw library, we don't have the support built + in ImageMagick (see gh#emcconville/wand#476). + ------------------------------------------------------------------- Mon Mar 1 01:50:31 UTC 2021 - John Vandenberg diff --git a/python-Wand.spec b/python-Wand.spec index 9e3385e..6feb3a7 100644 --- a/python-Wand.spec +++ b/python-Wand.spec @@ -1,7 +1,7 @@ # # spec file for package python-Wand # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ BuildRequires: %{python_module setuptools} Requires: ImageMagick BuildRequires: ImageMagick-devel BuildRequires: fdupes +BuildRequires: fftw3-devel BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements @@ -53,6 +54,9 @@ Ctypes-based simple MagickWand API binding for Python. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# Our ImageMagick is build without support of fftw library +# see identify -version and gh#emcconville/wand#476 +export PYTEST_ADDOPTS="--skip-fft" # Three tests failing with # wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy `PDF' # due to https://build.opensuse.org/package/view_file/graphics/ImageMagick/ImageMagick-configuration-SUSE.patch