cbf2cd4
%bcond_without check
Sergio Pascual 5292e2d
a04752a
%global srcname scikit-image
662b506
Sergio Pascual 5292e2d
Name: python-scikit-image
a671d22
Version: 0.23.2
a671d22
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
cbf2cd4
License: BSD-2-Clause AND BSD-3-Clause
Sergio Pascual 5292e2d
Sergio Pascual 5292e2d
URL: http://scikit-image.org/
cbf2cd4
Source0: https://github.com/scikit-image/scikit-image/archive/v%{version}/%{srcname}-%{version}.tar.gz
cbf2cd4
# Select extra test data - you can build the package locally and then run:
cbf2cd4
# tar cJvf scikit-image-data.tar.xz -C scikit-image-0.21.0/scikit-image/0.21.0 .
cbf2cd4
Source1: scikit-image-data.tar.xz
Sergio Pascual fc9801c
ff62bff
BuildRequires: gcc gcc-c++
Orion Poplawski cabb99e
BuildRequires: xorg-x11-server-Xvfb
Orion Poplawski cabb99e
a04752a
%global _description %{expand:
a04752a
The scikit-image SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
a04752a
versatile set of image processing routines.}
Orion Poplawski cabb99e
a04752a
%description %_description
Sergio Pascual 5292e2d
Sergio Pascual 633ba44
%package -n python3-%{srcname}
a04752a
Summary: %{summary}
a04752a
BuildRequires: python3-devel
cbf2cd4
BuildRequires: python-unversioned-command
cbf2cd4
BuildRequires: %{py3_dist meson-python}
cbf2cd4
BuildRequires: %{py3_dist pip}
a04752a
BuildRequires: %{py3_dist numpy}
a04752a
BuildRequires: %{py3_dist scipy}
a04752a
BuildRequires: %{py3_dist networkx}
a04752a
BuildRequires: %{py3_dist pillow}
a04752a
BuildRequires: %{py3_dist imageio}
a04752a
BuildRequires: %{py3_dist tifffile}
a04752a
BuildRequires: %{py3_dist PyWavelets}
cbf2cd4
BuildRequires: %{py3_dist packaging}
cbf2cd4
BuildRequires: %{py3_dist lazy_loader}
cbf2cd4
# optional-dependencies
cbf2cd4
BuildRequires: %{py3_dist Cython}
cbf2cd4
BuildRequires: pythran
cbf2cd4
%if %{with check}
cbf2cd4
BuildRequires: %{py3_dist pytest}
cbf2cd4
BuildRequires: %{py3_dist pytest-localserver}
cbf2cd4
BuildRequires: %{py3_dist matplotlib}
cbf2cd4
BuildRequires: %{py3_dist pooch}
8b296e8
BuildRequires: %{py3_dist numpydoc}
a04752a
%endif
cbf2cd4
Obsoletes: %{srcname}-tools < 0.20.0
a04752a
a04752a
%description -n python3-%{srcname} %_description
Sergio Pascual 5292e2d
Sergio Pascual 5292e2d
%prep
cbf2cd4
%autosetup -n %{srcname}-%{version} -p1
cbf2cd4
# Extract test data - pooch looks for this path in XDG_CACHE_HOME
cbf2cd4
mkdir -p scikit-image/%{version}
cbf2cd4
tar xf %SOURCE1 -C scikit-image/%{version}
cbf2cd4
# Remove pinned numpy versions
cbf2cd4
sed -i -e '/numpy==/d' pyproject.toml
cbf2cd4
# For regeneration of cython source
d9c451e
rm -f $(grep -rl '/\* Generated by Cython')
Sergio Pascual 5292e2d
cbf2cd4
# This currently requires building the whole package with -w, which is just too expensive
cbf2cd4
#generate_buildrequires
cbf2cd4
#pyproject_buildrequires -t -w
cbf2cd4
Sergio Pascual 5292e2d
%build
cbf2cd4
%pyproject_wheel
cea8ea4
Sergio Pascual 5292e2d
%install
cbf2cd4
%pyproject_install
cbf2cd4
%pyproject_save_files skimage
Sergio Pascual 5292e2d
a04752a
%if %{with check}
Sergio Pascual 35d399c
%check
Sergio Pascual 35d399c
# Fake matplotlibrc
Sergio Pascual 35d399c
mkdir -p matplotlib
Sergio Pascual 35d399c
touch matplotlib/matplotlibrc
cbf2cd4
# For test data
cbf2cd4
export XDG_CACHE_HOME=$PWD
cbf2cd4
export XDG_CONFIG_HOME=$PWD
a04752a
export PYTHONDONTWRITEBYTECODE=1
a04752a
export PYTEST_ADDOPTS='-p no:cacheprovider'
Sergio Pascual 35d399c
pushd %{buildroot}/%{python3_sitearch}
cbf2cd4
# We deselect tests that require network data
cbf2cd4
 xvfb-run pytest -v \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_download_all_with_pooch" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_eagle" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_brain_3d" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_cells_3d" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_kidney_3d_multichannel" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_lily_multichannel" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_skin" \
cbf2cd4
  --deselect="skimage/data/tests/test_data.py::test_vortex" \
cbf2cd4
  --deselect="skimage/measure/tests/test_blur_effect.py::test_blur_effect_3d" \
cbf2cd4
  --deselect="skimage/registration/tests/test_masked_phase_cross_correlation.py::test_masked_registration_3d_contiguous_mask" \
8b296e8
  --deselect="skimage/io/tests/test_imageio.py::TestSave::test_imsave_roundtrip[shape1-uint16]" \
b44e65c
%ifarch i686
b44e65c
  --deselect="skimage/measure/tests/test_fit.py::test_ellipse_parameter_stability" \
