diff --git a/joblib-0.11.tar.gz b/joblib-0.11.tar.gz new file mode 100644 index 0000000..dd4d24f --- /dev/null +++ b/joblib-0.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b8fd56df36d9731a83729395ccb85a3b401f62a96255deb1a77220c00ed4085 +size 213136 diff --git a/joblib-0.8.4.tar.gz b/joblib-0.8.4.tar.gz deleted file mode 100644 index 22009a8..0000000 --- a/joblib-0.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f185b87199525e0805281960f9f91c4f2e382e5834f05678cfcfa8ec666a4d2b -size 314213 diff --git a/python-joblib.changes b/python-joblib.changes index 0bad81d..2097650 100644 --- a/python-joblib.changes +++ b/python-joblib.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon May 22 16:35:59 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. +- Run tests. +- Fix source URL. +- Update to version 0.11. + * For a full changelog please see: + https://github.com/joblib/joblib/blob/0.11/CHANGES.rst + ------------------------------------------------------------------- Sun May 24 13:14:03 UTC 2015 - toddrme2178@gmail.com diff --git a/python-joblib.spec b/python-joblib.spec index 39bf84a..3342b16 100644 --- a/python-joblib.spec +++ b/python-joblib.spec @@ -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