1
0

Accepting request 808757 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808757
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal 2020-05-25 13:34:25 +00:00 committed by Git OBS Bridge
parent acd53791aa
commit 1daf82d201
2 changed files with 15 additions and 1 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 23 10:58:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Thu Apr 23 10:58:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -54,6 +54,8 @@ BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
Requires: python-numpy >= 1.11.3 Requires: python-numpy >= 1.11.3
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-Pillow Recommends: python-Pillow
Recommends: python-blosc Recommends: python-blosc
Recommends: python-lz4 Recommends: python-lz4
@ -83,6 +85,7 @@ export CFLAGS="%{optflags}"
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/imagecodecs
%{python_expand rm -rf %{buildroot}%{$python_sitearch}/imagecodecs/licenses/ %{python_expand rm -rf %{buildroot}%{$python_sitearch}/imagecodecs/licenses/
%fdupes %{buildroot}%{$python_sitearch} %fdupes %{buildroot}%{$python_sitearch}
} }
@ -94,10 +97,16 @@ mv imagecodecs __imagecodecs
%pytest_arch tests %pytest_arch tests
mv __imagecodecs imagecodecs mv __imagecodecs imagecodecs
%post
%python_install_alternative imagecodecs
%postun
%python_uninstall_alternative imagecodecs
%files %{python_files} %files %{python_files}
%license LICENSE imagecodecs/licenses/* %license LICENSE imagecodecs/licenses/*
%doc README.rst %doc README.rst
%python3_only %{_bindir}/imagecodecs %python_alternative %{_bindir}/imagecodecs
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog