15
0

Accepting request 1276722 from devel:languages:python

Forwarded request #1274921 from mcalabkova

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1276722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyAutoGUI?expand=0&rev=6
This commit is contained in:
2025-05-12 14:51:10 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 6 12:19:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed Dec 27 13:46:16 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -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