forked from pool/python-imread
Accepting request 927745 from home:pgajdos:python
- %check: do not use nose for testing, use %pytest_arch macro - added patches fix https://github.com/luispedro/imread/issues/38 + python-imread-remove-nose.patch OBS-URL: https://build.opensuse.org/request/show/927745 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imread?expand=0&rev=9
This commit is contained in:
@@ -25,6 +25,8 @@ Summary: Image reading library
|
||||
License: MIT
|
||||
URL: http://luispedro.org/software/imread
|
||||
Source: https://files.pythonhosted.org/packages/source/i/imread/imread-%{version}.tar.gz
|
||||
# https://github.com/luispedro/imread/issues/39
|
||||
Patch0: python-imread-remove-nose.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy-devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -37,10 +39,10 @@ BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module nose}
|
||||
# /SECTION
|
||||
Requires: python-numpy
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -56,6 +58,7 @@ imsave
|
||||
|
||||
%prep
|
||||
%setup -q -n imread-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export EXCLUDE_WEBP=0
|
||||
@@ -67,7 +70,9 @@ export CFLAGS="%{optflags}"
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
find -name '_imread.*.so' -exec cp {} imread \;
|
||||
pushd imread
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%doc ChangeLog README.rst
|
||||
|
||||
Reference in New Issue
Block a user