!5 remove python2
From: @zhangtao2020 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
8557591eba
@ -1,6 +1,6 @@
|
||||
Name: fonttools
|
||||
Version: 3.29.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Tools to manipulate font files
|
||||
License: MIT
|
||||
URL: https://github.com/fonttools/fonttools/
|
||||
@ -16,20 +16,6 @@ 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 python2-fonttools
|
||||
Summary: Python 2 fonttools library
|
||||
BuildRequires: python2-devel python2-setuptools_scm numpy
|
||||
BuildArch: noarch
|
||||
Requires: numpy
|
||||
%{?python_provide:%python_provide python2-fonttools}
|
||||
|
||||
%description -n python2-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 -n python3-fonttools
|
||||
Summary: Python 3 fonttools library
|
||||
BuildRequires: python3-devel python3-numpy python3-setuptools_scm
|
||||
@ -56,11 +42,9 @@ sed -i 1d Lib/fontTools/mtiLib/__init__.py
|
||||
rm -rf *.egg-info
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
|
||||
%files
|
||||
@ -72,16 +56,14 @@ rm -rf *.egg-info
|
||||
%doc NEWS.rst README.rst
|
||||
%{_mandir}/man1/ttx.1.gz
|
||||
|
||||
%files -n python2-fonttools
|
||||
%doc LICENSE
|
||||
%{python2_sitelib}/fontTools
|
||||
%{python2_sitelib}/fonttools-%{version}-py2.?.egg-info
|
||||
|
||||
%files -n python3-fonttools
|
||||
%doc LICENSE
|
||||
%{python3_sitelib}/fontTools
|
||||
%{python3_sitelib}/fonttools-%{version}-py3.?.egg-info
|
||||
|
||||
%changelog
|
||||
* Thu Oct 22 2020 huanghaitao <huannghaitao8@huawei.com> - 3.29.0-3
|
||||
- Disable python2 module
|
||||
|
||||
* Thu Nov 28 2019 likexin<likexin4@huawei.com> - 3.29.0-2
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user