From f162894cb6ead57bc27cc055ab7ac19a37852785d2b3204f4e18ba9261a1dfb0 Mon Sep 17 00:00:00 2001
From: Matej Cepl <mcepl@suse.com>
Date: Thu, 22 Oct 2020 13:10:59 +0000
Subject: [PATCH] Accepting request 843383 from
 home:namtrac:branches:devel:languages:python:numeric

- Copy updated transparent_markers.pdf from upstream commit
  https://github.com/matplotlib/matplotlib/pull/18604 to fix
  test failure Ghostscript 9.53

OBS-URL: https://build.opensuse.org/request/show/843383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=37
---
 python-matplotlib.changes | 7 +++++++
 python-matplotlib.spec    | 5 +++++
 transparent_markers.pdf   | 3 +++
 3 files changed, 15 insertions(+)
 create mode 100644 transparent_markers.pdf

diff --git a/python-matplotlib.changes b/python-matplotlib.changes
index 23d8042..e8545a2 100644
--- a/python-matplotlib.changes
+++ b/python-matplotlib.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Thu Oct 22 08:59:30 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
+
+- Copy updated transparent_markers.pdf from upstream commit
+  https://github.com/matplotlib/matplotlib/pull/18604 to fix
+  test failure Ghostscript 9.53
+
 -------------------------------------------------------------------
 Thu Jul 23 09:49:30 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
 
diff --git a/python-matplotlib.spec b/python-matplotlib.spec
index b7beb46..70714c5 100644
--- a/python-matplotlib.spec
+++ b/python-matplotlib.spec
@@ -38,6 +38,8 @@ License:        SUSE-Matplotlib
 URL:            https://matplotlib.org
 Source:         https://files.pythonhosted.org/packages/source/m/matplotlib/matplotlib-%{version}.tar.gz
 Source1:        matplotlib-setup.cfg
+# Remove after next update
+Source2:        https://github.com/matplotlib/matplotlib/raw/b9470957c7f440084915a0b6573af3ee2235b941/lib/matplotlib/tests/baseline_images/test_axes/transparent_markers.pdf
 # Bundled version of freetype for testing purposes only
 Source99:       https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz
 Patch0:         no-builddir-freetype.patch
@@ -225,6 +227,9 @@ find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec
 cp %{SOURCE1} setup.cfg
 %patch0 -p1
 
+# Fix test with ghostscript 9.53
+cp %{SOURCE2} lib/matplotlib/tests/baseline_images/test_axes/transparent_markers.pdf
+
 %build
 %if !%{with test}
 %python_build
diff --git a/transparent_markers.pdf b/transparent_markers.pdf
new file mode 100644
index 0000000..73c5349
--- /dev/null
+++ b/transparent_markers.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e85b7167311cf140af356447706bb5f0537668e0ee4b6c1be4aaf18bf46e6248
+size 2218