Accepting request 940599 from home:bnavigator:python-rpm-macros
- Update to 4.28.3
* [subset] Fixed bug while subsetting COLR table, whereby
incomplete layer records pointing to missing glyphs were being
retained leading to struct.error upon compiling. Make it so
that glyf glyph closure, which follows the COLR glyph closure,
does not influence the COLR table subsetting (#2461, #2462).
* [docs] Fully document the cmap and glyf tables (#2454, #2457).
* [colorLib.unbuilder] Fixed CLI by deleting no longer existing
parameter (180bb1867).
- Release 4.28.2
* [otlLib] Remove duplicates when building coverage (#2433).
* [docs] Add interrogate configuration (#2443).
* [docs] Remove comment about missing “start” optional argument
to calcChecksum (#2448).
* [cu2qu/cli] Adapt to the latest ufoLib2.
* [subset] Support subsetting SVG table and remove it from the
list of drop by default tables (#534).
* [subset] add --pretty-svg option to pretty print SVG table
contents (#2452).
* [merge] Support merging CFF tables (CID-keyed CFF is still not
supported) (#2447).
* [merge] Support --output-file (#2447).
* [docs] Split table docs into individual pages (#2444).
* [feaLib] Forbid empty classes (#2446).
* [docs] Improve documentation for fontTools.ttLib.ttFont
(#2442).
- Release 4.28.1
* [subset] Fixed AttributeError while traversing a color glyph's
Paint graph when there is no LayerList, which is optional
(#2441).
OBS-URL: https://build.opensuse.org/request/show/940599
OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=25
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-FontTools-test
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@@ -26,16 +26,17 @@
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-FontTools%{psuffix}
|
||||
Version: 4.21.1
|
||||
Version: 4.28.3
|
||||
Release: 0
|
||||
Summary: Suite of Tools and Libraries for Manipulating Fonts
|
||||
License: MIT AND OFL-1.1
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/fonttools/fonttools
|
||||
Source: https://files.pythonhosted.org/packages/source/f/fonttools/fonttools-%{version}.zip
|
||||
Source1: https://raw.githubusercontent.com/fonttools/fonttools/master/Tests/cu2qu/data/curves.json
|
||||
BuildRequires: %{python_module devel}
|
||||
# The PyPI archive lacks some test files, but the source is identical to the github archive
|
||||
Source: https://github.com/fonttools/fonttools/archive/refs/tags/%{version}.tar.gz#/fonttools-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module devel >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -56,11 +57,10 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module Brotli >= 1.0.1}
|
||||
BuildRequires: %{python_module fs >= 2.2.0}
|
||||
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
|
||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||
Obsoletes: fonttools < %{version}-%{release}
|
||||
@@ -81,7 +81,6 @@ convert TrueType fonts to an XML based format (called TTX) and back.
|
||||
%setup -q -n fonttools-%{version}
|
||||
# Remove shebang
|
||||
sed -i -e '/^#!\//, 1d' Lib/fontTools/mtiLib/__init__.py
|
||||
cp %{SOURCE1} Tests/cu2qu/data/curves.json
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -93,9 +92,8 @@ cp %{SOURCE1} Tests/cu2qu/data/curves.json
|
||||
%python_clone -a %{buildroot}%{_bindir}/ttx
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyftsubset
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyftmerge
|
||||
%python_clone -a %{buildroot}%{_bindir}/fonttools
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# remove undocumented and non working script
|
||||
rm %{buildroot}%{_bindir}/fonttools
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
@@ -109,11 +107,13 @@ export LANG=en_US.UTF-8
|
||||
%python_install_alternative ttx ttx.1
|
||||
%python_install_alternative pyftsubset
|
||||
%python_install_alternative pyftmerge
|
||||
%python_install_alternative fonttools
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative ttx
|
||||
%python_uninstall_alternative pyftsubset
|
||||
%python_uninstall_alternative pyftmerge
|
||||
%python_uninstall_alternative fonttools
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE LICENSE.external
|
||||
@@ -121,6 +121,7 @@ export LANG=en_US.UTF-8
|
||||
%python_alternative %{_bindir}/pyftmerge
|
||||
%python_alternative %{_bindir}/pyftsubset
|
||||
%python_alternative %{_bindir}/ttx
|
||||
%python_alternative %{_bindir}/fonttools
|
||||
%python_alternative %{_mandir}/man1/ttx.1%{?ext_man}
|
||||
%{python_sitelib}/fontTools
|
||||
%{python_sitelib}/fonttools-%{version}*-info
|
||||
|
||||
Reference in New Issue
Block a user