Accepting request 1189549 from home:frantisek.simorda:branches:openSUSE:Factory
- Update to 4.53.1 * [feaLib] Improve the sharing of inline chained lookups (#3559) * [otlLib] Correct the calculation of OS/2.usMaxContext with reversed chaining contextual single substitutions (#3569) * [misc.visitor] Visitors search the inheritance chain of objects they are visiting (#3581) - Changes from 4.53.0 * [ttLib.removeOverlaps] Support CFF table to aid in downconverting CFF2 fonts (#3528) * [avar] Fix crash when accessing not-yet-existing attribute (#3550) * [docs] Add buildMathTable to otlLib.builder documentation (#3540) * [feaLib] Allow UTF-8 with BOM when reading features (#3495) * [SVGPathPen] Revert rounding coordinates to two decimal places by default (#3543) * [varLib.instancer] Refix output filename decision-making (#3545, #3544, #3548) - Changes from 4.52.4 * [varLib.cff] Restore and deprecate convertCFFtoCFF2 that was removed in 4.52.0 release as it is used by downstream projects (#3535). - Changes from 4.52.3 * Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file which caused the upload to PyPI to fail for 4.52.2. No other code changes. - Changes from 4.52.2 * [varLib.interpolatable] Ensure that scipy/numpy output is JSON-serializable (#3522, #3526) * [housekeeping] Regenerate table lists, to fix pyinstaller packaging of the new VARC table (#3531, #3529) * [cffLib] Make CFFToCFF2 and CFF2ToCFF more robust (#3521, #3525) - Changes from 4.52.1 * Fixed a small syntax error in the reStructuredText-formatted NEWS.rst file which caused the upload to PyPI to fail for 4.52.0. - Changes from 4.52.0 * Added support for the new VARC (Variable Composite) table that is being proposed to OpenType spec (#3395). * For more info: https://github.com/harfbuzz/boring-expansion-spec/blob/main/VARC.md * [ttLib.main] Fixed decompiling all tables (90fed08). * [feaLib] Don't reference the same lookup index multiple times within the same feature record, it is only applied once anyway (#3520). * [cffLib] Moved methods to desubroutinize, remove hints and unused subroutines from subset module to cffLib (#3517). * [varLib.instancer] Added support for partial-instancing CFF2 tables! Also, added method to down-convert from CFF2 to CFF 1.0, and CLI entry points to convert CFF<->CFF2 (#3506). * [subset] Prune unused user name IDs even with --name-IDs='*' (#3410). * [ttx] use GNU-style getopt to intermix options and positional arguments (#3509). * [feaLib.variableScalar] Fixed value_at_location() method (#3491) * [psCharStrings] Shorten output of encodeFloat (#3492). * [bezierTools] Fix infinite-recursion in calcCubicArcLength (#3502). * [avar2] Implement avar2 support in TTFont.getGlyphSet() (#3473). - Changes from 4.51.0 * [ttLib] Optimization on loading aux fields (#3464). * [ttFont] Add reorderGlyphs (#3468). - Changes from 4.50.0 * [pens] Added decomposing filter pens that draw components as regular contours (#3460). * [instancer] Drop explicit no-op axes from TupleVariations (#3457). * [cu2qu/ufo] Return set of modified glyph names from fonts_to_quadratic (#3456). - Changes from 4.49.0 * [otlLib] Add API for building MATH table (#3446) - Changes from 4.48.1 * Fixed uploading wheels to PyPI, no code changes since v4.48.0. - Changes from 4.48.0 * [varLib] Do not log when there are no OTL tables to be merged. * [setup.py] Do not restrict lxml<5 any more, tests pass just fine with lxml>=5. * [feaLib] Remove glyph and class names length restrictions in FEA (#3424). * [roundingPens] Added transformRoundFunc parameter to the rounding pens to allow for custom rounding of the components' transforms (#3426). * [feaLib] Keep declaration order of ligature components within a ligature set, instead of sorting by glyph name (#3429). * [feaLib] Fixed ordering of alternates in aalt lookups, following the declaration order of feature references within the aalt feature block (#3430). * [varLib.instancer] Fixed a bug in the instancer's IUP optimization (#3432). * [sbix] Support sbix glyphs with new graphicType "flip" (#3433). * [svgPathPen] Added --glyphs option to dump the SVG paths for the named glyphs in the font (0572f78). * [designspaceLib] Added "description" attribute to <mappings> and <mapping> elements, and allow multiple <mappings> elements to group <mapping> elements that are logically related (#3435, #3437). * [otlLib] Correctly choose the most compact GSUB contextual lookup format (#3439). OBS-URL: https://build.opensuse.org/request/show/1189549 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=54
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
BIN
fonttools-4.47.2.tar.gz
LFS
Normal file
BIN
fonttools-4.47.2.tar.gz
LFS
Normal file
Binary file not shown.
BIN
fonttools-4.53.1.tar.gz
LFS
Normal file
BIN
fonttools-4.53.1.tar.gz
LFS
Normal file
Binary file not shown.
1149
python-FontTools.changes
Normal file
1149
python-FontTools.changes
Normal file
File diff suppressed because it is too large
Load Diff
132
python-FontTools.spec
Normal file
132
python-FontTools.spec
Normal file
@@ -0,0 +1,132 @@
|
||||
#
|
||||
# spec file for package python-FontTools
|
||||
#
|
||||
# Copyright (c) 2024 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"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-FontTools%{psuffix}
|
||||
Version: 4.53.1
|
||||
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
|
||||
# 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
|
||||
BuildRequires: %{python_module devel >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
# some packages should require fonttools[ufo] but expect fs to be pulled in by default.
|
||||
Requires: python-fs >= 2.2.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-Brotli >= 1.1.0
|
||||
Recommends: python-freetype-py >= 2.4.0
|
||||
Recommends: python-lxml
|
||||
Recommends: python-munkres >= 1.1.4
|
||||
Recommends: python-reportlab
|
||||
Recommends: python-scipy >= 1.11.4
|
||||
Recommends: python-sympy >= 1.12
|
||||
Recommends: python-ufoLib2 >= 0.16.0
|
||||
Recommends: python-unicodedata2 >= 15.1.0
|
||||
Recommends: python-zopfli >= 0.2.3
|
||||
Provides: python-fonttools = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Brotli >= 1.1.0}
|
||||
BuildRequires: %{python_module fs >= 2.4.16}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
Obsoletes: fonttools < %{version}-%{release}
|
||||
Provides: 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
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_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
|
||||
%python_clone -a %{buildroot}%{_bindir}/fonttools
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
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
|
||||
%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
|
||||
%doc README.rst NEWS.rst
|
||||
%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}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user