diff --git a/.gitignore b/.gitignore index e247ef5..1e7f610 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /imageio-2.9.0.tar.gz +/imageio-2.22.4.tar.gz diff --git a/python-imageio.spec b/python-imageio.spec index 84cf5a3..3093feb 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -1,9 +1,8 @@ - %global srcname imageio Name: python-%{srcname} -Version: 2.9.0 -Release: 6%{?dist} +Version: 2.22.4 +Release: 1%{?dist} Summary: Python IO of image, video, scientific, and volumetric data formats. License: BSD URL: https://imageio.github.io @@ -11,44 +10,46 @@ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -# testing -# BuildRequires: python3-pytest -# BuildRequires: python3-numpy -%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. +%global _description %{expand: +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.} + +%description %_description %package -n python3-%{srcname} -Summary: Python IO of image, video, scientific, and volumetric data formats. -BuildRequires: python3-devel python3-setuptools +Summary: %{summary} +BuildRequires: python3-setuptools %description -n python3-%{srcname} -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. +%_description %prep %autosetup -n %{srcname}-%{version} +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install + +%pyproject_save_files imageio +%check # Testing requires image sample, either local or from the internet -# %%check -# export IMAGEIO_NO_INTERNET="1" -# %%pytest --ignore=tests/test_ffmpeg.py --ignore=tests/test_ffmpeg_info.py tests/ - -%files -n python3-%{srcname} -%doc README.md -%license LICENSE -# Downloads binary freeimage library +%pyproject_check_import -t + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md +# Exclude files that download binary freeimage library %exclude %{_bindir}/imageio* -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-*.egg-info %changelog +* Mon Nov 14 2022 Sergio Pascual - 2.22.4-1 +- New upstream source (2.22.4) + * Fri Jul 22 2022 Fedora Release Engineering - 2.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 1bb0404..3737d17 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (imageio-2.9.0.tar.gz) = 07fce90f25393c5bdede52b04fc8175764226bdb47546fd304f947ff8cc006477c6edb9b96f3dcb11e9e137b72a89f5d25c3652e71853c92100aa91140312179 +SHA512 (imageio-2.22.4.tar.gz) = 0232733d0b5cdba75e0e25878c94b9461c8b33d1a58cecb8d6cdb3dca315c4ba38327f1955290de55779cfabbd9d8a3082187108452bc8ae9971c8dd57037b4d