From 3a3876906d422a2292256bd3f2295e740cdae61963dbdbabe4fee64536d46752 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Jun 2025 01:34:08 +0000 Subject: [PATCH] - Switch to pyproject macros. - List files and directories explicitly in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ethtool?expand=0&rev=19 --- python-ethtool.changes | 6 ++++++ python-ethtool.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-ethtool.changes b/python-ethtool.changes index 1f17e53..ad6c97c 100644 --- a/python-ethtool.changes +++ b/python-ethtool.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 23 01:31:14 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- List files and directories explicitly in %files. + ------------------------------------------------------------------- Tue Feb 13 13:02:43 UTC 2024 - Daniel Garcia diff --git a/python-ethtool.spec b/python-ethtool.spec index 318362a..35aa273 100644 --- a/python-ethtool.spec +++ b/python-ethtool.spec @@ -1,7 +1,7 @@ # # spec file for package python-ethtool # -# 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 @@ -17,17 +17,17 @@ %global pypi_name ethtool -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{pypi_name} Version: 0.15 Release: 0 Summary: Ethernet settings Python bindings License: GPL-2.0-only -Group: Development/Languages/Python URL: https://github.com/fedora-python/%{name} Source: https://files.pythonhosted.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libnl3-devel # needs ifconfig for tests (to check feature parity) @@ -50,10 +50,10 @@ rm tests/test_scripts.py %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig @@ -80,7 +80,8 @@ mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool %files %{python_files} %license COPYING %doc README.rst CHANGES.rst -%{python_sitearch}/ +%{python_sitearch}/ethtool.cpython-*-linux-gnu.so +%{python_sitearch}/ethtool-%{version}.dist-info %python_alternative %{_sbindir}/pethtool %python_alternative %{_sbindir}/pifconfig