Name: fonttools Version: 4.32.0 Release: 1 Summary: Tools to manipulate font files License: MIT URL: https://github.com/fonttools/fonttools/ Source0: %{url}/archive/%{version}.tar.gz#/fonttools-%{version}.tar.gz Requires: python3-fonttools Requires: python3-setuptools BuildArch: noarch Provides: ttx = %{version}-%{release} %description FontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, that can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats. The project has an MIT open-source licence. %package -n python3-fonttools Summary: Python 3 fonttools library BuildRequires: python3-devel python3-numpy python3-setuptools_scm BuildRequires: python3-setuptools BuildArch: noarch %{?python_provide:%python_provide python3-fonttools} %description -n python3-fonttools FontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, that can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats. The project has an MIT open-source licence. %package help Summary: Help document for the fonttools %description help Help document for the fonttools. %prep %autosetup -p1 sed -i 1d Lib/fontTools/mtiLib/__init__.py rm -rf *.egg-info %build %py3_build %install %{__python3} setup.py install --skip-build --root %{buildroot} %files %{_bindir}/pyf* %{_bindir}/ttx %{_bindir}/fonttools %files help %doc NEWS.rst README.rst %{_mandir}/man1/ttx.1.gz %files -n python3-fonttools %doc LICENSE %{python3_sitelib}/fontTools %{python3_sitelib}/fonttools-%{version}-py3.*.egg-info %changelog * Sun Apr 24 2022 caodongxia - 4.32.0-1 - update to 4.32.0 * Wed Apr 06 2022 houyingchao - 3.29.0-6 - Replace totring with tobytes - Replace fromtring with frombytes * Wed Mar 30 2022 baizhonggui - 3.29.0-5 - support py3.10+ wildcard to fix build error * Tue Oct 26 2021 chenchen - 3.29.0-4 - change the spec file name to be the same as the repo name * Thu Oct 22 2020 huanghaitao - 3.29.0-3 - Disable python2 module * Thu Nov 28 2019 likexin - 3.29.0-2 - Package init