[packages/python-fonttools] - added singledispatch patch (fix plistlib with singledispatch 3.7); release 6
qboosh
qboosh at pld-linux.org
Thu Mar 24 20:43:51 CET 2022
commit 8980ce56c3e0e80c3767bb0b5bfd7e82140f6fcd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 24 20:45:57 2022 +0100
- added singledispatch patch (fix plistlib with singledispatch 3.7); release 6
python-fonttools-singledispatch.patch | 11 +++++++++++
python-fonttools.spec | 6 +++++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/python-fonttools.spec b/python-fonttools.spec
index 791d97b..7f24e3d 100644
--- a/python-fonttools.spec
+++ b/python-fonttools.spec
@@ -9,7 +9,7 @@ Summary: Python 2 tools to manipulate font files
Summary(pl.UTF-8): Narzędzia do manipulacji na plikach fontów dla Pythona 2
Name: python-fonttools
Version: 3.44.0
-Release: 5
+Release: 6
# basic license is BSD
# FontTools includes Adobe AGL & AGLFN, which is under 3-clauses BSD license
License: MIT, BSD
@@ -17,6 +17,7 @@ Group: Development/Tools
#Source0Download: https://github.com/fonttools/fonttools/releases
Source0: https://github.com/fonttools/fonttools/archive/%{version}/fonttools-%{version}.tar.gz
# Source0-md5: 3f9ff311081a0f591a09552902671d29
+Patch0: %{name}-singledispatch.patch
URL: https://github.com/fonttools/fonttools
%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
BuildRequires: glibc-localedb-all
@@ -84,6 +85,7 @@ Narzędzia do manipulacji na plikach fontów dla Pythona 3.
%prep
%setup -q -n fonttools-%{version}
+%patch0 -p1
%build
export LC_ALL=C.UTF-8
@@ -91,6 +93,7 @@ export LC_ALL=C.UTF-8
%py_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=Lib \
%{__python} -m pytest Tests
%endif
@@ -100,6 +103,7 @@ PYTHONPATH=Lib \
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=Lib \
%{__python} -m pytest Tests
%endif
diff --git a/python-fonttools-singledispatch.patch b/python-fonttools-singledispatch.patch
new file mode 100644
index 0000000..84f7b1e
--- /dev/null
+++ b/python-fonttools-singledispatch.patch
@@ -0,0 +1,11 @@
+--- fonttools-3.44.0/Lib/fontTools/misc/plistlib.py.orig 2019-08-02 12:41:08.000000000 +0200
++++ fonttools-3.44.0/Lib/fontTools/misc/plistlib.py 2022-03-24 16:34:16.715273085 +0100
+@@ -105,7 +105,7 @@ def _encode_base64(data, maxlinelength=7
+ return data
+
+
+-class Data:
++class Data(object):
+ """Wrapper for binary data returned in place of the built-in bytes type
+ when loading property list data with use_builtin_types=False.
+ """
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fonttools.git/commitdiff/8980ce56c3e0e80c3767bb0b5bfd7e82140f6fcd
More information about the pld-cvs-commit
mailing list