python-fonttools/fonttools.spec

83 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-12-03 17:36:34 +08:00
Name: fonttools
Version: 3.29.0
Release: 6
2019-12-03 17:36:34 +08:00
Summary: Tools to manipulate font files
License: MIT
URL: https://github.com/fonttools/fonttools/
Source0: %{url}/releases/download/%{version}/fonttools-%{version}.zip
2022-01-07 14:18:05 +08:00
Patch01: replace-fromtring-with-frombytes.patch
2022-01-11 10:44:11 +08:00
Patch02: replace-totring-with-tobytes.patch
Patch03: fix-test.patch
2019-12-03 17:36:34 +08:00
Requires: python3-fonttools
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
BuildArch: noarch
Requires: python3-numpy
%{?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
* Mon Jan 9 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 3.29.0-6
- fix test
2022-01-11 10:44:11 +08:00
* Tue Jan 11 2022 houyingchao <houyingchao@huawei.com> - 3.29.0-5
- Replace totring with tobytes
2022-01-07 14:18:05 +08:00
* Fri Jan 07 2022 houyingchao <houyingchao@huawei.com> - 3.29.0-4
- Replace fromtring with frombytes
2020-10-30 10:34:02 +08:00
* Thu Oct 22 2020 huanghaitao <huannghaitao8@huawei.com> - 3.29.0-3
- Disable python2 module
2019-12-03 17:36:34 +08:00
* Thu Nov 28 2019 likexin<likexin4@huawei.com> - 3.29.0-2
- Package init