diff --git a/python3.spec b/python3.spec index ae6af02..814679f 100644 --- a/python3.spec +++ b/python3.spec @@ -888,9 +888,10 @@ sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \ # so handle files named using other naming scheme separately. LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \ Tools/scripts/pathfix.py \ - -i "%{_bindir}/python%{pybasever}" \ + -i "%{_bindir}/python%{pybasever}" -pn \ %{buildroot} %{buildroot}%{pylibdir}/Tools/scripts/*-*.py \ - %{buildroot}%{pylibdir}/Tools/pynche/{pynche,pynche.pyw} + %{buildroot}%{pylibdir}/Tools/pynche/{pynche,pynche.pyw} \ + %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py} # not covered, also redundant and useless: rm %{buildroot}%{pylibdir}/Tools/scripts/{2to3,idle3,pydoc3,pyvenv}