15
0

Accepting request 808788 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808788
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imageio?expand=0&rev=9
This commit is contained in:
2020-06-05 17:58:40 +00:00
committed by Git OBS Bridge
2 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:24 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Apr 9 13:50:54 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -37,6 +37,8 @@ BuildRequires: python-rpm-macros
Requires: python-Pillow
Requires: python-imageio-ffmpeg
Requires: python-numpy
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: libfreeimageplus3
BuildArch: noarch
%python_subpackages
@@ -62,17 +64,27 @@ export IMAGEIO_NO_INTERNET=1
%install
export IMAGEIO_NO_INTERNET=1
%python_install
%python_clone -a %{buildroot}%{_bindir}/imageio_remove_bin
%python_clone -a %{buildroot}%{_bindir}/imageio_download_bin
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export IMAGEIO_NO_INTERNET=1
%pytest -k "not test_fei_file_fail and not test_ffmpeg and not test_series_unclosed and not test_import_dependencies"
%post
%python_install_alternative imageio_remove_bin
%python_install_alternative imageio_download_bin
%postun
%python_uninstall_alternative imageio_remove_bin
%python_uninstall_alternative imageio_download_bin
%files %{python_files}
%license LICENSE
%doc CONTRIBUTORS.txt README.md
%{python_sitelib}/*
%python3_only %{_bindir}/imageio_download_bin
%python3_only %{_bindir}/imageio_remove_bin
%python_alternative %{_bindir}/imageio_download_bin
%python_alternative %{_bindir}/imageio_remove_bin
%changelog