From 6be36b22de416cb65b1e6938a074b5efb52f33a0 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 15 Jan 2026 20:22:34 -0800 Subject: [PATCH] add: ffmpeg-python (#9239) (#9249) --- anda/langs/python/ffmpeg-python/anda.hcl | 6 +++ .../python/ffmpeg-python/ffmpeg-python.spec | 47 +++++++++++++++++++ anda/langs/python/ffmpeg-python/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/ffmpeg-python/anda.hcl create mode 100644 anda/langs/python/ffmpeg-python/ffmpeg-python.spec create mode 100644 anda/langs/python/ffmpeg-python/update.rhai diff --git a/anda/langs/python/ffmpeg-python/anda.hcl b/anda/langs/python/ffmpeg-python/anda.hcl new file mode 100644 index 0000000000..372f9a9523 --- /dev/null +++ b/anda/langs/python/ffmpeg-python/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "ffmpeg-python.spec" + } +} diff --git a/anda/langs/python/ffmpeg-python/ffmpeg-python.spec b/anda/langs/python/ffmpeg-python/ffmpeg-python.spec new file mode 100644 index 0000000000..6f7f0c3a43 --- /dev/null +++ b/anda/langs/python/ffmpeg-python/ffmpeg-python.spec @@ -0,0 +1,47 @@ +%global pypi_name ffmpeg-python +%global _desc Python bindings for FFmpeg - with complex filtering support. + +Name: python-%{pypi_name} +Version: 0.2.0 +Release: 1%?dist +Summary: Python bindings for FFmpeg - with complex filtering support +License: Apache-2.0 +URL: https://github.com/kkroening/ffmpeg-python +Source0: %url/archive/refs/tags/%version.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-build +BuildRequires: python3-wheel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n ffmpeg-python-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files ffmpeg + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Thu Jan 15 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/ffmpeg-python/update.rhai b/anda/langs/python/ffmpeg-python/update.rhai new file mode 100644 index 0000000000..6320b85a59 --- /dev/null +++ b/anda/langs/python/ffmpeg-python/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("ffmpeg-python"));