From 5602accc0c82d93921d02af5013f69ba6ecbc2a1ba05381a336ca45ea75cb769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:23:32 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-system-hotkey310?expand=0&rev=6 --- python-system-hotkey310.changes | 5 +++++ python-system-hotkey310.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-system-hotkey310.changes b/python-system-hotkey310.changes index 8e93e9c..b9c68ac 100644 --- a/python-system-hotkey310.changes +++ b/python-system-hotkey310.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 12:21:22 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 3 13:37:18 UTC 2023 - Dirk Müller diff --git a/python-system-hotkey310.spec b/python-system-hotkey310.spec index e93e3ca..a4693c1 100644 --- a/python-system-hotkey310.spec +++ b/python-system-hotkey310.spec @@ -1,7 +1,7 @@ # # spec file for package python-system-hotkey310 # -# 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-system-hotkey310 Version: 1.0.5 Release: 0 @@ -25,9 +23,11 @@ Summary: System wide hotkeys License: BSD-3-Clause URL: https://github.com/hhannine/system_hotkey310 Source0: https://files.pythonhosted.org/packages/source/s/system_hotkey310/system_hotkey310-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-xvfb} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module xcffib} BuildRequires: %{python_module xpybutil} BuildRequires: fdupes @@ -47,10 +47,10 @@ System wide hotkeys for python 3. %setup -q -n system_hotkey310-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,6 +61,6 @@ System wide hotkeys for python 3. %license LICENSE %doc HISTORY.rst README.rst %{python_sitelib}/system_hotkey -%{python_sitelib}/*egg-info +%{python_sitelib}/system_hotkey310-%{version}*-info %changelog