Restore the ability to build with python < 3.12

This commit is contained in:
Jerry James 2023-06-15 13:26:25 -06:00
parent 558b6b8622
commit 3a680948e5
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ Provides: bundled(js-jquery)
This package contains API documentation for gmpy2.
%prep
%autosetup -n gmpy2-%{version} -p1
%autosetup -N -n gmpy2-%{version}
%if 0%{?python3_version_nodots} > 311
%autopatch -p1
%endif
# Update the sphinx theme name
sed -i "s/'default'/'classic'/" docs/conf.py