%global _empty_manifest_terminate_build 0
Name:		python-imageio
Version:	2.37.3
Release:	1
Summary:	Library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
License:	BSD-2-Clause
URL:		https://github.com/imageio/imageio
Source0:	%{pypi_source imageio}
BuildArch:	noarch

Requires:	(python3-numpy)
Requires:	(python3-pillow)
Requires:	(python3-astropy)
Requires:	(python3-av)
Requires:	(python3-imageio-ffmpeg)
Requires:	(python3-numpy>2)
Requires:	(python3-pillow-heif)
Requires:	(python3-psutil)
Requires:	(python3-rawpy)
Requires:	(python3-tifffile)
Requires:	(python3-av)
Requires:	(python3-imageio-ffmpeg)
Requires:	(python3-pillow-heif)
Requires:	(python3-psutil)
Requires:	(python3-tifffile)
Requires:	(python3-wheel)
Requires:	(python3-pytest)
Requires:	(python3-pytest-cov)
Requires:	(python3-fsspec[github])
Requires:	(python3-black)
Requires:	(python3-flake8)
Requires:	(python3-sphinx)
Requires:	(python3-numpydoc)
Requires:	(python3-pydata-sphinx-theme)
Requires:	(python3-imageio-ffmpeg)
Requires:	(python3-psutil)
Requires:	(python3-astropy)
Requires:	(python3-astropy)
Requires:	(python3-av)
Requires:	(python3-black)
Requires:	(python3-flake8)
Requires:	(python3-fsspec[github])
Requires:	(python3-gdal)
Requires:	(python3-imageio-ffmpeg)
Requires:	(python3-itk)
Requires:	(python3-numpy)
Requires:	(python3-numpydoc)
Requires:	(python3-pillow-heif)
Requires:	(python3-psutil)
Requires:	(python3-pydata-sphinx-theme)
Requires:	(python3-pytest)
Requires:	(python3-pytest-cov)
Requires:	(python3-rawpy)
Requires:	(python3-sphinx)
Requires:	(python3-tifffile)
Requires:	(python3-wheel)
Requires:	(python3-gdal)
Requires:	(python3-itk)
Requires:	(python3-black)
Requires:	(python3-flake8)
Requires:	(python3-pillow-heif)
Requires:	(python3-av)
Requires:	(python3-rawpy)
Requires:	(python3-numpy)
Requires:	(python3-pytest)
Requires:	(python3-pytest-cov)
Requires:	(python3-fsspec[github])
Requires:	(python3-tifffile)

%description
Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, volumetric
data, and scientific formats. It is cross-platform, runs on Python 3.9+,
and is easy to install.

%package -n python3-imageio
Summary:	Library for reading and writing a wide range of image, video, scientific, and volumetric data formats.
Provides:	python-imageio
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
%description -n python3-imageio
Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, volumetric
data, and scientific formats. It is cross-platform, runs on Python 3.9+,
and is easy to install.

%prep
%autosetup -n imageio-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
touch filelist.lst
if [ -d usr/lib64 ]; then
	find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
	find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
	find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .

%files -n python3-imageio -f filelist.lst
%{python3_sitelib}/*
%{_docdir}/*
%changelog
* Fri Jul 03 2026 lilu_ll <lilu@kylinos.cn> - 2.37.3-1
- Update package to version 2.37.3
  * Bump psf/black (dev dependency) to fix security vulnerability

* Thu May 08 2025 Python_Bot <Python_Bot@openeuler.org> - 2.37.0-1
- Package Spec generated