SHA256
15
0
forked from pool/python-av

- Fix the spec file to adhere requirements

- Do not use service and fetch files from pypi

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-av?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2019-04-16 10:23:58 +00:00
committed by Git OBS Bridge
parent 1d01cf85b7
commit 6b3bbfc4a5
6 changed files with 31 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-attrs
# spec file for package python-av
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,42 +12,38 @@
# 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/
# Please submit bugfixes or comments via https://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}
URL: https://github.com/mikeboers/PyAV
Source: https://files.pythonhosted.org/packages/source/a/av/av-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: ffmpeg-4-libavdevice-devel
BuildRequires: ffmpeg-4-libavfilter-devel
BuildRequires: ffmpeg-4-libavutil-devel
#BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
%if 0%{?suse_version} < 1500
ExcludeArch: i586
%endif
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libavutil)
Requires: python-setuptools
BuildRequires: %{python_module numpy}
%python_subpackages
%description
Pythonic bindings for FFmpeg's libraries.
http://docs.mikeboers.com/pyav/develop/
%prep
%setup -q -n PyAV-%{version}
%setup -q -n av-%{version}
%build
%python_build
@@ -57,12 +53,16 @@ http://docs.mikeboers.com/pyav/develop/
rm -Rf %{buildroot}%{python2_sitearch}/scratchpad
mkdir -p %{buildroot}%{_datadir}/python3-av
mv %{buildroot}%{python3_sitearch}/scratchpad %{buildroot}%{_datadir}/python3-av
%fdupes %{buildroot}%{_prefix}
%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
%files %{python_files}
%license LICENSE.txt
%doc README.md CHANGELOG.rst AUTHORS.rst
%python3_only %_bindir/pyav
%doc README.md
%python3_only %{_bindir}/pyav
%python3_only %{_datadir}/python3-av
%{python_sitearch}/av
%{python_sitearch}/av-%{version}-py%{py_ver}.egg-info