python-fonttools/python-fonttools.spec

92 lines
2.7 KiB
RPMSpec
Raw Normal View History

2019-12-03 17:36:34 +08:00
Name: fonttools
2023-05-18 11:11:45 +08:00
Version: 4.39.4
2024-01-11 09:46:43 +08:00
Release: 2
2019-12-03 17:36:34 +08:00
Summary: Tools to manipulate font files
License: MIT
URL: https://github.com/fonttools/fonttools/
2023-05-18 11:11:45 +08:00
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
2024-01-11 09:46:43 +08:00
Patch0: CVE-2023-45139.patch
2019-12-03 17:36:34 +08:00
Requires: python3-fonttools
2022-04-24 16:11:27 +08:00
Requires: python3-setuptools
2019-12-03 17:36:34 +08:00
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
2022-04-24 16:11:27 +08:00
BuildRequires: python3-setuptools
2019-12-03 17:36:34 +08:00
BuildArch: noarch
2022-04-24 16:11:27 +08:00
2019-12-03 17:36:34 +08:00
%{?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
2022-03-30 17:56:03 +08:00
%{python3_sitelib}/fonttools-%{version}-py3.*.egg-info
2019-12-03 17:36:34 +08:00
%changelog
2024-01-11 09:46:43 +08:00
* Thu Jan 11 2024 wangkai <13474090681@163.com> - 4.39.4-2
- Fix CVE-2023-45139
2023-05-18 11:11:45 +08:00
* Thu May 18 2023 Ge Wang <wang__ge@126.com> - 4.39.4-1
- Update to 4.39.4
2022-04-24 16:11:27 +08:00
* Sun Apr 24 2022 caodongxia <caodongxia@h-partners.com> - 4.32.0-1
- update to 4.32.0
* Wed Apr 06 2022 houyingchao <houyingchao@h-partners.com> - 3.29.0-6
- Replace totring with tobytes
- Replace fromtring with frombytes
2022-03-30 17:56:03 +08:00
* Wed Mar 30 2022 baizhonggui <baizhonggui@huawei.com> - 3.29.0-5
- support py3.10+ wildcard to fix build error
* Tue Oct 26 2021 chenchen <chen_aka_jan@163.com> - 3.29.0-4
- change the spec file name to be the same as the repo name
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