From ed2f919aa03316bcf0de178d5da13218de137d43 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 27 Feb 2023 13:09:48 +0800 Subject: [PATCH] optimise dependency --- python-ply.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/python-ply.spec b/python-ply.spec index 9509855..2d3469b 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %global modname ply %bcond_without tests @@ -31,7 +31,6 @@ essential features: Summary: Python Lex-Yacc %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel -BuildRequires: python3-setuptools %description -n python3-%{modname} PLY is a straightforward lex/yacc implementation. Here is a list of its @@ -67,11 +66,14 @@ rm -rf *.egg-info # extract license block from beginning of README.md grep -B1000 "POSSIBILITY OF SUCH DAMAGE" README.md > LICENSE +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install %if %{with tests} %check @@ -85,12 +87,15 @@ popd %files -n python3-%{modname} %license LICENSE %{python3_sitelib}/%{modname}/ -%{python3_sitelib}/%{modname}-%{version}-*.egg-info/ +%{python3_sitelib}/%{modname}-%{version}.dist-info/ %files doc %doc CHANGES README.md -%changelog +%changelog +* Mon Feb 27 2023 mgb01105731 - 3.11-3 +- optimise dependency + * Sun Oct 09 2022 mgb01105731 - 3.11-2 - add doc package -- Gitee