b44e65c
  --deselect="skimage/util/tests/test_regular_grid.py::test_regular_grid_2d_8" \
b44e65c
  --deselect="skimage/util/tests/test_regular_grid.py::test_regular_grid_3d_8" \
b44e65c
%endif
b44e65c
%ifarch s390x 
b44e65c
  --deselect="skimage/io/tests/test_imageio.py::TestSave::test_imsave_roundtrip[shape1-uint16]" \
b44e65c
  --deselect="skimage/io/tests/test_pil.py::test_all_mono" \
b44e65c
  --deselect="skimage/measure/tests/test_moments.py::test_analytical_moments_calculation[3-1-float32]" \
b44e65c
%endif
01bb44d
%ifarch riscv64
01bb44d
  --deselect="skimage/measure/tests/test_moments.py::test_analytical_moments_calculation[2-1-float32]" \
01bb44d
%endif
a04752a
 skimage
Sergio Pascual 35d399c
popd
a04752a
%endif
cea8ea4
cbf2cd4
%files -n python3-%{srcname} -f %{pyproject_files}
1909b02
%doc CONTRIBUTORS.txt RELEASE.txt
Sergio Pascual 6ab6891
%license LICENSE.txt
Sergio Pascual 5292e2d
cea8ea4
Sergio Pascual 5292e2d
%changelog
a671d22
* Sun Apr 28 2024 Orion Poplawski <orion@nwra.com> - 0.23.2-1
a671d22
- Update to 0.23.2
a671d22
01bb44d
* Wed Feb 21 2024 Songsong Zhang <U2FsdGVkX1@gmail.com> - 0.22.0-5
01bb44d
- Add riscv64 support
01bb44d
c540b10
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-4
c540b10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c540b10
39c0667
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3
39c0667
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
39c0667
c7d75fd
* Sat Oct 28 2023 Sergio Pascual <sergiopr@fedoraproject.org> - 0.22.0-2
8b296e8
- New upstream source
8b296e8
9d670da
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-4
9d670da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9d670da
b44e65c
* Tue Jul 11 2023 Sergio Pascual <sergiopr@fedoraproject.org> - 0.21.0-3
b44e65c
- Disable some tests failling in i686 and s390x
b44e65c
cea15ba
* Mon Jul 10 2023 Python Maint <python-maint@redhat.com> - 0.21.0-2
cea15ba
- Rebuilt for Python 3.12
cea15ba
cbf2cd4
* Sat Jun 03 2023 Orion Poplawski <orion@nwra.com> - 0.21.0-1
cbf2cd4
- Update to 0.21.0
cbf2cd4
- Use SPDX License
cbf2cd4
- Enable tests
cbf2cd4
- skivi was removed in 0.20.0, so dropped the scikit-image-tools package
cbf2cd4
dd930b0
* Sat Jun 03 2023 Orion Poplawski <orion@nwra.com> - 0.19.3-1
dd930b0
- Update to 0.19.3
dd930b0
d5265a8
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.3-2
d5265a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d5265a8
68a48bd
* Wed Aug 03 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 0.19.3-1
68a48bd
- New upstream version (0.19.3)
68a48bd
7ee797f
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.2-3
7ee797f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7ee797f
e6a3e9a
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 0.19.2-2
e6a3e9a
- Rebuilt for Python 3.11
e6a3e9a
d9c451e
* Wed Feb 23 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 0.19.2-1
d9c451e
- New upstream version (0.19.2)
d9c451e
- New BuildReq: pythran
d9c451e
b65b042
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.3-2
b65b042
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b65b042
5ad26b3
* Thu Oct 07 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.3-1
5ad26b3
- New upstream version (0.18.3)
5ad26b3
def065d
* Mon Aug 23 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.2-1
def065d
- New upstream version (0.18.2)
def065d
9d47455
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-5
9d47455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9d47455
47344ed
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.18.1-4
47344ed
- Rebuilt for Python 3.10
47344ed
5ad26b3
* Thu Feb 11 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.1-3
a04752a
- Update testing
a04752a
- Start using automatic requires
a04752a
43a0e08
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-2
43a0e08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
43a0e08
7bd6f8d
* Mon Jan 11 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.1-1
7bd6f8d
- New upstream version (0.18.1)
7bd6f8d
c1dc46b
* Thu Dec 17 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.18.0-1
c1dc46b
- New upstream version (0.18.0)
c1dc46b
31fc555
* Thu Aug 27 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.17.2-1
31fc555
- New upstream version (0.17.2)
31fc555
3b0b0ab
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.2-5
3b0b0ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3b0b0ab
0b5e3db
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.16.2-4
0b5e3db
- Rebuilt for Python 3.9
0b5e3db
97c1a56
* Thu Feb 13 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.16.2-3
97c1a56
- Update dep on python3-networkx (no longer provides python3-networkx-core in F32+)
97c1a56
9513217
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.2-2
9513217
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9513217
96a2a17
* Tue Oct 22 2019 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.16.2-1
96a2a17
- Update to 0.16.2 (#1763989)
96a2a17
+
a8444f1
* Tue Oct 15 2019 Orion Poplawski <orion@nwra.com> - 0.16.1-1
a8444f1
- Update to 0.16.1
a8444f1
- Re-generate Cython source
a8444f1
d3ef7d4
* Thu Sep  5 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.15.0-1
d3ef7d4
- Rebuilt with fixed python-pywt
d3ef7d4
73d4464
* Sat Aug 31 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.15.0-1
73d4464
- New upstream version (0.15.0)
73d4464
e4f9bfa
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.2-3
e4f9bfa
- Rebuilt for Python 3.8
e4f9bfa
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