14
0
forked from pool/python-joblib

Accepting request 497353 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version.
- Run tests.
- Fix source URL.
- Update to version 0.11.

OBS-URL: https://build.opensuse.org/request/show/497353
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=9
This commit is contained in:
Todd R
2017-05-22 17:04:15 +00:00
committed by Git OBS Bridge
parent 13c9f496a7
commit 6288f8eda7
4 changed files with 46 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-joblib
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,29 @@
#
%define modname joblib
Name: python-%{modname}
Version: 0.8.4
%bcond_without test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-joblib
Version: 0.11
Release: 0
Summary: Lightweight pipelining: using Python functions as pipeline jobs
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://packages.python.org/joblib/
Source: http://pypi.python.org/packages/source/j/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
Url: https://github.com/joblib/joblib
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
%endif
Recommends: python-numpy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Joblib is a set of tools to provide **lightweight pipelining in
@@ -47,36 +52,28 @@ Python**. In particular, joblib offers:
3. logging and tracing of the execution
Joblib is optimized to be **fast** and **robust** in particular on large
data and has specific optimizations for `numpy` arrays. It is
**BSD-licensed**.
%package doc
Summary: Documentation for %{name}
Group: Development/Languages/Python
%description doc
Documentation and help files for %{name}
data and has specific optimizations for `numpy` arrays.
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n joblib-%{version}
%build
python setup.py build
# python setup.py build_sphinx
# # Remove hidden file
# rm -r build/sphinx/html/.buildinfo
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%if %{with test}
%check
%python_expand py.test-%{$python_bin_suffix}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%{python_sitelib}/%{modname}/
# %files doc
# %defattr(-,root,root,-)
# %doc build/sphinx/html/
%doc LICENSE.txt README.rst
%{python_sitelib}/joblib-%{version}-py*.egg-info
%{python_sitelib}/joblib/
%changelog