|
Sergio Pascual |
4a66edb |
%global srcname scikit-learn
|
|
Sergio Pascual |
e3234b3 |
%global sum Machine learning in Python
|
|
Sergio Pascual |
e3234b3 |
|
|
Sergio Pascual |
e3234b3 |
%global common_description \
|
|
Sergio Pascual |
e3234b3 |
Scikit-learn integrates machine learning algorithms in the tightly-knit \
|
|
Sergio Pascual |
e3234b3 |
scientific Python world, building upon numpy, scipy, and matplotlib. \
|
|
Sergio Pascual |
e3234b3 |
As a machine-learning module, it provides versatile tools for data mining \
|
|
Sergio Pascual |
e3234b3 |
and analysis in any field of science and engineering. It strives to be \
|
|
Sergio Pascual |
e3234b3 |
simple and efficient, accessible to everybody, and reusable \
|
|
Sergio Pascual |
e3234b3 |
in various contexts.
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
Name: python-scikit-learn
|
|
Sergio Pascual |
e5a96eb |
Version: 0.18.1
|
|
|
ef0dbfc |
Release: 4%{?dist}
|
|
Sergio Pascual |
e3234b3 |
Summary: %{sum}
|
|
Sergio Pascual |
c40d0b7 |
License: BSD
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
URL: http://scikit-learn.org/
|
|
Sergio Pascual |
611aecf |
Source0: https://pypi.io/packages/source/s/scikit-learn/%{srcname}-%{version}.tar.gz
|
|
Sergio Pascual |
66f8004 |
Source1: system-six.py
|
|
Sergio Pascual |
66f8004 |
Source2: system-joblib.py
|
|
Sergio Pascual |
3bd41f7 |
Patch0: sklearn-unbundle-joblib.patch
|
|
|
fc6a367 |
Patch1: blas-name.patch
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
e3234b3 |
BuildRequires: python2-devel python3-devel
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: atlas-devel blas-devel
|
|
Sergio Pascual |
445c8ea |
|
|
Sergio Pascual |
445c8ea |
# we don't want to provide private python extension libs
|
|
Sergio Pascual |
445c8ea |
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
%description
|
|
Sergio Pascual |
e3234b3 |
%{common_description}
|
|
Sergio Pascual |
e3234b3 |
|
|
Sergio Pascual |
e3234b3 |
%package -n python2-%{srcname}
|
|
Sergio Pascual |
e3234b3 |
Summary: %{sum}
|
|
Sergio Pascual |
611aecf |
BuildRequires: python2-nose
|
|
Sergio Pascual |
611aecf |
BuildRequires: python2-numpy python2-scipy python2-matplotlib
|
|
Sergio Pascual |
611aecf |
BuildRequires: python2-joblib
|
|
Sergio Pascual |
e3234b3 |
BuildRequires: python2-six >= 1.4.1
|
|
Sergio Pascual |
e3234b3 |
BuildRequires: Cython python2-pillow
|
|
Sergio Pascual |
611aecf |
Requires: python2-numpy
|
|
Sergio Pascual |
611aecf |
Requires: python2-scipy
|
|
Sergio Pascual |
611aecf |
Requires: python2-joblib
|
|
Sergio Pascual |
e3234b3 |
|
|
Sergio Pascual |
611aecf |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
Sergio Pascual |
611aecf |
%{?python_provide:%python_provide python2-sklearn}
|
|
Björn Esser |
a6749ef |
|
|
Sergio Pascual |
e3234b3 |
%description -n python2-%{srcname}
|
|
Sergio Pascual |
e3234b3 |
%{common_description}
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
4a66edb |
%package -n python3-%{srcname}
|
|
Sergio Pascual |
e3234b3 |
Summary: %{sum}
|
|
Sergio Pascual |
611aecf |
BuildRequires: python3-nose
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: python3-numpy python3-scipy python3-matplotlib
|
|
Sergio Pascual |
611aecf |
BuildRequires: python3-joblib
|
|
Sergio Pascual |
afa3bdc |
BuildRequires: python3-six >= 1.4.1
|
|
Sergio Pascual |
f7d64a8 |
BuildRequires: python3-Cython python3-pillow
|
|
Sergio Pascual |
611aecf |
Requires: python3-numpy python3-scipy python3-joblib
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
611aecf |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
Sergio Pascual |
611aecf |
%{?python_provide:%python_provide python3-sklearn}
|
|
Björn Esser |
16ec983 |
|
|
Sergio Pascual |
4a66edb |
%description -n python3-%{srcname}
|
|
Sergio Pascual |
e3234b3 |
%{common_description}
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%prep
|
|
Sergio Pascual |
4a66edb |
%autosetup -n %{srcname}-%{version} -p1
|
|
Sergio Pascual |
66f8004 |
|
|
Sergio Pascual |
6661767 |
# Code to load system six and joblib at runtime
|
|
Sergio Pascual |
66f8004 |
mkdir sklearn/externals/bundled
|
|
Sergio Pascual |
66f8004 |
touch sklearn/externals/bundled/__init__.py
|
|
Sergio Pascual |
66f8004 |
mv sklearn/externals/six.py sklearn/externals/bundled
|
|
Sergio Pascual |
66f8004 |
mv sklearn/externals/joblib sklearn/externals/bundled
|
|
Sergio Pascual |
66f8004 |
mv sklearn/externals/test_externals_setup.py sklearn/externals/bundled
|
|
Sergio Pascual |
66f8004 |
cp %{SOURCE1} sklearn/externals/six.py
|
|
Sergio Pascual |
66f8004 |
cp %{SOURCE2} sklearn/externals/joblib.py
|
|
Sergio Pascual |
66f8004 |
|
|
Sergio Pascual |
28d0a86 |
# Remove the source code of the bundled blas library
|
|
Sergio Pascual |
28d0a86 |
rm -rf sklearn/src/cblas/*
|
|
Sergio Pascual |
c40d0b7 |
|
|
Björn Esser |
a6749ef |
#chmod -x examples/decomposition/plot_pca_vs_fa_model_selection.py
|
|
Sergio Pascual |
e3234b3 |
#sed -i -e "1d" examples/decomposition/plot_pca_vs_fa_model_selection.py
|
|
Sergio Pascual |
f7d64a8 |
|
|
Sergio Pascual |
e3234b3 |
#find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%build
|
|
Sergio Pascual |
e3234b3 |
%py2_build
|
|
Sergio Pascual |
e3234b3 |
%py3_build
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%install
|
|
Sergio Pascual |
e3234b3 |
%py2_install
|
|
Sergio Pascual |
e3234b3 |
%py3_install
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
f7d64a8 |
%check
|
|
Sergio Pascual |
28d0a86 |
pushd %{buildroot}/%{python3_sitearch}
|
|
Sergio Pascual |
184faa2 |
# nosetests-%{python3_version} -x sklearn
|
|
Sergio Pascual |
28d0a86 |
popd
|
|
Sergio Pascual |
f7d64a8 |
|
|
Sergio Pascual |
28d0a86 |
pushd %{buildroot}/%{python2_sitearch}
|
|
Sergio Pascual |
184faa2 |
# nosetests-%{python2_version} -x sklearn
|
|
Sergio Pascual |
f7d64a8 |
popd
|
|
Björn Esser |
a6749ef |
|
|
Sergio Pascual |
e3234b3 |
%files -n python2-%{srcname}
|
|
Björn Esser |
a6749ef |
%doc examples/ AUTHORS.rst README.rst
|
|
Sergio Pascual |
28d0a86 |
%license COPYING
|
|
Sergio Pascual |
f7d64a8 |
%{python2_sitearch}/sklearn
|
|
Sergio Pascual |
f7d64a8 |
%{python2_sitearch}/scikit_learn-*.egg-info
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
4a66edb |
%files -n python3-%{srcname}
|
|
Sergio Pascual |
28d0a86 |
%doc examples/ AUTHORS.rst README.rst
|
|
Sergio Pascual |
28d0a86 |
%license COPYING
|
|
Sergio Pascual |
3bd41f7 |
%{python3_sitearch}/sklearn
|
|
Sergio Pascual |
3bd41f7 |
%{python3_sitearch}/scikit_learn-*.egg-info
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%changelog
|
|
|
ef0dbfc |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-4
|
|
|
ef0dbfc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
ef0dbfc |
|
|
|
07875d4 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-3
|
|
|
07875d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
07875d4 |
|
|
|
e17c504 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-2
|
|
|
e17c504 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e17c504 |
|
|
Sergio Pascual |
e5a96eb |
* Fri Jan 27 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.1-1
|
|
Sergio Pascual |
e5a96eb |
- New upstream (0.18.1)
|
|
Sergio Pascual |
e5a96eb |
|
|
|
7a4fc0b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.18-3
|
|
|
7a4fc0b |
- Rebuild for Python 3.6
|
|
|
7a4fc0b |
|
|
Orion Poplawski |
6dd201f |
* Sun Nov 6 2016 Orion Poplawski <orion@cora.nwra.com> - 0.18-2
|
|
Orion Poplawski |
6dd201f |
- Rebuild for ppc64
|
|
Orion Poplawski |
6dd201f |
|
|
Sergio Pascual |
611aecf |
* Thu Oct 27 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18-1
|
|
Sergio Pascual |
611aecf |
- New upstream (0.18)
|
|
Sergio Pascual |
611aecf |
- Updatd patch blas-name
|
|
Sergio Pascual |
611aecf |
- Removed patch sklearn-np11 (already in upstream)
|
|
Sergio Pascual |
611aecf |
|
|
|
ed31242 |
* Sat Oct 15 2016 Peter Robinson <pbrobinson@fedoraproject.org> - 0.17.1-6
|
|
|
ed31242 |
- rebuilt for matplotlib-2.0.0
|
|
|
ed31242 |
|
|
|
5e394f2 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.1-5
|
|
|
5e394f2 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
5e394f2 |
|
|
Björn Esser |
16ec983 |
* Wed Mar 30 2016 Björn Esser <fedora@besser82.io> - 0.17.1-4
|
|
Björn Esser |
16ec983 |
- add Provides for python(2|3)-sklearn
|
|
Björn Esser |
16ec983 |
|
|
Björn Esser |
a6749ef |
* Wed Mar 30 2016 Björn Esser <fedora@besser82.io> - 0.17.1-3
|
|
Björn Esser |
a6749ef |
- add proper Provides and Obsoletes
|
|
Björn Esser |
a6749ef |
|
|
Sergio Pascual |
184faa2 |
* Wed Mar 30 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.17.1-2.1
|
|
Sergio Pascual |
184faa2 |
- Skip tests for the moment
|
|
Sergio Pascual |
184faa2 |
|
|
Sergio Pascual |
e3234b3 |
* Tue Mar 29 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.17.1-2
|
|
Sergio Pascual |
4a66edb |
- New upstream (0.17.1)
|
|
Sergio Pascual |
4a66edb |
- Provide python2-scikit-learn
|
|
Sergio Pascual |
e3234b3 |
- Add patch for numpy1.11
|
|
Sergio Pascual |
e3234b3 |
- New style macros
|
|
Sergio Pascual |
4a66edb |
|
|
|
6e158e4 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
|
|
|
6e158e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6e158e4 |
|
|
|
fc6a367 |
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.17-1
|
|
|
fc6a367 |
- Update to latest version
|
|
|
fc6a367 |
- Force linking to atlas
|
|
|
fc6a367 |
|
|
|
eed377e |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-3
|
|
|
eed377e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
eed377e |
|
|
|
fa34007 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-2
|
|
|
fa34007 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
fa34007 |
|
|
Sergio Pascual |
75b8b8b |
* Thu Apr 09 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.16.1-1
|
|
Sergio Pascual |
75b8b8b |
- New upstream (0.16.1), bugfix
|
|
Sergio Pascual |
75b8b8b |
|
|
Sergio Pascual |
445c8ea |
* Thu Apr 09 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.16.0-2
|
|
Sergio Pascual |
445c8ea |
- Readd provides filter
|
|
Sergio Pascual |
445c8ea |
- Increase joblib minimum version
|
|
Sergio Pascual |
28d0a86 |
- New upstream (0.16.0)
|
|
Sergio Pascual |
28d0a86 |
|
|
Sergio Pascual |
ddcb836 |
* Tue Sep 16 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.2-2
|
|
Sergio Pascual |
ddcb836 |
- Remove patch for broken test (fixed in scipy 0.14.1)
|
|
Sergio Pascual |
ddcb836 |
|
|
Sergio Pascual |
7510bfc |
* Tue Sep 16 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.2-1
|
|
Sergio Pascual |
7510bfc |
- New upstream (0.15.2), bugfix
|
|
Sergio Pascual |
7510bfc |
|
|
|
dc8badc |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
|
|
|
dc8badc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
dc8badc |
|
|
Sergio Pascual |
429db38 |
* Sat Aug 02 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.1-1
|
|
Sergio Pascual |
429db38 |
- New upstream (0.15.1), bugfix
|
|
Sergio Pascual |
429db38 |
|
|
Sergio Pascual |
4c612c4 |
* Tue Jul 15 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.0-1
|
|
Sergio Pascual |
4c612c4 |
- New upstream (0.15.0), final
|
|
Sergio Pascual |
4c612c4 |
|
|
Sergio Pascual |
4c612c4 |
* Wed Jul 02 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.0-0.5.b2
|
|
Björn Esser |
a6749ef |
- New upstream (0.15.0b2), beta release
|
|
Sergio Pascual |
3e4fd09 |
|
|
Sergio Pascual |
6661767 |
* Tue Jun 24 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.0-0.4.b1
|
|
Sergio Pascual |
6661767 |
- Add COPYING to docs
|
|
Sergio Pascual |
6661767 |
- Spec cleanup
|
|
Sergio Pascual |
6661767 |
|
|
Sergio Pascual |
9122bfc |
* Mon Jun 23 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.0-0.3.b1
|
|
Björn Esser |
a6749ef |
- New upstream (0.15.0b1), beta release
|
|
Sergio Pascual |
77283ff |
- Add tarball
|
|
Sergio Pascual |
9122bfc |
- Disable tests for the moment
|
|
Sergio Pascual |
66f8004 |
|
|
|
dd19b3f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-9
|
|
|
dd19b3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
dd19b3f |
|
|
|
d394d45 |
* Mon Jun 02 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.1-8
|
|
|
d394d45 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
d394d45 |
|
|
Sergio Pascual |
66f8004 |
* Mon Jun 02 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.1-7
|
|
Sergio Pascual |
d76a97a |
- Rerun Cython3 on broken files
|
|
Sergio Pascual |
d76a97a |
- Disable tests for the moment
|
|
Sergio Pascual |
d76a97a |
|
|
Björn Esser |
3868313 |
* Thu May 29 2014 Björn Esser <bjoern.esser@gmail.com> - 0.14.1-6
|
|
Björn Esser |
3868313 |
- rebuilt for Python3 3.4
|
|
Björn Esser |
3868313 |
|
|
Sergio Pascual |
f7d64a8 |
* Wed Jan 15 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.1-5
|
|
Sergio Pascual |
f7d64a8 |
- Enable checks
|
|
Sergio Pascual |
f7d64a8 |
- Regenerate C files from patched cython code
|
|
Sergio Pascual |
f7d64a8 |
- Use python2 style macros
|
|
Sergio Pascual |
f7d64a8 |
|
|
Björn Esser |
403c7bc |
* Sat Oct 26 2013 Björn Esser <bjoern.esser@gmail.com> - 0.14.1-4
|
|
Björn Esser |
403c7bc |
- rebuilt for atlas-3.10.1-7
|
|
Björn Esser |
403c7bc |
|
|
Sergio Pascual |
afa3bdc |
* Mon Sep 16 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.1-3
|
|
Sergio Pascual |
afa3bdc |
- Unbundle six
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
5313817 |
* Wed Sep 11 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.1-2
|
|
Sergio Pascual |
5313817 |
- Update cblas patch
|
|
Sergio Pascual |
5313817 |
- Update EVR to build with new numpy (1.8.0-0.3b2)
|
|
Sergio Pascual |
5313817 |
|
|
Sergio Pascual |
3bd41f7 |
* Wed Aug 28 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.1-1
|
|
Sergio Pascual |
3bd41f7 |
- New upstream source (0.14.1)
|
|
Sergio Pascual |
84acc60 |
- Add python3 support
|
|
Sergio Pascual |
84acc60 |
- Unbundle joblib and cblas
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
* Wed Jul 10 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.13.1-3
|
|
Sergio Pascual |
c40d0b7 |
- Reorder buildrequires and requires
|
|
Sergio Pascual |
c40d0b7 |
- Dropped doc, it does not build
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
* Tue Jun 25 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.13.1-2
|
|
Sergio Pascual |
c40d0b7 |
- Changed package name
|
|
Sergio Pascual |
c40d0b7 |
- Tests do not need recompile
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
* Thu Apr 18 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.13.1-1
|
|
Sergio Pascual |
c40d0b7 |
- Initial spec file
|