From 5125b8335b6a3561c26c49e3e50d93d86ecf67c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 14 Aug 2018 13:05:44 +0200 Subject: [PATCH] Fix encoding of TeX source file --- sympy-tex-encoding.patch | 20 ++++++++++++++++++++ sympy.spec | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 sympy-tex-encoding.patch diff --git a/sympy-tex-encoding.patch b/sympy-tex-encoding.patch new file mode 100644 index 0000000..961c0c9 --- /dev/null +++ b/sympy-tex-encoding.patch @@ -0,0 +1,20 @@ +--- sympy-sympy-1.2/doc/cheatsheet/combinatoric_cheatsheet.tex.orig 2018-07-09 18:27:56.000000000 +0200 ++++ sympy-sympy-1.2/doc/cheatsheet/combinatoric_cheatsheet.tex 2018-08-14 13:38:21.397200957 +0200 +@@ -425,7 +425,7 @@ + + + \verb!coset_factor(g, af=False)!\\ +-Return GÔs (selfÕs) coset factorization, \verb!f,! of \verb!g!. ++Return G's (self's) coset factorization, \verb!f,! of \verb!g!. + + + +@@ -458,7 +458,7 @@ + + + \verb!generate_dimino(af=False)!\\ +-Yield group elements using DiminoÕs algorithm ++Yield group elements using Dimino's algorithm + + + \verb!generate_schreier_sims(af=False)!\\ diff --git a/sympy.spec b/sympy.spec index fc4062b..5a4e1a6 100644 --- a/sympy.spec +++ b/sympy.spec @@ -14,6 +14,8 @@ Patch2: %{name}-doc.patch # Fix _subexpr method in lambdify # https://github.com/sympy/sympy/pull/14945 Patch3: %{name}-subexpr-lambdify.patch +# The TeX source has some weird symbols, we need to patch them out +Patch4: %{name}-tex-encoding.patch BuildArch: noarch @@ -115,6 +117,7 @@ HTML documentation for sympy. %patch1 %patch2 %patch3 +%patch4 # If running on a 32-bit system, disable a test that requires 64-bit integers. %global maxpyint %(python3 -c 'import sys;print("%x" % sys.maxsize)')