diff --git a/python-ply.spec b/python-ply.spec index 9509855a0955bd1745f6e9ad3f2509452490d7bf..2d3469b72d2ed1d9320491791a9ee544c880601e 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