summaryrefslogtreecommitdiff
path: root/python-imageio.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-imageio.spec')
-rw-r--r--python-imageio.spec207
1 files changed, 207 insertions, 0 deletions
diff --git a/python-imageio.spec b/python-imageio.spec
new file mode 100644
index 0000000..02f472b
--- /dev/null
+++ b/python-imageio.spec
@@ -0,0 +1,207 @@
+%global _empty_manifest_terminate_build 0
+Name: python-imageio
+Version: 2.27.0
+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: https://mirrors.nju.edu.cn/pypi/web/packages/b5/d5/4c72159bfabe71b083bf497ab9054d3cdade154b79effee8d5b6b81c144c/imageio-2.27.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-pillow
+Requires: python3-astropy
+Requires: python3-av
+Requires: python3-imageio-ffmpeg
+Requires: python3-psutil
+Requires: python3-tifffile
+Requires: python3-av
+Requires: python3-imageio-ffmpeg
+Requires: python3-psutil
+Requires: python3-tifffile
+Requires: python3-wheel
+Requires: python3-invoke
+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-invoke
+Requires: python3-itk
+Requires: python3-numpydoc
+Requires: python3-psutil
+Requires: python3-pydata-sphinx-theme
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-sphinx
+Requires: python3-tifffile
+Requires: python3-wheel
+Requires: python3-gdal
+Requires: python3-itk
+Requires: python3-black
+Requires: python3-flake8
+Requires: python3-av
+Requires: python3-invoke
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-fsspec[github]
+Requires: python3-tifffile
+
+%description
+
+.. image:: https://github.com/imageio/imageio/workflows/CI/badge.svg
+ :target: https://github.com/imageio/imageio/actions
+
+
+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.5+,
+and is easy to install.
+
+Main website: https://imageio.readthedocs.io/
+
+
+Release notes: https://github.com/imageio/imageio/blob/master/CHANGELOG.md
+
+Example:
+
+.. code-block:: python
+
+ >>> import imageio
+ >>> im = imageio.imread('imageio:astronaut.png')
+ >>> im.shape # im is a numpy array
+ (512, 512, 3)
+ >>> imageio.imwrite('astronaut-gray.jpg', im[:, :, 0])
+
+See the `API Reference <https://imageio.readthedocs.io/en/stable/reference/index.html>`_
+or `examples <https://imageio.readthedocs.io/en/stable/examples.html>`_
+for more information.
+
+
+%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
+%description -n python3-imageio
+
+.. image:: https://github.com/imageio/imageio/workflows/CI/badge.svg
+ :target: https://github.com/imageio/imageio/actions
+
+
+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.5+,
+and is easy to install.
+
+Main website: https://imageio.readthedocs.io/
+
+
+Release notes: https://github.com/imageio/imageio/blob/master/CHANGELOG.md
+
+Example:
+
+.. code-block:: python
+
+ >>> import imageio
+ >>> im = imageio.imread('imageio:astronaut.png')
+ >>> im.shape # im is a numpy array
+ (512, 512, 3)
+ >>> imageio.imwrite('astronaut-gray.jpg', im[:, :, 0])
+
+See the `API Reference <https://imageio.readthedocs.io/en/stable/reference/index.html>`_
+or `examples <https://imageio.readthedocs.io/en/stable/examples.html>`_
+for more information.
+
+
+%package help
+Summary: Development documents and examples for imageio
+Provides: python3-imageio-doc
+%description help
+
+.. image:: https://github.com/imageio/imageio/workflows/CI/badge.svg
+ :target: https://github.com/imageio/imageio/actions
+
+
+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.5+,
+and is easy to install.
+
+Main website: https://imageio.readthedocs.io/
+
+
+Release notes: https://github.com/imageio/imageio/blob/master/CHANGELOG.md
+
+Example:
+
+.. code-block:: python
+
+ >>> import imageio
+ >>> im = imageio.imread('imageio:astronaut.png')
+ >>> im.shape # im is a numpy array
+ (512, 512, 3)
+ >>> imageio.imwrite('astronaut-gray.jpg', im[:, :, 0])
+
+See the `API Reference <https://imageio.readthedocs.io/en/stable/reference/index.html>`_
+or `examples <https://imageio.readthedocs.io/en/stable/examples.html>`_
+for more information.
+
+
+%prep
+%autosetup -n imageio-2.27.0
+
+%build
+%py3_build
+
+%install
+%py3_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}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+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
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.27.0-1
+- Package Spec generated