From 63ca32a082316f8050000541ec0f1e0c20204640e4b734ac3cdffc4d58f41c8e Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 17 Feb 2021 10:13:50 +0000 Subject: [PATCH] Accepting request 871463 from home:bnavigator:branches:M17N - Update to 4.19.1 * [woff2] An initial off-curve point with an overlap flag now stays an off-curve point after compression. - Changes in 4.19.0 * [codecs] Handle errors parameter different from 'strict' for the custom extended mac encodings (#2137, #2132). * [featureVars] Raise better error message when a script is missing the required default language system (#2154). * [COLRv1] Avoid abrupt change caused by rounding PaintRadialGradient.c0 when the start circle almost touches the end circle's perimeter (#2148). * [COLRv1] Support building unlimited lists of paints as 255-ary trees of PaintColrLayers tables (#2153). * [subset] Prune redundant format-12 cmap subtables when all non-BMP characters are dropped (#2146). * [basePen] Raise MissingComponentError instead of bare KeyError when a referenced component is missing (#2145). - Only 'Recommend:' optional extra requirements (Some are not available in TW python36 flavor anymore) - Don't require python36-scipy for testing. (NEP 29) OBS-URL: https://build.opensuse.org/request/show/871463 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=19 --- fonttools-4.18.2.zip | 3 --- fonttools-4.19.1.zip | 3 +++ python-FontTools.changes | 24 +++++++++++++++++ python-FontTools.spec | 57 ++++++++++++++++------------------------ 4 files changed, 50 insertions(+), 37 deletions(-) delete mode 100644 fonttools-4.18.2.zip create mode 100644 fonttools-4.19.1.zip diff --git a/fonttools-4.18.2.zip b/fonttools-4.18.2.zip deleted file mode 100644 index 0c15779..0000000 --- a/fonttools-4.18.2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c50af6fb9b4de4609c0e5558f3444c20f8632aa319319a7ef14fd5ba677c9f8 -size 4336655 diff --git a/fonttools-4.19.1.zip b/fonttools-4.19.1.zip new file mode 100644 index 0000000..8930a9c --- /dev/null +++ b/fonttools-4.19.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a2b8450bd3b1c23e6259d37c0f1e403519c91b8373b83bb9e3c6e70748cf07b +size 4348240 diff --git a/python-FontTools.changes b/python-FontTools.changes index 5d4b335..1efe34c 100644 --- a/python-FontTools.changes +++ b/python-FontTools.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Feb 12 13:48:21 UTC 2021 - Ben Greiner + +- Update to 4.19.1 + * [woff2] An initial off-curve point with an overlap flag now + stays an off-curve point after compression. +- Changes in 4.19.0 + * [codecs] Handle errors parameter different from 'strict' for + the custom extended mac encodings (#2137, #2132). + * [featureVars] Raise better error message when a script is + missing the required default language system (#2154). + * [COLRv1] Avoid abrupt change caused by rounding + PaintRadialGradient.c0 when the start circle almost touches + the end circle's perimeter (#2148). + * [COLRv1] Support building unlimited lists of paints as 255-ary + trees of PaintColrLayers tables (#2153). + * [subset] Prune redundant format-12 cmap subtables when all + non-BMP characters are dropped (#2146). + * [basePen] Raise MissingComponentError instead of bare KeyError + when a referenced component is missing (#2145). +- Only 'Recommend:' optional extra requirements (Some are not + available in TW python36 flavor anymore) +- Don't require python36-scipy for testing. (NEP 29) + ------------------------------------------------------------------- Thu Jan 14 16:26:38 UTC 2021 - Dirk Müller diff --git a/python-FontTools.spec b/python-FontTools.spec index 5ce733e..d832f8c 100644 --- a/python-FontTools.spec +++ b/python-FontTools.spec @@ -18,14 +18,16 @@ %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" +%bcond_without test %define psuffix -test %else %define psuffix %{nil} +%bcond_with test %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-FontTools%{psuffix} -Version: 4.18.2 +Version: 4.19.1 Release: 0 Summary: Suite of Tools and Libraries for Manipulating Fonts License: MIT AND OFL-1.1 @@ -38,34 +40,32 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -Requires: python-Brotli >= 1.0.1 -Requires: python-fs >= 2.4.11 -Requires: python-lxml >= 4.0 -Requires: python-scipy >= 1.5.1 -Requires: python-sympy -Requires: python-unicodedata2 >= 13.0.0 -Requires: python-zopfli >= 0.1.6 +Recommends: python-Brotli >= 1.0.1 +Recommends: python-fs >= 2.4.11 +Recommends: python-lxml >= 4.0 +Recommends: python-scipy >= 1.5.1 +Recommends: python-sympy +Recommends: python-unicodedata2 >= 13.0.0 +Recommends: python-zopfli >= 0.1.6 Requires(post): update-alternatives Requires(postun): update-alternatives Recommends: python-reportlab BuildArch: noarch -%if "%{flavor}" == "test" -BuildRequires: zip -# SECTION test requirements +%if %{with test} BuildRequires: %{python_module Brotli >= 1.0.1} BuildRequires: %{python_module fs >= 2.4.11} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module scipy >= 1.5.1} BuildRequires: %{python_module sympy} BuildRequires: %{python_module ufoLib2 >= 0.6.2} BuildRequires: %{python_module zopfli >= 0.1.6} +# TW does not have python36-scipy anymore (NEP 29). Tests are automatically skipped. +BuildRequires: %{python_module scipy >= 1.5.1 if (%python-base without python36-base)} %endif -# /SECTION -%ifpython3 -Obsoletes: fonttools < %{version} -Provides: fonttools = %{version} -Provides: python-fonttools = %{version} +%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" +Obsoletes: fonttools < %{version}-%{release} +Provides: fonttools = %{version}-%{release} %endif +Provides: python-fonttools = %{version}-%{release} %python_subpackages %description @@ -97,24 +97,13 @@ cp %{SOURCE1} Tests/cu2qu/data/curves.json rm %{buildroot}%{_bindir}/fonttools %endif -%if "%{flavor}" == "test" +%if %{with test} %check -ufodir='Tests/ufoLib/testdata/TestFont1 (UFO3).ufo' -if [ ! -e "${ufodir}z" ]; then - # they forgot to ship Tests/ufoLib/testdata/TestFont1 (UFO3).ufoz - pushd $(dirname "$ufodir") - name=$(basename "$ufodir") - zip -r "${name}z" "$name" - popd -else - echo "this can be removed (including zip buildrequires)" - exit 1 -fi export LANG=en_US.UTF-8 -export PYTHONDONTWRITEBYTECODE=1 -%pytest +%pytest -ra +%endif -%else +%if "%{flavor}" != "test" %post %python_install_alternative ttx ttx.1 %python_install_alternative pyftsubset @@ -128,12 +117,12 @@ export PYTHONDONTWRITEBYTECODE=1 %files %{python_files} %license LICENSE LICENSE.external %doc README.rst NEWS.rst -%{python_sitelib}/* %python_alternative %{_bindir}/pyftmerge %python_alternative %{_bindir}/pyftsubset %python_alternative %{_bindir}/ttx %python_alternative %{_mandir}/man1/ttx.1%{?ext_man} - +%{python_sitelib}/fontTools +%{python_sitelib}/fonttools-%{version}*-info %endif %changelog