forked from pool/python-av
initial package version, also used by antlarr, so submitting to devel project OBS-URL: https://build.opensuse.org/request/show/694711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-av?expand=0&rev=1
71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-attrs
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-av
|
|
Version: 6.1.2
|
|
Release: 0
|
|
Summary: Python bindings for FFmpeg's libraries
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/mikeboers/PyAV
|
|
Source: PyAV-%{version}.tar.xz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module Cython}
|
|
BuildRequires: fdupes
|
|
BuildRequires: ffmpeg-4-libavdevice-devel
|
|
BuildRequires: ffmpeg-4-libavfilter-devel
|
|
BuildRequires: ffmpeg-4-libavutil-devel
|
|
#BuildRequires: pkg-config
|
|
BuildRequires: python-rpm-macros
|
|
%if 0%{?suse_version} < 1500
|
|
ExcludeArch: i586
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Pythonic bindings for FFmpeg's libraries.
|
|
|
|
http://docs.mikeboers.com/pyav/develop/
|
|
|
|
%prep
|
|
%setup -q -n PyAV-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
rm -Rf %{buildroot}%{python2_sitearch}/scratchpad
|
|
mkdir -p %{buildroot}%{_datadir}/python3-av
|
|
mv %{buildroot}%{python3_sitearch}/scratchpad %{buildroot}%{_datadir}/python3-av
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.md CHANGELOG.rst AUTHORS.rst
|
|
%python3_only %_bindir/pyav
|
|
%python3_only %{_datadir}/python3-av
|
|
%{python_sitearch}/av
|
|
%{python_sitearch}/av-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|