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