14
0

Accepting request 1247514 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1247514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-mpv?expand=0&rev=25
This commit is contained in:
2025-02-21 20:36:36 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 14 03:26:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Do not use %_libdir, it doesn't expand correctly on 64 bit arches.
- Run a portion of the testsuite.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 24 15:32:51 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Jun 24 15:32:51 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-mpv # spec file for package python-python-mpv
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,16 +25,17 @@ License: GPL-2.0-or-later OR LGPL-2.1-or-later
URL: https://github.com/jaseg/python-mpv URL: https://github.com/jaseg/python-mpv
Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/python_mpv-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/python_mpv-%{version}.tar.gz
Source99: %{name}-rpmlintrc Source99: %{name}-rpmlintrc
BuildRequires: %{python_module PyVirtualDisplay}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 61} BuildRequires: %{python_module setuptools >= 61}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# Needed to be able to set the proper dependency to the library # Needed to be able to set the proper dependency to the library
BuildRequires: mpv-devel BuildRequires: mpv-devel
# workaround via define needed as python_ubpackages wants to interpret Requires: lines # workaround via define needed as python_subpackages wants to interpret Requires: lines
%define libmpv %(rpm -qf $(readlink -f %{_libdir}/libmpv.so) --qf "%%{name}") # do not use %_libdir
Requires: %libmpv Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f /usr/lib*/libmpv.so))
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -53,11 +54,14 @@ just like the lua interface does.
%pyproject_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k 'test_array_property_bounce'
%files %{python_files} %files %{python_files}
%license LICENSE.GPL LICENSE.LGPL %license LICENSE.GPL LICENSE.LGPL
%doc README.rst %doc README.rst
%{python_sitelib}/mpv.py %{python_sitelib}/mpv.py
%{python_sitelib}/__pycache__/mpv.cpython* %{python_sitelib}/__pycache__/mpv.cpython*pyc
%{python_sitelib}/python_mpv-%{version}.dist-info %{python_sitelib}/python_mpv-%{version}.dist-info
%changelog %changelog