Replace 3? glob with python3_version_nodots macro

With the upcoming Python 3.10 Python version will be one
character longer so the 3? glob won't work anymore.
This commit is contained in:
Tomas Hrnciar 2020-10-23 11:28:40 +02:00
parent eaf944cf03
commit 0f2eaf80ff

View File

@ -262,7 +262,7 @@ done
%doc AUTHORS NEWS README.rst
%dir %{python3_sitearch}/psycopg2
%{python3_sitearch}/psycopg2/*.py
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?[!d]*.so
%{python3_sitearch}/psycopg2/_psycopg.cpython-%{python3_version_nodots}[!d]*.so
%dir %{python3_sitearch}/psycopg2/__pycache__
%{python3_sitearch}/psycopg2/__pycache__/*.py{c,o}
%{python3_sitearch}/psycopg2-%{version}-py3*.egg-info
@ -276,7 +276,7 @@ done
%if %{with python3_debug}
%files -n python3-psycopg2-debug
%license LICENSE
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?d*.so
%{python3_sitearch}/psycopg2/_psycopg.cpython-%{python3_version_nodots}d*.so
%endif