From be52a57095c12172fae16e31e0814b966b7d7164e098e79a02f85b64b8b497ff Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 14 Feb 2025 03:27:20 +0000 Subject: [PATCH] - Do not use %_libdir, it doesn't expand correctly on 64 bit arches. - Run a portion of the testsuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpv?expand=0&rev=46 --- python-python-mpv.changes | 6 ++++++ python-python-mpv.spec | 16 ++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-python-mpv.changes b/python-python-mpv.changes index e1cc028..06a3f63 100644 --- a/python-python-mpv.changes +++ b/python-python-mpv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 14 03:26:31 UTC 2025 - Steve Kowalik + +- 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 diff --git a/python-python-mpv.spec b/python-python-mpv.spec index f29943f..4fd294b 100644 --- a/python-python-mpv.spec +++ b/python-python-mpv.spec @@ -1,7 +1,7 @@ # # 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 # 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 Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/python_mpv-%{version}.tar.gz Source99: %{name}-rpmlintrc +BuildRequires: %{python_module PyVirtualDisplay} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 61} -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 +# workaround via define needed as python_subpackages wants to interpret Requires: lines +# do not use %_libdir +Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f /usr/lib*/libmpv.so)) BuildArch: noarch %python_subpackages @@ -53,11 +54,14 @@ just like the lua interface does. %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest -k 'test_array_property_bounce' + %files %{python_files} %license LICENSE.GPL LICENSE.LGPL %doc README.rst %{python_sitelib}/mpv.py -%{python_sitelib}/__pycache__/mpv.cpython* +%{python_sitelib}/__pycache__/mpv.cpython*pyc %{python_sitelib}/python_mpv-%{version}.dist-info %changelog