Accepting request 786746 from devel:languages:python

- Fix build on Leap

OBS-URL: https://build.opensuse.org/request/show/786746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ffmpeg-python?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-03-20 22:57:12 +00:00 committed by Git OBS Bridge
commit 3a785ff1fb
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 20 08:07:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build on Leap
-------------------------------------------------------------------
Mon Mar 16 21:00:48 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@ -23,12 +23,14 @@ Version: 0.2.0
Release: 0
Summary: Python bindings for FFmpeg
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/kkroening/ffmpeg-python
Source: https://github.com/kkroening/ffmpeg-python/archive/%{version}.tar.gz#/ffmpeg-python-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-future
Recommends: ffmpeg
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module future}
BuildRequires: %{python_module pytest-mock}
@ -36,9 +38,6 @@ BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: ffmpeg
# /SECTION
Requires: python-future
Recommends: ffmpeg
BuildArch: noarch
%python_subpackages
%description
@ -55,8 +54,9 @@ Python bindings for FFmpeg - with complex filtering support
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# skip some tests since we do not have ffmpeg with mp4-support on the public OBS instance
%pytest -k 'not (test__run or test__run__multi_output)'
# skip some tests since we do not have FFmpeg with mp4-support on the public OBS instance
# test_pipe - fails on Leap due to too old FFmpeg
%pytest -k 'not (test__run or test__run__multi_output or test_pipe)'
%files %{python_files}
%license LICENSE