- Add missing runtime dependency on python-future OBS-URL: https://build.opensuse.org/request/show/785711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ffmpeg-python?expand=0&rev=3
67 lines
2.0 KiB
RPMSpec
67 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-ffmpeg-python
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-ffmpeg-python
|
|
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
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module future}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-runner}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: ffmpeg
|
|
# /SECTION
|
|
Requires: python-future
|
|
Recommends: ffmpeg
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python bindings for FFmpeg - with complex filtering support
|
|
|
|
%prep
|
|
%setup -q -n ffmpeg-python-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%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)'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/ffmpeg*
|
|
|
|
%changelog
|