From 12d60cef86929fc055a09466d142a2e03ad856422134730a2e64a7b768dffd83 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:33:09 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyVirtualDisplay?expand=0&rev=41 --- python-PyVirtualDisplay.changes | 5 +++++ python-PyVirtualDisplay.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-PyVirtualDisplay.changes b/python-PyVirtualDisplay.changes index 45a7f13..7ff0531 100644 --- a/python-PyVirtualDisplay.changes +++ b/python-PyVirtualDisplay.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:38 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon May 12 07:45:40 UTC 2025 - Daniel Garcia diff --git a/python-PyVirtualDisplay.spec b/python-PyVirtualDisplay.spec index 06d0043..e6f5e9f 100644 --- a/python-PyVirtualDisplay.spec +++ b/python-PyVirtualDisplay.spec @@ -32,7 +32,9 @@ Summary: Python wrapper for Xvfb, Xephyr and Xvnc License: BSD-2-Clause URL: https://github.com/ponty/PyVirtualDisplay Source: https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-EasyProcess @@ -67,11 +69,11 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc. rm tests/test_xvnc.py %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -92,7 +94,7 @@ xvfb-run --server-args "-screen 0 1920x1080x24" \ %license LICENSE.txt %doc README.md %{python_sitelib}/pyvirtualdisplay -%{python_sitelib}/PyVirtualDisplay-%{version}-*info +%{python_sitelib}/[Pp]y[Vv]irtual[Dd]isplay-%{version}.dist-info %endif %changelog