From ac18241cf6e32266f138976d48ee52caa5ed7cad448efe82a68945fa29c805cf Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 12 May 2025 06:40:57 +0000 Subject: [PATCH] Accepting request 1274921 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1274921 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyAutoGUI?expand=0&rev=14 --- python-PyAutoGUI.changes | 5 +++++ python-PyAutoGUI.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-PyAutoGUI.changes b/python-PyAutoGUI.changes index de47225..8c33ce3 100644 --- a/python-PyAutoGUI.changes +++ b/python-PyAutoGUI.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 6 12:19:50 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Dec 27 13:46:16 UTC 2023 - Dirk Müller diff --git a/python-PyAutoGUI.spec b/python-PyAutoGUI.spec index 5e94fcf..7ca4289 100644 --- a/python-PyAutoGUI.spec +++ b/python-PyAutoGUI.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyAutoGUI # -# Copyright (c) 2023 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyAutoGUI Version: 0.9.54 Release: 0 @@ -25,8 +24,10 @@ License: BSD-3-Clause URL: https://github.com/asweigart/pyautogui Source: https://files.pythonhosted.org/packages/source/P/PyAutoGUI/PyAutoGUI-%{version}.tar.gz Source99: https://raw.githubusercontent.com/asweigart/pyautogui/master/LICENSE.txt +BuildRequires: %{python_module pip} BuildRequires: %{python_module python-xlib} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -50,15 +51,16 @@ sed -i -e "s/version=__import__('pyautogui').__version__,/version='%{version}',/ dos2unix README.md %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/pyautogui +%{python_sitelib}/[Pp]y[Aa]uto[Gg][Uu][Ii]-%{version}*-info %changelog