2017-08-08 09:58:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-python-mpv
|
|
|
|
#
|
2022-03-02 17:08:46 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-08-08 09:58:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:55:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-08-08 09:58:27 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-mpv
|
2020-07-26 06:29:43 +00:00
|
|
|
Version: 0.5.2
|
2017-08-08 09:58:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python interface to the mpv media player
|
2018-07-27 08:24:38 +00:00
|
|
|
License: AGPL-3.0-or-later
|
2019-11-10 17:55:20 +00:00
|
|
|
URL: https://github.com/jaseg/python-mpv
|
2017-08-08 09:58:27 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/python-mpv-%{version}.tar.gz
|
|
|
|
Source99: %{name}-rpmlintrc
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-03-02 17:08:46 +00:00
|
|
|
# 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
|
2017-08-08 09:58:27 +00:00
|
|
|
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
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
2017-11-27 21:15:49 +00:00
|
|
|
%{python_sitelib}/*
|
2017-08-08 09:58:27 +00:00
|
|
|
|
|
|
|
%changelog
|