From 9da95ed465ba1ba34c37eaba6af71b9cdd64850f6366811547017d71ce68de7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:32:29 +0000 Subject: [PATCH] Accepting request 809562 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809562 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-av?expand=0&rev=10 --- python-av.changes | 5 +++++ python-av.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-av.changes b/python-av.changes index 652f431..26f128a 100644 --- a/python-av.changes +++ b/python-av.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:11 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Sat Mar 14 08:45:07 UTC 2020 - Tomáš Chvátal diff --git a/python-av.spec b/python-av.spec index a2b39ee..6386a84 100644 --- a/python-av.spec +++ b/python-av.spec @@ -28,6 +28,7 @@ Source: https://files.pythonhosted.org/packages/source/a/av/av-%{version 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(libavdevice) 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 @@ Pythonic bindings for FFmpeg's libraries. %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