From 4c472a0b7628c433d3d927d65557b928e18b603bbc44df7f35faef1f0adee4fb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:34:06 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyxattr?expand=0&rev=14 --- python-pyxattr.changes | 5 +++++ python-pyxattr.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-pyxattr.changes b/python-pyxattr.changes index 932551f..910fe08 100644 --- a/python-pyxattr.changes +++ b/python-pyxattr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:38 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Sat Oct 7 21:18:10 UTC 2023 - Matej Cepl diff --git a/python-pyxattr.spec b/python-pyxattr.spec index ce44531..cc40993 100644 --- a/python-pyxattr.spec +++ b/python-pyxattr.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pyxattr # -# 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 @@ -29,8 +29,10 @@ Source0: %{github_url}/v%{version}/%{mod_name}-%{version}.tar.gz Source1: %{github_url}/v%{version}/%{mod_name}-%{version}.tar.gz.asc Source2: https://k1024.org/files/key.asc#/%{name}.keyring BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc BuildRequires: libattr-devel @@ -46,19 +48,19 @@ of the attr C library - see attr(5). %autosetup -n pyxattr-%{version} %build -%python_build +%pyproject_wheel %check # Tests are mostly disabled because for gh#iustin/pyxattr#34 %pytest_arch tests || /bin/true %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} -%{python_sitearch}/xattr* -%{python_sitearch}/pyxattr-%{version}*-info +%{python_sitearch}/xattr.cpython-*-linux-gnu.so +%{python_sitearch}/pyxattr-%{version}.dist-info %license COPYING %doc NEWS.md README.md