%global modname ffmpeg %global projname %{modname}-python # Tests require ffmpeg with MPEG4/H264 decoding abilities - # disable them by default %bcond_with tests Name: python-%{modname} Version: 0.2.0 Release: %autorelease Summary: Python bindings for FFmpeg - with complex filtering support License: Apache-2.0 URL: https://github.com/kkroening/%{projname} Source0: %{url}/archive/refs/tags/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: /usr/bin/ffmpeg %endif %global _description %{expand: There are tons of Python FFmpeg wrappers out there but they seem to lack complex filter support. ffmpeg-python works well for simple as well as complex signal graphs.} %description %_description %package -n python3-%{modname} Summary: %{summary} Requires: /usr/bin/ffmpeg %description -n python3-%{modname} %_description %prep %autosetup -n %{projname}-%{version} %generate_buildrequires %if %{with tests} %pyproject_buildrequires -t %else %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %if %{with tests} %tox %else %pyproject_check_import %endif %files -n python3-%{modname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog %autochangelog