Replace Python version glob with macro (needed for Python 3.10+)

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
This commit is contained in:
Miro Hrončok 2020-07-13 21:04:36 +02:00
parent 36f291f413
commit 730c9ef303

View File

@ -46,7 +46,7 @@ find %{buildroot}/%{python3_sitelib} -name '*.py' | xargs sed -i '/^#!/d'
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6 * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6