Sergio Pascual 633ba44
%global srcname scikit-image
Sergio Pascual 5292e2d
662b506
# Disable automatic dependency generators until we fixed (optional) deps
662b506
%{?python_disable_dependency_generator}
662b506
Sergio Pascual 5292e2d
Name: python-scikit-image
acd7594
Version: 0.14.2
9212f01
Release: 3%{?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
ff62bff
BuildRequires: gcc gcc-c++
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
Sergio Pascual 5292e2d
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
acd7594
Requires: python3-dask
acd7594
Requires: python3-matplotlib-qt5
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 633ba44
%package -n %{srcname}-tools
Sergio Pascual 5292e2d
Summary: Scikit-image utility tools
Sergio Pascual 5292e2d
BuildArch: noarch
Sergio Pascual 633ba44
Requires: python3-%{srcname} = %{version}-%{release}
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
cea8ea4
%py3_build
cea8ea4
Sergio Pascual 5292e2d
# Requires plot2rst
cea8ea4
#%{__python3} setup.py build_sphinx
Sergio Pascual 5292e2d
Sergio Pascual 5292e2d
Sergio Pascual 5292e2d
%install
Orion Poplawski cabb99e
%py3_install
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}/%{python3_sitearch}
Orion Poplawski 41ebd5e
xvfb-run nosetests-%{python3_version} skimage || :
Sergio Pascual 35d399c
popd
Sergio Pascual 5292e2d
cea8ea4
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
Sergio Pascual 633ba44
%files -n %{srcname}-tools
Sergio Pascual 5292e2d
%{_bindir}/skivi
Sergio Pascual 5292e2d
cea8ea4
Sergio Pascual 5292e2d
%changelog
9212f01
* Thu Sep  5 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14.2-3
9212f01
- Rebuilt with fixed python-pywt
9212f01
c74c813
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.2-2
c74c813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c74c813
acd7594
* Sun May  5 2019 Orion Poplawski <orion@nwra.com> - 0.14.2-1
acd7594
- Update to 0.14.2 to fix numpy 1.16 compatibility (bugz#1706125)
acd7594
- Add requires on dask and maplotlib-qt5 (bugz#1691823)
acd7594
662b506
* Mon Mar 04 2019 Christian Dersch <lupinix@mailbox.org> - 0.14.0-7
662b506
- Disable automatic dependency generators until we fixed (optional) deps
662b506
99762de
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-6
99762de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
99762de
cea8ea4
* Mon Oct 01 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-5
cea8ea4
- Remove Python 2 subpackage
cea8ea4
5e73860
* Tue Jul 17 2018 Christian Dersch <lupinix@fedoraproject.org> - 0.14.0-4
5e73860
- BuildRequires: gcc
5e73860
7f6e714
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-3
7f6e714
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7f6e714
539723f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-2
539723f
- Rebuilt for Python 3.7
539723f
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