|
Sergio Pascual |
c40d0b7 |
%global upname scikit-learn
|
|
Sergio Pascual |
84acc60 |
%global with_python3 1
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
Name: python-scikit-learn
|
|
Sergio Pascual |
75b8b8b |
Version: 0.16.1
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
eed377e |
Release: 3%{?dist}
|
|
Sergio Pascual |
c40d0b7 |
Summary: Machine learning in Python
|
|
Sergio Pascual |
c40d0b7 |
License: BSD
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
URL: http://scikit-learn.org/
|
|
Sergio Pascual |
4c612c4 |
Source0: https://pypi.python.org/packages/source/s/scikit-learn/%{upname}-%{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
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
c40d0b7 |
BuildRequires: python2-devel
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: numpy scipy python-nose python-matplotlib
|
|
Sergio Pascual |
445c8ea |
BuildRequires: python-joblib >= 0.8.4
|
|
Sergio Pascual |
afa3bdc |
BuildRequires: python-six >= 1.4.1
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: atlas-devel blas-devel
|
|
Sergio Pascual |
f7d64a8 |
BuildRequires: Cython python-pillow
|
|
Sergio Pascual |
445c8ea |
Requires: numpy scipy python-joblib >= 0.8.4
|
|
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 |
c40d0b7 |
Scikit-learn integrates machine learning algorithms in the tightly-knit
|
|
Sergio Pascual |
c40d0b7 |
scientific Python world, building upon numpy, scipy, and matplotlib.
|
|
Sergio Pascual |
c40d0b7 |
As a machine-learning module, it provides versatile tools for data mining and
|
|
Sergio Pascual |
c40d0b7 |
analysis in any field of science and engineering. It strives to be simple and
|
|
Sergio Pascual |
c40d0b7 |
efficient, accessible to everybody, and reusable in various contexts.
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
3bd41f7 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
3bd41f7 |
%package -n python3-%{upname}
|
|
Sergio Pascual |
3bd41f7 |
Summary: Machine learning in Python
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: python3-devel python3-nose
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: python3-numpy python3-scipy python3-matplotlib
|
|
Sergio Pascual |
445c8ea |
BuildRequires: python3-joblib >= 0.8.4
|
|
Sergio Pascual |
afa3bdc |
BuildRequires: python3-six >= 1.4.1
|
|
Sergio Pascual |
3bd41f7 |
BuildRequires: atlas-devel blas-devel
|
|
Sergio Pascual |
f7d64a8 |
BuildRequires: python3-Cython python3-pillow
|
|
Sergio Pascual |
445c8ea |
Requires: python3-numpy python3-scipy python3-joblib >= 0.8.4
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
3bd41f7 |
%description -n python3-%{upname}
|
|
Sergio Pascual |
3bd41f7 |
Scikit-learn integrates machine learning algorithms in the tightly-knit
|
|
Sergio Pascual |
3bd41f7 |
scientific Python world, building upon numpy, scipy, and matplotlib.
|
|
Sergio Pascual |
3bd41f7 |
As a machine-learning module, it provides versatile tools for data mining and
|
|
Sergio Pascual |
3bd41f7 |
analysis in any field of science and engineering. It strives to be simple and
|
|
Sergio Pascual |
3bd41f7 |
efficient, accessible to everybody, and reusable in various contexts.
|
|
Sergio Pascual |
3bd41f7 |
%endif # with_python3
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%prep
|
|
Sergio Pascual |
4c612c4 |
%setup -n %{upname}-%{version} -q
|
|
Sergio Pascual |
66f8004 |
|
|
Sergio Pascual |
3bd41f7 |
%patch0 -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 |
|
|
Sergio Pascual |
445c8ea |
chmod -x examples/decomposition/plot_pca_vs_fa_model_selection.py
|
|
Sergio Pascual |
445c8ea |
sed -i -e "1d" examples/decomposition/plot_pca_vs_fa_model_selection.py
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
f7d64a8 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Sergio Pascual |
f7d64a8 |
|
|
Sergio Pascual |
3bd41f7 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
3bd41f7 |
rm -rf %{py3dir}
|
|
Sergio Pascual |
3bd41f7 |
cp -a . %{py3dir}
|
|
Sergio Pascual |
3bd41f7 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
Sergio Pascual |
3bd41f7 |
%endif # with_python3
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%build
|
|
Sergio Pascual |
f7d64a8 |
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
3bd41f7 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
3bd41f7 |
pushd %{py3dir}
|
|
Sergio Pascual |
3bd41f7 |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
Sergio Pascual |
3bd41f7 |
popd
|
|
Sergio Pascual |
3bd41f7 |
%endif # with_python3
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%install
|
|
Sergio Pascual |
3bd41f7 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
3bd41f7 |
pushd %{py3dir}
|
|
Sergio Pascual |
28d0a86 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
3bd41f7 |
popd
|
|
Sergio Pascual |
3bd41f7 |
%endif # with_python3
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
28d0a86 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
find %{buildroot} -name "*.so" | xargs chmod 755
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
f7d64a8 |
%check
|
|
Sergio Pascual |
f7d64a8 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
28d0a86 |
pushd %{buildroot}/%{python3_sitearch}
|
|
Sergio Pascual |
3e4fd09 |
nosetests-%{python3_version} -x sklearn
|
|
Sergio Pascual |
28d0a86 |
popd
|
|
Sergio Pascual |
f7d64a8 |
%endif # with_python3
|
|
Sergio Pascual |
f7d64a8 |
|
|
Sergio Pascual |
28d0a86 |
pushd %{buildroot}/%{python2_sitearch}
|
|
Sergio Pascual |
3e4fd09 |
nosetests-%{python2_version} -x sklearn
|
|
Sergio Pascual |
f7d64a8 |
popd
|
|
Sergio Pascual |
c40d0b7 |
|
|
Sergio Pascual |
c40d0b7 |
%files
|
|
Sergio Pascual |
28d0a86 |
%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 |
3bd41f7 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
3bd41f7 |
%files -n python3-%{upname}
|
|
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 |
%endif # with_python3
|
|
Sergio Pascual |
3bd41f7 |
|
|
Sergio Pascual |
c40d0b7 |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
eed377e |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-3
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
eed377e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
eed377e |
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
fa34007 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-2
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
fa34007 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
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 |
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
dc8badc |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
dc8badc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/4e8d68fe76de63043f2c89e9e363e4dc5af5775e488004cc7a8398c86381b072?s=16&d=retro) |
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
|
|
Sergio Pascual |
3e4fd09 |
- 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
|
|
Sergio Pascual |
66f8004 |
- New upstream (0.15.0b1), beta release
|
|
Sergio Pascual |
77283ff |
- Add tarball
|
|
Sergio Pascual |
9122bfc |
- Disable tests for the moment
|
|
Sergio Pascual |
66f8004 |
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
dd19b3f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-9
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
dd19b3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
dd19b3f |
|
|
![](https://seccdn.libravatar.org/avatar/a7cc9a35298b42e6c9027fecc405246b66e2391bd33b38fb4a5cdb24728c418b?s=16&d=retro) |
d394d45 |
* Mon Jun 02 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.1-8
|
|
![](https://seccdn.libravatar.org/avatar/a7cc9a35298b42e6c9027fecc405246b66e2391bd33b38fb4a5cdb24728c418b?s=16&d=retro) |
d394d45 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
![](https://seccdn.libravatar.org/avatar/a7cc9a35298b42e6c9027fecc405246b66e2391bd33b38fb4a5cdb24728c418b?s=16&d=retro) |
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
|