diff --git a/python312.spec b/python312.spec index 6bf7cf5..b040533 100644 --- a/python312.spec +++ b/python312.spec @@ -797,7 +797,9 @@ LD_LIBRARY_PATH=. ./python -O -c "from py_compile import compile; compile('$FAIL echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-import-failed-hooks.pth %endif -find %{buildroot}%{_datadir}/doc -type f -name \*.pyc -ls -exec rm -vf '{}' \; +if [ -d %{buildroot}%{_defaultdocdir} ] ; then +find %{buildroot}%{_defaultdocdir} -type f -name \*.pyc -ls -exec rm -vf '{}' \; +fi %if %{with general} %files -n %{python_pkg_name}-tk