From dbd8592b59c682415cdbcc3ace5228cc0cfe9826fcfca9afaee140896c596861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 12 Jan 2018 12:59:12 +0000 Subject: [PATCH] Accepting request 563830 from home:namtrac:branches:devel:languages:python - Add freetype-2.9.patch to fix tests with FreeType 2.9 gh#2954 OBS-URL: https://build.opensuse.org/request/show/563830 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=66 --- freetype-2.9.patch | 14 ++++++++++++++ python-Pillow.changes | 5 +++++ python-Pillow.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 freetype-2.9.patch 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