--- /dev/null
+--- 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.
+ """
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
#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
%prep
%setup -q -n fonttools-%{version}
+%patch0 -p1
%build
export LC_ALL=C.UTF-8
%py_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=Lib \
%{__python} -m pytest Tests
%endif
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=Lib \
%{__python} -m pytest Tests
%endif