mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
* Fix: mpv
* Bump release
* silly funny f41
---------
(cherry picked from commit 7c173aabd4)
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
%define debug_package %nil
|
||||
%global pypi_name mpv
|
||||
%global _desc 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.
|
||||
|
||||
Name: python3-mpv
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.0.8
|
||||
Release: 1%?dist
|
||||
Release: 2%?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
|
||||
@@ -10,31 +12,57 @@ Source0: https://github.com/jaseg/python-mpv/archive/refs/tags/v%version.tar.gz
|
||||
Requires: mpv-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3-pip
|
||||
|
||||
%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.
|
||||
%_desc
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%_desc
|
||||
|
||||
%prep
|
||||
%autosetup -n python-mpv-%version
|
||||
%if 0%{?fedora} <= 41 || 0%{?rhel}
|
||||
cat<<EOL > setup.py
|
||||
from setuptools import setup
|
||||
|
||||
setup()
|
||||
EOL
|
||||
%endif
|
||||
|
||||
%build
|
||||
%if 0%{?fedora} <= 41 || 0%{?rhel}
|
||||
%py3_build
|
||||
%else
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%{?fedora} <= 41 || 0%{?rhel}
|
||||
%py3_install
|
||||
%else
|
||||
%pyproject_install
|
||||
%pyproject_save_files mpv
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} <= 41 || 0%{?rhel}
|
||||
%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
|
||||
%else
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%license LICENSE.GPL LICENSE.LGPL
|
||||
%ghost %python3_sitelib/__pycache__/mpv.cpython-*.pyc
|
||||
%python3_sitelib/mpv.py
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
Reference in New Issue
Block a user