forked from pool/python-python-mpv
- Update to version v1.0.2 * Update license header with dual-license information * Update package metadata * Migrate away from setup.py and use PEP 612-style pyproject.toml * Update setup.cfg for new syntax * Fix typo in repr format string * tests: Add strategic sleeps to reduce likelihood of race condition during test teardown * Fix package upgrade * Cleanup pipeline * Skip Python 3.7 * Add Windows test * Run on Python 3.7 - 3.10 * Rename job * Use newer actions * Skip unreliable test in CI * Use xvfb-run to run tests * Upgrade pip * Remove starter * Remove unused variables * Use two blank lines between classes and functions * Comment error prone test * Fix environment variable * Start Xvfb before running tests * Add test workflow * Add requirements file * Remove unused imports * Fix show_text level default parameter * Fix observe_property() docstring * Fix external subtitles example * Fix typo in function name * Update branch name references * Error for known-incompatible libmpv * Fix license field in setup.py - Switch to new license OBS-URL: https://build.opensuse.org/request/show/1067836 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpv?expand=0&rev=32
62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-python-mpv
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-python-mpv
|
|
Version: 1.0.2
|
|
Release: 0
|
|
Summary: Python interface to the mpv media player
|
|
License: GPL-2.0-or-later OR LGPL-2.1-or-later
|
|
URL: https://github.com/jaseg/python-mpv
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/python-mpv-%{version}.tar.gz
|
|
Source99: %{name}-rpmlintrc
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# Needed to be able to set the proper dependency to the library
|
|
BuildRequires: mpv-devel
|
|
# workaround via define needed as python_ubpackages wants to interpret Requires: lines
|
|
%define libmpv %(rpm -qf $(readlink -f %{_libdir}/libmpv.so) --qf "%%{name}")
|
|
Requires: %libmpv
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A ctypes-based python interface to the mpv media player.
|
|
It gives more or less full control of all features of the player,
|
|
just like the lua interface does.
|
|
|
|
%prep
|
|
%setup -q -n python-mpv-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.GPL LICENSE.LGPL
|
|
%doc README.rst
|
|
%{python_sitelib}/mpv.py
|
|
%{python_sitelib}/__pycache__/mpv.cpython*
|
|
%{python_sitelib}/python_mpv-%{version}.dist-info
|
|
|
|
%changelog
|