Blame python-imageio.spec
Branch: b1808f4d9e0b00b8e9a4304ba51d3437a51e408a
Sergio Pascual
6d1006e
%global srcname imageio
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
Name: python-%{srcname}
Sergio Pascual
b1808f4
Version: 2.31.1
Sergio Pascual
765343e
Release: %autorelease
Sergio Pascual
6d1006e
Summary: Python IO of image, video, scientific, and volumetric data formats.
Sergio Pascual
765343e
License: BSD-2-Clause
Sergio Pascual
6d1006e
URL: https://imageio.github.io
Sergio Pascual
6d1006e
Source0: %{pypi_source}
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
BuildArch: noarch
Sergio Pascual
6d1006e
BuildRequires: python3-devel
Sergio Pascual
6d1006e
Sergio Pascual
7085894
%global _description %{expand:
Sergio Pascual
7085894
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.}
Sergio Pascual
7085894
Sergio Pascual
7085894
%description %_description
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
%package -n python3-%{srcname}
Sergio Pascual
7085894
Summary: %{summary}
Sergio Pascual
7085894
BuildRequires: python3-setuptools
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
%description -n python3-%{srcname}
Sergio Pascual
7085894
%_description
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
%prep
Sergio Pascual
6d1006e
%autosetup -n %{srcname}-%{version}
Sergio Pascual
6d1006e
Sergio Pascual
7085894
%generate_buildrequires
Sergio Pascual
7085894
%pyproject_buildrequires
Sergio Pascual
7085894
Sergio Pascual
6d1006e
%build
Sergio Pascual
7085894
%pyproject_wheel
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
%install
Sergio Pascual
7085894
%pyproject_install
Sergio Pascual
7085894
Sergio Pascual
7085894
%pyproject_save_files imageio
Sergio Pascual
6d1006e
Sergio Pascual
7085894
%check
Sergio Pascual
6d1006e
# Testing requires image sample, either local or from the internet
Sergio Pascual
7085894
%pyproject_check_import -t
Sergio Pascual
7085894
Sergio Pascual
7085894
%files -n python3-%{srcname} -f %{pyproject_files}
Sergio Pascual
7085894
%doc README.md
Sergio Pascual
7085894
# Exclude files that download binary freeimage library
Sergio Pascual
6d1006e
%exclude %{_bindir}/imageio*
Sergio Pascual
6d1006e
Sergio Pascual
6d1006e
%changelog
Sergio Pascual
765343e
%autochangelog