2019-04-16 10:04:47 +00:00
|
|
|
#
|
2019-04-16 10:23:58 +00:00
|
|
|
# spec file for package python-av
|
2019-04-16 10:04:47 +00:00
|
|
|
#
|
2020-02-24 01:50:14 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-04-16 10:04:47 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-04-16 10:23:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-04-16 10:04:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-av
|
2020-02-24 01:50:14 +00:00
|
|
|
Version: 7.0.1
|
2019-04-16 10:04:47 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python bindings for FFmpeg's libraries
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2019-04-16 10:23:58 +00:00
|
|
|
URL: https://github.com/mikeboers/PyAV
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/av/av-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module Cython}
|
2019-04-16 10:04:47 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2019-04-16 10:23:58 +00:00
|
|
|
BuildRequires: %{python_module nose}
|
2019-04-16 10:04:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2019-04-16 10:23:58 +00:00
|
|
|
BuildRequires: pkgconfig
|
2019-04-16 10:04:47 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-16 10:23:58 +00:00
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
|
|
|
|
BuildRequires: pkgconfig(libavfilter)
|
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
BuildRequires: %{python_module numpy}
|
2019-04-16 10:04:47 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Pythonic bindings for FFmpeg's libraries.
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-04-16 10:23:58 +00:00
|
|
|
%setup -q -n av-%{version}
|
2019-04-16 10:04:47 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2019-04-16 10:23:58 +00:00
|
|
|
%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
|
2019-04-16 10:04:47 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE.txt
|
2019-04-16 10:23:58 +00:00
|
|
|
%doc README.md
|
|
|
|
|
%python3_only %{_bindir}/pyav
|
2019-04-16 10:04:47 +00:00
|
|
|
%{python_sitearch}/av
|
2020-03-14 08:45:20 +00:00
|
|
|
%{python_sitearch}/av-%{version}-py%{python_version}.egg-info
|
2019-04-16 10:04:47 +00:00
|
|
|
|
|
|
|
|
%changelog
|