forked from pool/python-imagecodecs
- replace imagecodecs_distributor_setup.py with
skip-rare-codecs.patch: this setuptools hook does not get called anymore with PEP517 builds OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=34
This commit is contained in:
@@ -32,7 +32,7 @@ Summary: Image transformation, compression, and decompression codecs
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/cgohlke/imagecodecs/
|
||||
Source: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz
|
||||
Source1: imagecodecs_distributor_setup.py
|
||||
Patch1: skip-rare-codecs.patch
|
||||
ExcludeArch: %ix86 %arm32 ppc s390
|
||||
BuildRequires: %{python_module Cython >= 3}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
@@ -139,15 +139,7 @@ Integers, Delta, XOR Delta, Floating Point Predictor, Bitorder reversal,
|
||||
Bitshuffle, and Float24 (24-bit floating point).
|
||||
|
||||
%prep
|
||||
%setup -q -n imagecodecs-%{version}
|
||||
# the patch from github requires unix line endings to apply
|
||||
dos2unix tests/test_imagecodecs.py
|
||||
dos2unix imagecodecs/libavif.pxd
|
||||
dos2unix imagecodecs/_avif.pyx
|
||||
dos2unix imagecodecs/imagecodecs.py
|
||||
%autopatch -p1
|
||||
|
||||
cp %SOURCE1 ./
|
||||
%autosetup -p1 -n imagecodecs-%{version}
|
||||
dos2unix README.rst
|
||||
# These libraries are not linked to, (check SOURCE1)
|
||||
rm imagecodecs/licenses/LICENSE-brunsli
|
||||
@@ -181,7 +173,7 @@ donttest+=" or test_cms"
|
||||
%ifarch %ix86 %arm32
|
||||
donttest="$donttest or spng"
|
||||
%endif
|
||||
%pytest_arch -n auto tests -rsXfE --doctest-modules %{$python_sitearch}/imagecodecs/imagecodecs.py -k "not ($donttest ${$python_donttest})"
|
||||
%pytest_arch -n auto tests -rsXfE -k "not ($donttest ${$python_donttest})"
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user