From c4767bebd2ff2996b82e0418d6d869ee8267eece Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Tue, 19 May 2020 20:18:32 +0300 Subject: [PATCH] Add comment explaining the need to remove files --- python38.spec | 2 ++ 1 file changed, 2 insertions(+) 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