From 127d14ace0523b75596a2014ae9ba2051d45e78a Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 3 Jan 2024 01:44:13 +0900 Subject: [PATCH] add: python3-mpv (#858) * add: python3-mpv * Update python-mpv.spec * files Signed-off-by: madomado * Update python-mpv.spec Signed-off-by: madomado * Update python-mpv.spec Signed-off-by: madomado * add missing runtime dependency (mpv-devel) --------- Signed-off-by: madomado Co-authored-by: infinitebash --- anda/langs/python/mpv/anda.hcl | 5 ++++ anda/langs/python/mpv/python-mpv.spec | 40 +++++++++++++++++++++++++++ anda/langs/python/mpv/update.rhai | 1 + 3 files changed, 46 insertions(+) create mode 100644 anda/langs/python/mpv/anda.hcl create mode 100644 anda/langs/python/mpv/python-mpv.spec create mode 100644 anda/langs/python/mpv/update.rhai diff --git a/anda/langs/python/mpv/anda.hcl b/anda/langs/python/mpv/anda.hcl new file mode 100644 index 0000000000..78b5dbc445 --- /dev/null +++ b/anda/langs/python/mpv/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "python-mpv.spec" + } +} diff --git a/anda/langs/python/mpv/python-mpv.spec b/anda/langs/python/mpv/python-mpv.spec new file mode 100644 index 0000000000..779d243f44 --- /dev/null +++ b/anda/langs/python/mpv/python-mpv.spec @@ -0,0 +1,40 @@ +%define debug_package %nil + +Name: python3-mpv +Version: 1.0.5 +Release: 1%{?dist} +Summary: Python interface to the awesome mpv media player +License: GPL-2.0+ OR LGPL-2.1+ +URL: https://github.com/jaseg/python-mpv +Source0: https://github.com/jaseg/python-mpv/archive/refs/tags/v%version.tar.gz +Requires: mpv-devel +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +python-mpv is a ctypes-based python interface to the mpv media player. +It gives you more or less full control of all features of the player, just as the lua interface does. + +%prep +%autosetup -n python-mpv-%version +cat< setup.py +from setuptools import setup + +setup() +EOL + +%build +%py3_build + +%install +%py3_install + +%files +%doc README.rst +%license LICENSE.GPL LICENSE.LGPL +%ghost %python3_sitelib/__pycache__/mpv.cpython-*.pyc +%python3_sitelib/mpv-%version-py%python3_version.egg-info/ +%python3_sitelib/mpv.py + +%changelog +%autochangelog diff --git a/anda/langs/python/mpv/update.rhai b/anda/langs/python/mpv/update.rhai new file mode 100644 index 0000000000..838b801614 --- /dev/null +++ b/anda/langs/python/mpv/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("jaseg/python-mpv"));