diff --git a/fonttools-4.32.0.tar.gz b/fonttools-4.32.0.tar.gz deleted file mode 100644 index 38c81e9ec4416563d010f4486dbf2d0716fd6aa1..0000000000000000000000000000000000000000 Binary files a/fonttools-4.32.0.tar.gz and /dev/null differ diff --git a/fonttools-4.38.0.zip b/fonttools-4.38.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..faf6ee6ce5530a622bc759cdc1ab376459a4e7d0 Binary files /dev/null and b/fonttools-4.38.0.zip differ diff --git a/python-fonttools.spec b/python-fonttools.spec index ee4b9e0e8c6020e2621b43d2f582d6c56dcfdd06..b5b2573fe8e2a239dfd757f7e384d1a8614bab1a 100644 --- a/python-fonttools.spec +++ b/python-fonttools.spec @@ -1,14 +1,15 @@ -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} +%global _empty_manifest_terminate_build 0 +Name: python-fonttools +Version: 4.38.0 +Release: 1 +Summary: Tools to manipulate font files +License: MIT +URL: https://github.com/fonttools/fonttools/ +Source0: https://files.pythonhosted.org/packages/55/5c/a4a25cf6db42d113d8f626901bb156b2f7cf7c7564a6bbc7b5cd6f7cb484/fonttools-4.38.0.zip +BuildArch: noarch + +Requires: python3-fonttools +Requires: python3-setuptools %description FontTools is a library for manipulating fonts, written in Python. The project @@ -18,13 +19,10 @@ 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} - +Summary: Tools to manipulate font files +Provides: python-fonttools = %{version}-%{release} +BuildRequires: python3-devel python3-numpy python3-setuptools_scm +BuildRequires: python3-setuptools %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 @@ -32,38 +30,56 @@ 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 +%package help +Summary: Development documents and examples for fonttools +Provides: python3-fonttools-doc +%description help Help document for the fonttools. %prep -%autosetup -p1 -sed -i 1d Lib/fontTools/mtiLib/__init__.py -rm -rf *.egg-info +%autosetup -n fonttools-%{version} %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 +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-fonttools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Nov 22 2022 liqiuyu - 4.38.0-1 +- Update package to version 4.38.0 + * Sun Apr 24 2022 caodongxia - 4.32.0-1 - update to 4.32.0