From e9856f3b5dece28f118e7571e878d34120a1be08 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Mon, 14 Jul 2025 12:05:54 +0800 Subject: [PATCH] Fix build error with setuptools new version 78.1.1 --- python-ruamel-yaml-clib.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-ruamel-yaml-clib.spec b/python-ruamel-yaml-clib.spec index 857a843..a7dc859 100644 --- a/python-ruamel-yaml-clib.spec +++ b/python-ruamel-yaml-clib.spec @@ -3,13 +3,14 @@ Name: python-%{pname} Version: 0.2.12 -Release: 1 +Release: 2 Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml License: MIT URL: https://bitbucket.org/ruamel/yaml.clib Source0: https://files.pythonhosted.org/packages/20/84/80203abff8ea4993a87d823a5f632e4d92831ef75d404c9fc78d0176d2b5/ruamel.yaml.clib-0.2.12.tar.gz BuildRequires: gcc libyaml-devel python3-devel python3-setuptools +BuildRequires: python3-pbr python3-pip python3-wheel %description It is the C based reader/scanner and emitter for ruamel.yaml. @@ -17,8 +18,6 @@ It is the C based reader/scanner and emitter for ruamel.yaml. %package -n python3-%{pname} Summary: %{summary} Provides: python-%{pname} = %{version}-%{release} -Provides: python%{python3_pkgversion}dist(%{pname}) = %{version} -Provides: python%{python3_version}dist(%{pname}) = %{version} Requires: python3-setuptools python3-ruamel-yaml %description -n python3-%{pname} @@ -34,21 +33,24 @@ Development documents and examples for ruamel.yaml %autosetup -n %{pypi_name}-%{version} -p1 %build -%py3_build +%pyproject_build %install -%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT +%pyproject_install %files -n python3-%{pname} %license LICENSE %{python3_sitearch}/_ruamel_yaml.cpython-* -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitearch}/ruamel_yaml_clib-*.dist-info/ %files help %defattr(-,root,root) %doc README.md %changelog +* Mon Jul 14 2025 Dongxing Wang - 0.2.12-2 +- Fix build error with setuptools new version 78.1.1 + * Thu Mar 20 2025 Dongxing Wang - 0.2.12-1 - Update package to version 0.2.12 -- Gitee