From 03e7bcf0b7ca37fb5fb5903f3c5ee7993b3b883c970ddcf55ab428608eece83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 12 May 2025 14:47:52 +0000 Subject: [PATCH] Accepting request 1276843 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276843 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyScreeze?expand=0&rev=21 --- python-PyScreeze.changes | 5 +++++ python-PyScreeze.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-PyScreeze.changes b/python-PyScreeze.changes index 3bf5aa6..e899dbb 100644 --- a/python-PyScreeze.changes +++ b/python-PyScreeze.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 12:58:24 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 9 22:01:40 UTC 2024 - Dirk Müller diff --git a/python-PyScreeze.spec b/python-PyScreeze.spec index 96da452..8fe6724 100644 --- a/python-PyScreeze.spec +++ b/python-PyScreeze.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyScreeze # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyScreeze Version: 0.1.30 Release: 0 @@ -25,7 +24,9 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/asweigart/pyscreeze Source: https://files.pythonhosted.org/packages/source/P/PyScreeze/PyScreeze-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,10 +48,10 @@ PyScreeze is a screenshot module for Python 2 and 3. %setup -q -n PyScreeze-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +63,7 @@ PyScreeze is a screenshot module for Python 2 and 3. %files %{python_files} %doc README.md %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/pyscreeze +%{python_sitelib}/[Pp]y[Ss]creeze-%{version}*-info %changelog