From 6d1006e1e47b8dcc77ee650cdd86934af8f970ce Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Feb 11 2021 00:02:16 +0000 Subject: Initial import (#1925053). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e247ef5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/imageio-2.9.0.tar.gz diff --git a/python-imageio.spec b/python-imageio.spec new file mode 100644 index 0000000..1067d2d --- /dev/null +++ b/python-imageio.spec @@ -0,0 +1,54 @@ + +%global srcname imageio + +Name: python-%{srcname} +Version: 2.9.0 +Release: 1%{?dist} +Summary: Python IO of image, video, scientific, and volumetric data formats. +License: BSD +URL: https://imageio.github.io +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. + +%package -n python3-%{srcname} +Summary: Python IO of image, video, scientific, and volumetric data formats. +BuildRequires: python3-devel 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. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +# 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 +%exclude %{_bindir}/imageio* +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-*.egg-info + +%changelog +* Wed Feb 03 2021 Sergio Pascual - 2.9.0-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..1bb0404 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (imageio-2.9.0.tar.gz) = 07fce90f25393c5bdede52b04fc8175764226bdb47546fd304f947ff8cc006477c6edb9b96f3dcb11e9e137b72a89f5d25c3652e71853c92100aa91140312179