From 0f2eaf80ff4a71a8fedb2fcd74ea92700a10fa3f Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Oct 23 2020 09:28:40 +0000 Subject: 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. --- diff --git a/python-psycopg2.spec b/python-psycopg2.spec index 165cee0..543a5b2 100644 --- a/python-psycopg2.spec +++ b/python-psycopg2.spec @@ -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