- Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=29
This commit is contained in:
parent
2d2cf96545
commit
72b4c27d2a
@ -1 +0,0 @@
|
||||
addFilter("zero-length /usr/lib/python.*/site-packages/imageio/resources/shipped_resources_go_here")
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 30 14:59:22 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Clean up SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 30 14:22:20 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%bcond_with test_extras
|
||||
Name: python-imageio
|
||||
@ -26,29 +25,30 @@ Summary: Python library for reading and writing image, video, and related
|
||||
License: BSD-2-Clause
|
||||
URL: https://imageio.github.io/
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.tar.gz
|
||||
Source1: python-imageio-rpmlintrc
|
||||
BuildRequires: %{python_module Pillow >= 8.3.2}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module numpy >= 1.20.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pillow >= 8.3.2
|
||||
Requires: python-numpy >= 1.20.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: libfreeimageplus3
|
||||
Recommends: python-imageio-ffmpeg
|
||||
Recommends: python-psutil
|
||||
Suggests: python-astropy
|
||||
Suggests: python-av
|
||||
Suggests: python-tifffile
|
||||
# not in openSUSE (yet)
|
||||
Suggests: python-simpleitk
|
||||
Suggests: python-tifffile
|
||||
BuildArch: noarch
|
||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||
# GDAL is not (yet) singlespec
|
||||
Suggests: python3-GDAL
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: libfreeimageplus3
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module fsspec}
|
||||
BuildRequires: %{python_module imageio-ffmpeg}
|
||||
@ -62,7 +62,6 @@ BuildRequires: %{python_module tifffile}
|
||||
BuildRequires: python3-GDAL
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -81,11 +80,11 @@ done
|
||||
|
||||
%build
|
||||
export IMAGEIO_NO_INTERNET=1
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export IMAGEIO_NO_INTERNET=1
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/imageio_remove_bin
|
||||
%python_clone -a %{buildroot}%{_bindir}/imageio_download_bin
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
Loading…
x
Reference in New Issue
Block a user