From 72b4c27d2a84afa8926eaf375a10a4eea1f0ecf2c464449fcd4e0e0d6e02d7fe Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 30 Jun 2023 15:00:55 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=29 --- python-imageio-rpmlintrc | 1 - python-imageio.changes | 5 +++++ python-imageio.spec | 19 +++++++++---------- 3 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 python-imageio-rpmlintrc diff --git a/python-imageio-rpmlintrc b/python-imageio-rpmlintrc deleted file mode 100644 index 3a5cdb9..0000000 --- a/python-imageio-rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -addFilter("zero-length /usr/lib/python.*/site-packages/imageio/resources/shipped_resources_go_here") \ No newline at end of file diff --git a/python-imageio.changes b/python-imageio.changes index 176a6be..c016608 100644 --- a/python-imageio.changes +++ b/python-imageio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 30 14:59:22 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Fri Jun 30 14:22:20 UTC 2023 - Markéta Machová diff --git a/python-imageio.spec b/python-imageio.spec index ea4903c..2063bf2 100644 --- a/python-imageio.spec +++ b/python-imageio.spec @@ -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}