Hello community, here is the log from the commit of package python-av for openSUSE:Factory checked in at 2020-06-10 00:42:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-av (Old) and /work/SRC/openSUSE:Factory/.python-av.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-av" Wed Jun 10 00:42:55 2020 rev:5 rq:809808 version:7.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-av/python-av.changes 2020-03-22 14:17:36.818073890 +0100 +++ /work/SRC/openSUSE:Factory/.python-av.new.3606/python-av.changes 2020-06-10 00:43:02.162126744 +0200 @@ -1,0 +2,5 @@ +Wed May 27 09:36:11 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-av.spec ++++++ --- /var/tmp/diff_new_pack.2Y9Ro8/_old 2020-06-10 00:43:04.342132460 +0200 +++ /var/tmp/diff_new_pack.2Y9Ro8/_new 2020-06-10 00:43:04.346132471 +0200 @@ -28,6 +28,7 @@ BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module nose} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: pkgconfig @@ -36,7 +37,8 @@ BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libavutil) Requires: python-setuptools -BuildRequires: %{python_module numpy} +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -50,16 +52,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pyav %python_expand %fdupes %{buildroot}%{$python_sitearch} %check # Sadly needs full ffmpeg with all the codec support so we have to skip #%%python_exec setup.py test +%post +%python_install_alternative pyav + +%postun +%python_uninstall_alternative pyav + %files %{python_files} %license LICENSE.txt %doc README.md -%python3_only %{_bindir}/pyav +%python_alternative %{_bindir}/pyav %{python_sitearch}/av %{python_sitearch}/av-%{version}-py%{python_version}.egg-info
