commit 4ba5aa5b76ed994d4285c81afa5662b16de5e703 Author: Björn Esser bjoern.esser@gmail.com Date: Mon Feb 24 13:22:20 2014 +0100
patch doxy2swig to open files with utf-8 encoding on Python3
shogun.spec | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) --- diff --git a/shogun.spec b/shogun.spec index 2886792..fb44509 100644 --- a/shogun.spec +++ b/shogun.spec @@ -666,6 +666,10 @@ done # Copy all stuff into %%{py3dir} for the Python3-build. cp -a . %{py3dir}
+# Patch doxy2swig to open files with utf-8 encoding on Python3. +sed -i -e's!return open(source)!return open(source, encoding="utf-8")!' \ + %{py3dir}/src/.doxy2swig.py + ###############################################################################
%build