diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:05:54 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:05:54 +0000 |
| commit | c0c04708037ef15797bb2d70725441d8673cc9b9 (patch) | |
| tree | e434a12911e66f360c53e64a44d402ef99944d5e | |
| parent | 5e240778b367c3b25b199a84ea5be98784a166e4 (diff) | |
automatic import of python-imageio
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-imageio.spec | 207 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 209 insertions, 0 deletions
@@ -0,0 +1 @@ +/imageio-2.27.0.tar.gz 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 @@ -0,0 +1 @@ +7f9b836f384e24c6364d63ce7c573cf4 imageio-2.27.0.tar.gz |
