From 970bd494db7fdd07165b63d86b1ee70fa4ebe2ff9f19566e6222edbfd0bc4a5d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 04:23:06 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xcffib?expand=0&rev=33 --- python-xcffib.changes | 5 +++++ python-xcffib.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-xcffib.changes b/python-xcffib.changes index d4ed34c..bd54eb8 100644 --- a/python-xcffib.changes +++ b/python-xcffib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 6 04:19:46 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Oct 18 15:09:53 UTC 2023 - Soc Virnyl Estela diff --git a/python-xcffib.spec b/python-xcffib.spec index 3307166..63303e6 100644 --- a/python-xcffib.spec +++ b/python-xcffib.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-xcffib # -# 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 @@ -31,11 +31,12 @@ Version: 1.5.0 Release: 0 Summary: A drop in replacement for xpyb, an XCB python binding License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/tych0/xcffib Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz BuildRequires: %{python_module cffi >= 1.1.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} %if %{with test} BuildRequires: %{python_module pytest} BuildRequires: %{python_module xcffib} @@ -58,12 +59,12 @@ replacement for xpyb. %build %if !%{with test} -%python_build +%pyproject_wheel %endif %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -77,7 +78,7 @@ replacement for xpyb. %license LICENSE %doc README.md %{python_sitelib}/xcffib/ -%{python_sitelib}/xcffib-%{version}-py*.egg-info +%{python_sitelib}/xcffib-%{version}.dist-info %endif %changelog