17
0
Files
python-FontTools/python-FontTools.spec

134 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
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
2021-12-15 07:34:12 +00:00
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%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() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-FontTools%{psuffix}
Accepting request 1075673 from home:dirkmueller:Factory - update to 4.39.3: * [sbix] Fixed TypeError when compiling empty glyphs whose imageData is None * [ttFont] Fixed AttributeError on python <= 3.10 when opening a TTFont from a tempfile * SpooledTemporaryFile, seekable method only added on python 3.11 (#3052). * [varLib] Fixed regression introduced in 4.39.1 whereby an incomplete 'STAT' table would be built even though a DesignSpace v5 did contain 'STAT' definitions (#3045, #3046). * [avar2] Added experimental support for reading/writing avar version 2 as specified in this draft proposal: https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md * [glifLib] Wrap underlying XML library exceptions with GlifLibError when parsing GLIFs, and also print the name and path of the glyph that fails to be parsed (#3042). * [feaLib] Consult avar for normalizing user-space values in ConditionSets and in VariableScalars (#3042, #3043). * [ttProgram] Handle string input to Program.fromAssembly() (#3038). * [otlLib] Added a config option to emit GPOS 7 lookups, currently disabled by default because of a macOS bug (#3034). * [COLRv1] Added method to automatically compute ClipBoxes (#3027). * [ttFont] Fixed getGlyphID to raise KeyError on missing glyphs instead of returning None. * [sbix] Fixed UnboundLocalError: cannot access local variable 'rawdata' (#3031). * [varLib] When building VF, do not overwrite a pre-existing ``STAT`` table that was built with feaLib from FEA feature OBS-URL: https://build.opensuse.org/request/show/1075673 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=40
2023-03-31 07:47:48 +00:00
Version: 4.39.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
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
2021-12-15 07:34:12 +00:00
# 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}.tar.gz
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
2021-12-15 07:34:12 +00:00
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Recommends: python-Brotli >= 1.0.1
# some packages should require fonttools[ufo] but expect fs to be pulled in by default.
Requires: python-fs >= 2.2.0
Recommends: python-lxml >= 4.0
Recommends: python-munkres >= 1.1.4
Recommends: python-sympy
Recommends: python-unicodedata2 >= 14.0.0
Recommends: python-zopfli >= 0.1.6
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-reportlab
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Brotli >= 1.0.1}
BuildRequires: %{python_module fs >= 2.2.0}
BuildRequires: %{python_module munkres >= 1.1.4}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module zopfli >= 0.1.6}
%endif
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Obsoletes: fonttools < %{version}-%{release}
Provides: fonttools = %{version}-%{release}
Accepting request 584507 from home:TheBlackCat:branches:M17N - Update to version 3.24.1 * [varLib] Don’t remap the same DeviceTable twice in VarStore optimizer (#1206). * [varLib] Add --disable-iup option to fonttools varLib script, and a optimize=True keyword argument to varLib.build function, to optionally disable IUP optimization while building varfonts. * [ttCollection] Fixed issue while decompiling ttc with python3 (#1207). - Update to version 3.24.0 * [ttGlyphPen] Decompose composite glyphs if any components’ transform is too large to fit a F2Dot14 value, or clamp transform values that are (almost) equal to +2.0 to make them fit and avoid decomposing (#1200, #1204, #1205). * [ttx] Added new -g option to dump glyphs from the glyf table splitted as individual ttx files (#153, #1035, #1132, #1202). * Copied ufoLib.filenames module to fontTools.misc.filenames, used for the ttx split-glyphs option (#1202). * [feaLib] Added support for cvParameters blocks in Character Variant feautures cv01-cv99 (#860, #1169). * [Snippets] Added checksum.py script to generate/check SHA1 hash of ttx files (#1197). * [varLib.mutator] Fixed issue while instantiating some variable fonts whereby the horizontal advance width computed from gvar phantom points could turn up to be negative (#1198). * [varLib/subset] Fixed issue with subsetting GPOS variation data not picking up ValueRecord Device objects (54fd71f). * [feaLib/voltLib] In all AST elements, the location is no longer a required positional argument, but an optional kewyord argument (defaults to None). This will make it easier to construct feature AST from code (#1201). - Update to version 3.23.0 * [designspaceLib] Added an optional lib element to the designspace as a whole, as well as to the instance elements, to store arbitrary data in a property list dictionary, similar to the UFO’s lib. Added an optional font attribute to the SourceDescriptor, to allow operating on in-memory font objects (#1175). * [cffLib] Fixed issue with lazy-loading of attributes when attempting to set the CFF TopDict.Encoding (#1177, #1187). * [ttx] Fixed regression introduced in 3.22.0 that affected the split tables -s option (#1188). * [feaLib] Added IncludedFeaNotFound custom exception subclass, raised when an included feature file cannot be found (#1186). * [otTables] Changed VarIdxMap to use glyph names internally instead of glyph indexes. The old ttx dumps of HVAR/VVAR tables that contain indexes can still be imported (21cbab8, 38a0ffb). * [varLib] Implemented VarStore optimizer (#1184). * [subset] Implemented pruning of GDEF VarStore, HVAR and MVAR (#1179). * [sfnt] Restore backward compatiblity with numFonts attribute of SFNTReader object (#1181). * [merge] Initial support for merging LangSysRecords (#1180). * [ttCollection] don’t seek(0) when writing to possibly unseekable strems. * [subset] Keep all --name-IDs from 0 to 6 by default (#1170, #605, #114). * [cffLib] Added width module to calculate optimal CFF default and nominal glyph widths. * [varLib] Don’t fail if STAT already in the master fonts (#1166). - Fix conflict with old single-package version OBS-URL: https://build.opensuse.org/request/show/584507 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=3
2018-03-08 17:26:12 +00:00
%endif
Provides: python-fonttools = %{version}-%{release}
%python_subpackages
%description
FontTools is a suite of tools and libraries for manipulating fonts
written in Python.
It currently reads and writes TrueType font files, reads PostScript
Type 1 fonts, and more. It contains two command line programs to
convert TrueType fonts to an XML based format (called TTX) and back.
%prep
%autosetup -p1 -n fonttools-%{version}
# Remove shebang
sed -i -e '/^#!\//, 1d' Lib/fontTools/mtiLib/__init__.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_mandir}/man1/ttx.1
%python_clone -a %{buildroot}%{_bindir}/ttx
%python_clone -a %{buildroot}%{_bindir}/pyftsubset
%python_clone -a %{buildroot}%{_bindir}/pyftmerge
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
2021-12-15 07:34:12 +00:00
%python_clone -a %{buildroot}%{_bindir}/fonttools
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
Accepting request 584507 from home:TheBlackCat:branches:M17N - Update to version 3.24.1 * [varLib] Don’t remap the same DeviceTable twice in VarStore optimizer (#1206). * [varLib] Add --disable-iup option to fonttools varLib script, and a optimize=True keyword argument to varLib.build function, to optionally disable IUP optimization while building varfonts. * [ttCollection] Fixed issue while decompiling ttc with python3 (#1207). - Update to version 3.24.0 * [ttGlyphPen] Decompose composite glyphs if any components’ transform is too large to fit a F2Dot14 value, or clamp transform values that are (almost) equal to +2.0 to make them fit and avoid decomposing (#1200, #1204, #1205). * [ttx] Added new -g option to dump glyphs from the glyf table splitted as individual ttx files (#153, #1035, #1132, #1202). * Copied ufoLib.filenames module to fontTools.misc.filenames, used for the ttx split-glyphs option (#1202). * [feaLib] Added support for cvParameters blocks in Character Variant feautures cv01-cv99 (#860, #1169). * [Snippets] Added checksum.py script to generate/check SHA1 hash of ttx files (#1197). * [varLib.mutator] Fixed issue while instantiating some variable fonts whereby the horizontal advance width computed from gvar phantom points could turn up to be negative (#1198). * [varLib/subset] Fixed issue with subsetting GPOS variation data not picking up ValueRecord Device objects (54fd71f). * [feaLib/voltLib] In all AST elements, the location is no longer a required positional argument, but an optional kewyord argument (defaults to None). This will make it easier to construct feature AST from code (#1201). - Update to version 3.23.0 * [designspaceLib] Added an optional lib element to the designspace as a whole, as well as to the instance elements, to store arbitrary data in a property list dictionary, similar to the UFO’s lib. Added an optional font attribute to the SourceDescriptor, to allow operating on in-memory font objects (#1175). * [cffLib] Fixed issue with lazy-loading of attributes when attempting to set the CFF TopDict.Encoding (#1177, #1187). * [ttx] Fixed regression introduced in 3.22.0 that affected the split tables -s option (#1188). * [feaLib] Added IncludedFeaNotFound custom exception subclass, raised when an included feature file cannot be found (#1186). * [otTables] Changed VarIdxMap to use glyph names internally instead of glyph indexes. The old ttx dumps of HVAR/VVAR tables that contain indexes can still be imported (21cbab8, 38a0ffb). * [varLib] Implemented VarStore optimizer (#1184). * [subset] Implemented pruning of GDEF VarStore, HVAR and MVAR (#1179). * [sfnt] Restore backward compatiblity with numFonts attribute of SFNTReader object (#1181). * [merge] Initial support for merging LangSysRecords (#1180). * [ttCollection] don’t seek(0) when writing to possibly unseekable strems. * [subset] Keep all --name-IDs from 0 to 6 by default (#1170, #605, #114). * [cffLib] Added width module to calculate optimal CFF default and nominal glyph widths. * [varLib] Don’t fail if STAT already in the master fonts (#1166). - Fix conflict with old single-package version OBS-URL: https://build.opensuse.org/request/show/584507 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=3
2018-03-08 17:26:12 +00:00
export LANG=en_US.UTF-8
%pytest -ra
# We need these files to be installed for tests, but now we need them removed
# not to confuse %%files checks
%python_expand rm -r %{buildroot}%{$python_sitelib}
rm -r %{buildroot}%{_sysconfdir}/alternatives
rm -r %{buildroot}%{_bindir}
rm -r %{buildroot}%{_mandir}
%endif
%if %{without test}
%post
%python_install_alternative ttx ttx.1
%python_install_alternative pyftsubset
%python_install_alternative pyftmerge
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
2021-12-15 07:34:12 +00:00
%python_install_alternative fonttools
%postun
%python_uninstall_alternative ttx
%python_uninstall_alternative pyftsubset
%python_uninstall_alternative pyftmerge
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
2021-12-15 07:34:12 +00:00
%python_uninstall_alternative fonttools
%files %{python_files}
%license LICENSE LICENSE.external
%doc README.rst NEWS.rst
%python_alternative %{_bindir}/pyftmerge
%python_alternative %{_bindir}/pyftsubset
%python_alternative %{_bindir}/ttx
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
2021-12-15 07:34:12 +00:00
%python_alternative %{_bindir}/fonttools
%python_alternative %{_mandir}/man1/ttx.1%{?ext_man}
%{python_sitelib}/fontTools
%{python_sitelib}/fonttools-%{version}*-info
%endif
%changelog