From a92aa0cab6de47f3bbc5beaf4187126b57b2d5303bee46602b93127e05aeffd5 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:22:17 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cstruct?expand=0&rev=16 --- python-cstruct.changes | 5 +++++ python-cstruct.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-cstruct.changes b/python-cstruct.changes index 4ea806c..dbfce4f 100644 --- a/python-cstruct.changes +++ b/python-cstruct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:20 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Mon Jan 8 20:58:43 UTC 2024 - Dirk Müller diff --git a/python-cstruct.spec b/python-cstruct.spec index 170e5a9..c2b4951 100644 --- a/python-cstruct.spec +++ b/python-cstruct.spec @@ -1,7 +1,7 @@ # # spec file for package python-cstruct # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2020-2022, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -25,8 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/andreax79/python-cstruct Source: https://github.com/andreax79/python-cstruct/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,10 +48,10 @@ a string. %setup -q %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand find %{buildroot}%{$python_sitelib} -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -60,6 +62,6 @@ a string. %license LICENSE %doc changelog.txt README.md %{python_sitelib}/cstruct -%{python_sitelib}/cstruct-%{version}*-info +%{python_sitelib}/cstruct-%{version}.dist-info %changelog