diff --git a/freetype-2.9.patch b/freetype-2.9.patch new file mode 100644 index 0000000..bc35627 --- /dev/null +++ b/freetype-2.9.patch @@ -0,0 +1,14 @@ +Index: Pillow-5.0.0/Tests/test_imagefont.py +=================================================================== +--- Pillow-5.0.0.orig/Tests/test_imagefont.py ++++ Pillow-5.0.0/Tests/test_imagefont.py +@@ -58,6 +58,9 @@ class TestImageFont(PillowTestCase): + ('2', '8'): {'multiline': 6.2, + 'textsize': 2.5, + 'getters': (12, 16)}, ++ ('2', '9'): {'multiline': 6.2, ++ 'textsize': 2.5, ++ 'getters': (12, 16)}, + 'Default': {'multiline': 0.5, + 'textsize': 0.5, + 'getters': (12, 16)}, diff --git a/python-Pillow.changes b/python-Pillow.changes index 4c77887..1177401 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 12 12:52:24 UTC 2018 - idonmez@suse.com + +- Add freetype-2.9.patch to fix tests with FreeType 2.9 gh#2954 + ------------------------------------------------------------------- Wed Jan 10 13:31:48 UTC 2018 - tchvatal@suse.com diff --git a/python-Pillow.spec b/python-Pillow.spec index faebbce..8f7a02b 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -31,6 +31,8 @@ License: HPND Group: Development/Languages/Python Url: http://python-imaging.github.io/ Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz +# PATCH-FIX-UPSTREAM freetype-2.9.patch https://github.com/python-pillow/Pillow/issues/2954 +Patch1: freetype-2.9.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module olefile} BuildRequires: %{python_module pytest-runner} @@ -93,6 +95,7 @@ Python Imaging Library by Fredrik Lundh and Contributors. %prep %setup -q -n Pillow-%{version} +%patch1 -p1 %build %python_build