From ceba6d6c127b546550aeaf6097268c95db12d5fceca5660f84aa764be408c1e5 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 18 Jun 2025 12:03:50 +0000 Subject: [PATCH] Accepting request 1286494 from home:StevenK:branches:science - Use pyproject macros to build and install. - Explicitly list files and directories in %files. OBS-URL: https://build.opensuse.org/request/show/1286494 OBS-URL: https://build.opensuse.org/package/show/science/python-PyBindGen?expand=0&rev=9 --- python-PyBindGen.changes | 6 ++++++ python-PyBindGen.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-PyBindGen.changes b/python-PyBindGen.changes index ae4257f..d6ede02 100644 --- a/python-PyBindGen.changes +++ b/python-PyBindGen.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 18 04:41:56 UTC 2025 - Steve Kowalik + +- Use pyproject macros to build and install. +- Explicitly list files and directories in %files. + ------------------------------------------------------------------- Thu Sep 1 16:01:08 UTC 2022 - Stefan BrĂ¼ns diff --git a/python-PyBindGen.spec b/python-PyBindGen.spec index dff2aec..1d0cbcf 100644 --- a/python-PyBindGen.spec +++ b/python-PyBindGen.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyBindGen # -# Copyright (c) 2022 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-%{**}} - Name: python-PyBindGen Version: 0.22.1 Release: 0 @@ -26,8 +24,10 @@ License: LGPL-2.1-only Group: Development/Libraries/Python URL: https://github.com/gjcarneiro/pybindgen Source0: https://pypi.io/packages/source/P/PyBindGen/PyBindGen-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -43,14 +43,15 @@ A tool to generate Python bindings for C/C++ code. find pybindgen/ -iname \*.py -exec sed -ie '1 { \#/usr/bin# d }' '{}' \; %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/ %files %{python_files} %license COPYING -%{python_sitelib}/* +%{python_sitelib}/pybindgen +%{python_sitelib}/[Pp]y[Bb]ind[Gg]en-%{version}.dist-info %changelog