From ecb10f67ef50b0185f84fcddf17f0c55a84d06ac2428b6e542695442799884bb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 17 May 2025 09:03:29 +0000 Subject: [PATCH] Accepting request 1278055 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1278055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cppclean?expand=0&rev=10 --- python-cppclean.changes | 5 +++++ python-cppclean.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-cppclean.changes b/python-cppclean.changes index c711949..a2df1ca 100644 --- a/python-cppclean.changes +++ b/python-cppclean.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 12:22:18 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 27 09:36:50 UTC 2020 - Petr Gajdos diff --git a/python-cppclean.spec b/python-cppclean.spec index 5ae3427..013c807 100644 --- a/python-cppclean.spec +++ b/python-cppclean.spec @@ -1,7 +1,7 @@ # # spec file for package python-cppclean # -# Copyright (c) 2020 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cppclean Version: 0.13 Release: 0 @@ -25,12 +24,14 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/myint/cppclean Source: https://github.com/myint/cppclean/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: bash BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -45,10 +46,10 @@ considerable extra compiles increasing the edit-compile-run cycle. %setup -q -n cppclean-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/cppclean %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -65,6 +66,7 @@ considerable extra compiles increasing the edit-compile-run cycle. %license COPYING %doc README.rst %python_alternative %{_bindir}/cppclean -%{python_sitelib}/* +%{python_sitelib}/cpp +%{python_sitelib}/cppclean-%{version}*-info %changelog