|
Orion Poplawski |
fde84b2 |
%if 0%{?fedora}
|
|
Sergio Pascual |
5292e2d |
%global with_python3 1
|
|
Orion Poplawski |
fde84b2 |
%else
|
|
Orion Poplawski |
fde84b2 |
%global with_python3 0
|
|
Orion Poplawski |
fde84b2 |
%endif
|
|
Sergio Pascual |
633ba44 |
%global srcname scikit-image
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
Name: python-scikit-image
|
|
|
1909b02 |
Version: 0.14.0
|
|
|
1909b02 |
Release: 1%{?dist}
|
|
Sergio Pascual |
5292e2d |
Summary: Image processing in Python
|
|
Sergio Pascual |
5292e2d |
# The following files are BSD 2 clauses, the rest BSD 3 clauses
|
|
Sergio Pascual |
5292e2d |
# skimage/graph/_mcp.pyx
|
|
Sergio Pascual |
5292e2d |
# skimage/graph/heap.pyx
|
|
Sergio Pascual |
5292e2d |
License: BSD
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
URL: http://scikit-image.org/
|
|
Sergio Pascual |
633ba44 |
Source0: https://pypi.python.org/packages/source/s/scikit-image/scikit-image-%{version}.tar.gz
|
|
Sergio Pascual |
fc9801c |
|
|
Orion Poplawski |
cabb99e |
|
|
Orion Poplawski |
cabb99e |
BuildRequires: xorg-x11-server-Xvfb
|
|
Orion Poplawski |
cabb99e |
|
|
Orion Poplawski |
cabb99e |
%description
|
|
Orion Poplawski |
cabb99e |
The scikit-image SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
|
|
Orion Poplawski |
cabb99e |
versatile set of image processing routines.
|
|
Orion Poplawski |
cabb99e |
|
|
Orion Poplawski |
cabb99e |
%package -n python2-%{srcname}
|
|
Orion Poplawski |
cabb99e |
Summary: Image processing in Python 2
|
|
|
e8cd0bc |
BuildRequires: python2-devel python2-setuptools python2-numpy
|
|
|
e8cd0bc |
BuildRequires: python2-scipy python2-matplotlib python2-nose
|
|
Orion Poplawski |
fde84b2 |
%if 0%{?rhel}
|
|
Orion Poplawski |
fde84b2 |
BuildRequires: python-matplotlib-qt4
|
|
Orion Poplawski |
fde84b2 |
%endif
|
|
|
e8cd0bc |
BuildRequires: python2-six >= 1.3
|
|
|
e8cd0bc |
BuildRequires: python2-networkx-core
|
|
|
e8cd0bc |
BuildRequires: python2-pillow
|
|
|
d4109c6 |
BuildRequires: python2-pywt python2-Cython
|
|
|
e8cd0bc |
Requires: python2-scipy
|
|
|
e8cd0bc |
Requires: python2-six >= 1.3
|
|
|
e8cd0bc |
Requires: python2-networkx-core
|
|
|
e8cd0bc |
Requires: python2-pillow
|
|
Sergio Pascual |
2573f7d |
Requires: python2-pywt >= 0.4.0
|
|
Orion Poplawski |
cabb99e |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
Sergio Pascual |
360c9da |
|
|
Orion Poplawski |
cabb99e |
%description -n python2-%{srcname}
|
|
Sergio Pascual |
5292e2d |
The scikit-image SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
|
|
Sergio Pascual |
5292e2d |
versatile set of image processing routines.
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Sergio Pascual |
633ba44 |
%package -n python3-%{srcname}
|
|
Orion Poplawski |
cabb99e |
Summary: Image processing in Python 3
|
|
Orion Poplawski |
fde84b2 |
BuildRequires: python3-devel python3-setuptools python3-numpy
|
|
Sergio Pascual |
5292e2d |
BuildRequires: python3-scipy python3-matplotlib python3-nose
|
|
Sergio Pascual |
5292e2d |
BuildRequires: python3-six >= 1.3
|
|
Sergio Pascual |
6ab6891 |
BuildRequires: python3-networkx-core
|
|
Sergio Pascual |
6ab6891 |
BuildRequires: python3-pillow
|
|
|
1909b02 |
BuildRequires: python3-pywt python3-Cython
|
|
Sergio Pascual |
5292e2d |
Requires: python3-scipy
|
|
Sergio Pascual |
5292e2d |
Requires: python3-six >= 1.3
|
|
Sergio Pascual |
6ab6891 |
Requires: python3-networkx-core
|
|
Sergio Pascual |
6ab6891 |
Requires: python3-pillow
|
|
Sergio Pascual |
2573f7d |
Requires: python3-pywt >= 0.4.0
|
|
Orion Poplawski |
cabb99e |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
633ba44 |
%description -n python3-%{srcname}
|
|
Sergio Pascual |
5292e2d |
The scikit-image SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
|
|
Sergio Pascual |
5292e2d |
versatile set of image processing routines.
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
633ba44 |
%package -n %{srcname}-tools
|
|
Sergio Pascual |
5292e2d |
Summary: Scikit-image utility tools
|
|
Sergio Pascual |
5292e2d |
BuildArch: noarch
|
|
Sergio Pascual |
360c9da |
%if 0%{?with_python3}
|
|
Sergio Pascual |
633ba44 |
Requires: python3-%{srcname} = %{version}-%{release}
|
|
Sergio Pascual |
360c9da |
%else
|
|
Sergio Pascual |
633ba44 |
Requires: python2-%{srcname} = %{version}-%{release}
|
|
Sergio Pascual |
360c9da |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
633ba44 |
%description -n %{srcname}-tools
|
|
Sergio Pascual |
5292e2d |
Utilities provided by scikit-image: 'skivi'
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%prep
|
|
Sergio Pascual |
633ba44 |
%setup -n %{srcname}-%{version} -q
|
|
Sergio Pascual |
fc9801c |
#%patch0 -p1 -b .Cython
|
|
Sergio Pascual |
5292e2d |
# Remove some shebangs
|
|
Sergio Pascual |
5292e2d |
pushd skimage
|
|
Sergio Pascual |
5292e2d |
for i in $(grep -l -r "/usr/bin/env"); do
|
|
Sergio Pascual |
5292e2d |
sed -i -e '1d' $i;
|
|
Sergio Pascual |
5292e2d |
done
|
|
Sergio Pascual |
5292e2d |
popd
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%build
|
|
Orion Poplawski |
cabb99e |
%py2_build
|
|
Sergio Pascual |
5292e2d |
# Requires plot2rst
|
|
Sergio Pascual |
5292e2d |
#%{__python2} setup.py build_sphinx
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Orion Poplawski |
cabb99e |
%py3_build
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%install
|
|
Orion Poplawski |
cabb99e |
%py2_install
|
|
Sergio Pascual |
360c9da |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Orion Poplawski |
cabb99e |
%py3_install
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
find %{buildroot} -name "*.so" | xargs chmod 755
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
# Checks are not working at the moment
|
|
Sergio Pascual |
35d399c |
%check
|
|
Sergio Pascual |
35d399c |
# Fake matplotlibrc
|
|
Sergio Pascual |
35d399c |
mkdir -p matplotlib
|
|
Sergio Pascual |
35d399c |
touch matplotlib/matplotlibrc
|
|
Sergio Pascual |
35d399c |
export XDG_CONFIG_HOME=`pwd`
|
|
Sergio Pascual |
35d399c |
pushd %{buildroot}/%{python2_sitearch}
|
|
Orion Poplawski |
41ebd5e |
xvfb-run nosetests-%{python2_version} skimage || :
|
|
Sergio Pascual |
35d399c |
popd
|
|
Sergio Pascual |
35d399c |
|
|
Sergio Pascual |
35d399c |
%if 0%{?with_python3}
|
|
Sergio Pascual |
35d399c |
# Fake matplotlibrc
|
|
Sergio Pascual |
35d399c |
mkdir -p matplotlib
|
|
Sergio Pascual |
35d399c |
touch matplotlib/matplotlibrc
|
|
Sergio Pascual |
35d399c |
export XDG_CONFIG_HOME=`pwd`
|
|
Sergio Pascual |
35d399c |
pushd %{buildroot}/%{python3_sitearch}
|
|
Orion Poplawski |
41ebd5e |
xvfb-run nosetests-%{python3_version} skimage || :
|
|
Sergio Pascual |
35d399c |
popd
|
|
Sergio Pascual |
35d399c |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Orion Poplawski |
cabb99e |
%files -n python2-%{srcname}
|
|
|
1909b02 |
%doc CONTRIBUTORS.txt RELEASE.txt
|
|
Sergio Pascual |
6ab6891 |
%license LICENSE.txt
|
|
Sergio Pascual |
5292e2d |
%{python2_sitearch}/skimage
|
|
Sergio Pascual |
5292e2d |
%{python2_sitearch}/scikit_image-*.egg-info
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Sergio Pascual |
633ba44 |
%files -n python3-%{srcname}
|
|
|
1909b02 |
%doc CONTRIBUTORS.txt RELEASE.txt
|
|
Sergio Pascual |
6ab6891 |
%license LICENSE.txt
|
|
Sergio Pascual |
5292e2d |
%{python3_sitearch}/skimage
|
|
Sergio Pascual |
5292e2d |
%{python3_sitearch}/scikit_image-*.egg-info
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
633ba44 |
%files -n %{srcname}-tools
|
|
Sergio Pascual |
5292e2d |
%{_bindir}/skivi
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%changelog
|
|
|
1909b02 |
* Mon Jun 11 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.14.0-1
|
|
|
1909b02 |
- New upstream version (0.14.0)
|
|
|
1909b02 |
|
|
|
e8cd0bc |
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.0-6
|
|
|
e8cd0bc |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
e8cd0bc |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
e8cd0bc |
|
|
|
a677c85 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-5
|
|
|
a677c85 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a677c85 |
|
|
|
9acc973 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
|
|
|
9acc973 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
9acc973 |
|
|
|
e0256ed |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-3
|
|
|
e0256ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e0256ed |
|
|
Sergio Pascual |
2573f7d |
* Thu Jun 01 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 0.13.0-2
|
|
Sergio Pascual |
2573f7d |
- Add dependency on pywt (PyWavelets)
|
|
Sergio Pascual |
2573f7d |
|
|
Sergio Pascual |
fc9801c |
* Mon May 15 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 0.13.0-1
|
|
Sergio Pascual |
fc9801c |
- New upstream version (0.13.0)
|
|
Sergio Pascual |
fc9801c |
|
|
|
db70afc |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-7
|
|
|
db70afc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
db70afc |
|
|
|
a7bbcbf |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.12.3-6
|
|
|
a7bbcbf |
- Rebuild for Python 3.6
|
|
|
a7bbcbf |
|
|
Orion Poplawski |
fde84b2 |
* Tue Aug 16 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.3-5
|
|
Orion Poplawski |
fde84b2 |
- Remove Cython build requirement
|
|
Orion Poplawski |
fde84b2 |
- Only build python3 for Fedora
|
|
Orion Poplawski |
fde84b2 |
|
|
|
ecd6927 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.3-4
|
|
|
ecd6927 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
ecd6927 |
|
|
Orion Poplawski |
41ebd5e |
* Wed Apr 6 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.3-3
|
|
Orion Poplawski |
41ebd5e |
- Run tests, but do not abort build on failure
|
|
Orion Poplawski |
cabb99e |
- Drop py3dir, use new python macros
|
|
Orion Poplawski |
41ebd5e |
|
|
Sergio Pascual |
eb54a46 |
* Tue Mar 29 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.12.3-2
|
|
Sergio Pascual |
633ba44 |
- New upstream source
|
|
Sergio Pascual |
633ba44 |
- Disable tests for the moment
|
|
Sergio Pascual |
633ba44 |
|
|
Sergio Pascual |
360c9da |
* Fri Feb 19 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.3-8
|
|
Sergio Pascual |
360c9da |
- skivi uses python3 (bz #1309240)
|
|
Sergio Pascual |
360c9da |
- Provides "versioned" python2-scikit-image
|
|
Sergio Pascual |
360c9da |
|
|
|
73721d2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.3-7
|
|
|
73721d2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
73721d2 |
|
|
Sergio Pascual |
681fa9c |
* Tue Jan 05 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.3-6
|
|
Sergio Pascual |
681fa9c |
- Tarball without problematic copyrigth images (fixes bz #1295193)
|
|
Sergio Pascual |
681fa9c |
|
|
Sergio Pascual |
78b043d |
* Mon Nov 23 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.3-5
|
|
Sergio Pascual |
78b043d |
- Provides python2-scikit-image
|
|
Sergio Pascual |
78b043d |
|
|
|
2879c77 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.3-4
|
|
|
2879c77 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
2879c77 |
|
|
|
f41ed31 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.3-3
|
|
|
f41ed31 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f41ed31 |
|
|
Sergio Pascual |
6712e7a |
* Thu May 21 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.3-2
|
|
Sergio Pascual |
6712e7a |
- Disable tests
|
|
Sergio Pascual |
35d399c |
- New upstream version (0.11.3)
|
|
Sergio Pascual |
35d399c |
|
|
Sergio Pascual |
e9d9c31 |
* Thu Mar 12 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.2-1
|
|
Sergio Pascual |
e9d9c31 |
- New upstream version (0.11.2)
|
|
Sergio Pascual |
e9d9c31 |
|
|
Sergio Pascual |
6ab6891 |
* Wed Feb 04 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.11.0-1
|
|
Sergio Pascual |
6ab6891 |
- New upstream version
|
|
Sergio Pascual |
6ab6891 |
|
|
Sergio Pascual |
5292e2d |
* Tue Jul 29 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.10.1-2
|
|
Sergio Pascual |
5292e2d |
- Remove __provides_exclude_from, is not needed in f20+
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
* Wed Jul 09 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.10.1-1
|
|
Sergio Pascual |
5292e2d |
- New upstream 0.10.1
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
* Thu Apr 18 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.3-1
|
|
Sergio Pascual |
5292e2d |
- Initial spec file
|
|
Sergio Pascual |
5292e2d |
|