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:
committed by
Git OBS Bridge
parent
0745214851
commit
9da95ed465
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user