|
Sergio Pascual |
5292e2d |
%global with_python3 1
|
|
Sergio Pascual |
5292e2d |
%global upname scikit-image
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
Name: python-scikit-image
|
|
Sergio Pascual |
35d399c |
Version: 0.11.3
|
|
Sergio Pascual |
78b043d |
Release: 5%{?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 |
5292e2d |
Source0: https://pypi.python.org/packages/source/s/scikit-image/scikit-image-%{version}.tar.gz
|
|
Sergio Pascual |
5292e2d |
BuildRequires: python2-devel python-setuptools numpy Cython
|
|
Sergio Pascual |
5292e2d |
BuildRequires: scipy python-matplotlib python-nose
|
|
Sergio Pascual |
5292e2d |
BuildRequires: python-six >= 1.3
|
|
Sergio Pascual |
6ab6891 |
BuildRequires: python-networkx-core
|
|
Sergio Pascual |
6ab6891 |
BuildRequires: python-pillow
|
|
Sergio Pascual |
5292e2d |
Requires: scipy
|
|
Sergio Pascual |
5292e2d |
Requires: python-six >= 1.3
|
|
Sergio Pascual |
6ab6891 |
Requires: python-networkx-core
|
|
Sergio Pascual |
6ab6891 |
Requires: python-pillow
|
|
Sergio Pascual |
78b043d |
Provides: python2-scikit-image
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%description
|
|
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 |
5292e2d |
%package -n python3-%{upname}
|
|
Sergio Pascual |
5292e2d |
Summary: Image processing in Python
|
|
Sergio Pascual |
5292e2d |
BuildRequires: python3-devel python3-setuptools python3-numpy python3-Cython
|
|
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
|
|
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 |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%description -n python3-%{upname}
|
|
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 |
5292e2d |
%package -n %{upname}-tools
|
|
Sergio Pascual |
5292e2d |
Summary: Scikit-image utility tools
|
|
Sergio Pascual |
5292e2d |
BuildArch: noarch
|
|
Sergio Pascual |
5292e2d |
Requires: %{name} = %{version}-%{release}
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%description -n %{upname}-tools
|
|
Sergio Pascual |
5292e2d |
Utilities provided by scikit-image: 'skivi'
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%prep
|
|
Sergio Pascual |
5292e2d |
%setup -n %{upname}-%{version} -q
|
|
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 |
6ab6891 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Sergio Pascual |
5292e2d |
rm -rf %{py3dir}
|
|
Sergio Pascual |
5292e2d |
cp -a . %{py3dir}
|
|
Sergio Pascual |
5292e2d |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%build
|
|
Sergio Pascual |
5292e2d |
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
Sergio Pascual |
5292e2d |
# Requires plot2rst
|
|
Sergio Pascual |
5292e2d |
#%{__python2} setup.py build_sphinx
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Sergio Pascual |
5292e2d |
pushd %{py3dir}
|
|
Sergio Pascual |
5292e2d |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
Sergio Pascual |
5292e2d |
popd
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%install
|
|
Sergio Pascual |
5292e2d |
%if 0%{?with_python3}
|
|
Sergio Pascual |
5292e2d |
pushd %{py3dir}
|
|
Sergio Pascual |
5292e2d |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
5292e2d |
popd
|
|
Sergio Pascual |
5292e2d |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
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}
|
|
Sergio Pascual |
6712e7a |
#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}
|
|
Sergio Pascual |
6712e7a |
#nosetests-%{python3_version} skimage
|
|
Sergio Pascual |
35d399c |
popd
|
|
Sergio Pascual |
35d399c |
%endif # with_python3
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%files
|
|
Sergio Pascual |
6ab6891 |
%doc CONTRIBUTORS.txt DEPENDS.txt RELEASE.txt TASKS.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 |
5292e2d |
%files -n python3-%{upname}
|
|
Sergio Pascual |
6ab6891 |
%doc CONTRIBUTORS.txt DEPENDS.txt RELEASE.txt TASKS.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 |
5292e2d |
%files -n %{upname}-tools
|
|
Sergio Pascual |
5292e2d |
%{_bindir}/skivi
|
|
Sergio Pascual |
5292e2d |
|
|
Sergio Pascual |
5292e2d |
%changelog
|
|
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 |
|