diff --git a/python38.spec b/python38.spec index cf682ab..7429f45 100644 --- a/python38.spec +++ b/python38.spec @@ -427,6 +427,8 @@ find %{buildroot} -type f -print | while read -r line ; do fi done +# When packaging a not system version of Python, these files are named like e.g. 2to3-3.8 +# These files must not be packaged to avoid conflicts with system python3 rm -fr %{buildroot}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config} rm -fr %{buildroot}%{_libdir}/libpython3.so rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc