forked from pool/python-imagecodecs
Accepting request 868482 from home:bnavigator:branches:devel:languages:python
- Update to version 2021.1.28 * Add option to return JPEG XR fixed point pixel types as integers * Add LJPEG codec via liblj92 (alternative to JPEGSOF3 codec) * Change zopfli header location. - refresh always-cythonize.patch - drop zopfli-headers.patch fixed upstream - Add more testing requirements to test backends - Add skip reporting to pytest to see what is still missing OBS-URL: https://build.opensuse.org/request/show/868482 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=13
This commit is contained in:
@@ -28,19 +28,19 @@
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-imagecodecs%{psuffix}
|
||||
Version: 2021.1.11
|
||||
Version: 2021.1.28
|
||||
Release: 0
|
||||
Summary: Image transformation, compression, and decompression codecs
|
||||
License: BSD-3-Clause
|
||||
URL: https://www.lfd.uci.edu/~gohlke/
|
||||
Source: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz
|
||||
Patch0: always-cythonize.patch
|
||||
Patch1: zopfli-headers.patch
|
||||
BuildRequires: %{python_module Cython >= 0.29.19}
|
||||
BuildRequires: %{python_module numpy-devel >= 1.15.1}
|
||||
BuildRequires: %{python_module setuptools >= 18.0}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-numpy >= 1.15.1
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
@@ -51,15 +51,22 @@ Recommends: python-matplotlib >= 3.1
|
||||
Recommends: python-tifffile >= 2020.5.25
|
||||
Recommends: python-zstd
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Brotli}
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module blosc}
|
||||
BuildRequires: %{python_module czifile}
|
||||
BuildRequires: %{python_module imagecodecs >= %{version}}
|
||||
BuildRequires: %{python_module lz4}
|
||||
BuildRequires: %{python_module matplotlib >= 3.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-snappy}
|
||||
BuildRequires: %{python_module scikit-image}
|
||||
BuildRequires: %{python_module tifffile >= 2020.5.25}
|
||||
BuildRequires: %{python_module zstd}
|
||||
# not (yet) available:
|
||||
#BuildRequires: %%{python_module bitshuffle}
|
||||
#BuildRequires: %%{python_module lzf}
|
||||
#BuildRequires: %%{python_module zopflipy}
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: giflib-devel
|
||||
@@ -68,7 +75,6 @@ BuildRequires: libaec-devel
|
||||
BuildRequires: libdeflate-devel
|
||||
BuildRequires: libzopfli-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: snappy-devel
|
||||
BuildRequires: pkgconfig(blosc)
|
||||
BuildRequires: pkgconfig(bzip2)
|
||||
@@ -119,11 +125,9 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
mv imagecodecs __imagecodecs
|
||||
# Should add --doctest-modules %%{buildroot}%%{$python_sitearch}/imagecodecs/imagecodecs.py
|
||||
# however doctests are currently broken
|
||||
%pytest_arch tests
|
||||
mv __imagecodecs imagecodecs
|
||||
%pytest_arch tests -rs --import-mode append
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
@@ -137,7 +141,7 @@ mv __imagecodecs imagecodecs
|
||||
%license LICENSE imagecodecs/licenses/*
|
||||
%doc README.rst
|
||||
%python_alternative %{_bindir}/imagecodecs
|
||||
%{python_sitearch}/imagecodecs*.egg-info
|
||||
%{python_sitearch}/imagecodecs-%{version}*-info
|
||||
%{python_sitearch}/imagecodecs
|
||||
%endif
|
||||
|
||||
|
Reference in New Issue
Block a user