14
0
forked from pool/python-joblib
Tomáš Chvátal
2018-07-20 11:48:55 +00:00
committed by Git OBS Bridge
parent 4e8bbf4af9
commit 067943c263
2 changed files with 8 additions and 6 deletions

View File

@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-joblib
Version: 0.12.1
Release: 0
@@ -31,10 +30,10 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-numpy
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
%endif
Requires: python-lz4
%python_subpackages
%description
@@ -60,10 +59,8 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_expand py.test-%{$python_bin_suffix} joblib
%endif
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} joblib
%files %{python_files}
%license LICENSE.txt