SHA256
15
0
forked from pool/python-av

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
This commit is contained in:
Tomáš Chvátal
2020-05-28 07:32:29 +00:00
committed by Git OBS Bridge
parent 0745214851
commit 9da95ed465
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:11 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Sat Mar 14 08:45:07 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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