- Switch to pyproject and autosetup macros.
- Add patch remove-future-requirement.patch, reove future requirement. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ffmpeg-python?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ffmpeg-python
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-ffmpeg-python
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
@@ -24,14 +23,16 @@ Summary: Python bindings for FFmpeg
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/kkroening/ffmpeg-python
|
||||
Source: https://github.com/kkroening/ffmpeg-python/archive/%{version}.tar.gz#/ffmpeg-python-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#kkroening/ffmpeg-python#233
|
||||
Patch0: remove-future-requirement.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
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}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: ffmpeg
|
||||
@@ -42,17 +43,17 @@ BuildRequires: ffmpeg
|
||||
Python bindings for FFmpeg - with complex filtering support
|
||||
|
||||
%prep
|
||||
%setup -q -n ffmpeg-python-%{version}
|
||||
%autosetup -p1 -n ffmpeg-python-%{version}
|
||||
# https://github.com/kkroening/ffmpeg-python/issues/617
|
||||
sed -i 's:pytest-runner::' setup.py
|
||||
# https://github.com/kkroening/ffmpeg-python/issues/624
|
||||
sed -i 's/collections.Iterable/collections.abc.Iterable/' ffmpeg/_run.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -65,6 +66,6 @@ sed -i 's/collections.Iterable/collections.abc.Iterable/' ffmpeg/_run.py
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/ffmpeg
|
||||
%{python_sitelib}/ffmpeg_python-%{version}*-info
|
||||
%{python_sitelib}/ffmpeg_python-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user