Add comment explaining the need to remove files

This commit is contained in:
Mikhail Novosyolov 2020-05-19 20:18:32 +03:00
parent 57bbf7cf48
commit c4767bebd2

View file

@ -427,6 +427,8 @@ find %{buildroot} -type f -print | while read -r line ; do
fi fi
done 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}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config}
rm -fr %{buildroot}%{_libdir}/libpython3.so rm -fr %{buildroot}%{_libdir}/libpython3.so
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc