diff --git a/.fonttools.metadata b/.fonttools.metadata index 162cd36..70d4463 100644 --- a/.fonttools.metadata +++ b/.fonttools.metadata @@ -1 +1 @@ -dea9afc474135b48544372fb6617dcfcde1a0ad5 SOURCES/fonttools-3.28.0.zip +dc0f719f6637c539a8ed9177193ad3ef87459b88 SOURCES/fonttools-4.19.1.tar.gz diff --git a/.gitignore b/.gitignore index fdf11d1..651cada 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/fonttools-3.28.0.zip +SOURCES/fonttools-4.19.1.tar.gz diff --git a/SPECS/fonttools.spec b/SPECS/fonttools.spec index be66795..fa9edce 100644 --- a/SPECS/fonttools.spec +++ b/SPECS/fonttools.spec @@ -1,59 +1,56 @@ -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - %global pypi_name fonttools %global desc \ -FontTools/TTX is a library to manipulate font files from Python. It supports \ -reading and writing of TrueType/OpenType fonts, reading and writing of AFM \ -files, reading (and partially writing) of PS Type 1 fonts. The package also \ -contains a tool called “TTX” which converts TrueType/OpenType fonts to and \ -from an XML-based format. +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. Name: fonttools -Version: 3.28.0 -Release: 2%{?dist} +Version: 4.19.1 +Release: 3%{?dist} Summary: Tools to manipulate font files License: MIT -URL: https://github.com/%{name}/%{name}/ -Source0: https://github.com/%{name}/%{name}/releases/download/%{version}/%{pypi_name}-%{version}.zip +URL: https://github.com/fonttools/fonttools/ +Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz Requires: python3-fonttools +Requires: python3-setuptools BuildArch: noarch Provides: ttx = %{version}-%{release} %description %{desc} -%if %{with python2} -%package -n python2-fonttools -Summary: Python 2 fonttools library -%{?python_provide:%python_provide python2-%{name}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools_scm -BuildRequires: numpy -BuildArch: noarch -Requires: numpy - -%description -n python2-fonttools -%{desc} -%endif # with python2 - %package -n python3-fonttools Summary: Python 3 fonttools library %{?python_provide:%python_provide python3-%{name}} BuildRequires: python3-devel -BuildRequires: python3-numpy +BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest +BuildRequires: python3-brotli +BuildRequires: python3-munkres +BuildRequires: python3-scipy +BuildRequires: python3-fs + BuildArch: noarch -Requires: python3-numpy + +Requires: python3-brotli +Requires: python3-munkres +Requires: python3-lxml +Requires: python3-scipy +Requires: python3-fs + +# From 3.31.0 and on, python3-fonttools incorporated the ufolib project under fontTools.ufoLib +# python-ufolib has been retired and fontTools.ufoLib should be used instead. +# See https://github.com/fonttools/fonttools/releases/tag/3.31.0 for further reference +Obsoletes: python3-ufolib <= 2.1.1-11 %description -n python3-fonttools %{desc} +%{?python_extras_subpkg:%python_extras_subpkg -n python3-fonttools -i %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info ufo unicode} + %prep %autosetup rm -rf *.egg-info @@ -61,42 +58,224 @@ rm -rf *.egg-info sed -i '1d' Lib/fontTools/mtiLib/__init__.py %build -%if %{with python2} -%py2_build -%endif # with python2 %py3_build %install -%if %{with python2} -%{__python2} setup.py install --skip-build --root %{buildroot} -%endif # with python2 %{__python3} setup.py install --skip-build --root %{buildroot} +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest --ignore Tests/misc/plistlib_test.py + %files -%{_bindir}/pyftinspect %{_bindir}/pyftmerge %{_bindir}/pyftsubset %{_bindir}/ttx %{_bindir}/fonttools -%{_mandir}/man1/ttx.1.gz - -%if %{with python2} -%files -n python2-fonttools -%license LICENSE -%doc NEWS.rst README.rst -%{python2_sitelib}/fontTools -%{python2_sitelib}/%{name}-%{version}-py2.?.egg-info -%endif # with python2 +%{_mandir}/man1/ttx.1* %files -n python3-fonttools %license LICENSE %doc NEWS.rst README.rst %{python3_sitelib}/fontTools -%{python3_sitelib}/%{name}-%{version}-py3.?.egg-info +%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info %changelog -* Tue Jul 17 2018 Charalampos Stratakis - 3.28.0-2 -- Conditionalize the python2 subpackage +* Mon Aug 09 2021 Mohan Boddu - 4.19.1-3 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Thu Apr 15 2021 Mohan Boddu - 4.19.1-2 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Feb 2 14:32:49 IST 2021 Parag Nemade - 4.19.1-1 +- Update to 4.19.1 version (#1921968) + +* Wed Jan 27 10:02:16 IST 2021 Parag Nemade - 4.19.0-1 +- Update to 4.19.0 version (#1920265) + +* Tue Jan 26 2021 Fedora Release Engineering - 4.18.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Dec 18 13:37:03 IST 2020 Parag Nemade - 4.18.2-1 +- Update to 4.18.2 version (#1908485) + +* Fri Dec 11 18:47:51 IST 2020 Parag Nemade - 4.18.1-1 +- Update to 4.18.1 version (#1906095) + +* Sat Dec 5 09:13:23 IST 2020 Parag Nemade - 4.18.0-1 +- Update to 4.18.0 version (#1904631) + +* Sat Nov 21 08:48:57 IST 2020 Parag Nemade - 4.17.1-1 +- Update to 4.17.1 version (#1898343) + +* Fri Nov 13 12:13:39 IST 2020 Parag Nemade - 4.17.0-1 +- Update to 4.17.0 version (#1897467) + +* Sun Oct 18 16:32:27 IST 2020 Parag Nemade - 4.16.1-1 +- Update to 4.16.1 version (#1885448) + +* Thu Oct 1 08:45:20 IST 2020 Parag Nemade - 4.16.0-1 +- Update to 4.16.0 version (#1884087) + +* Tue Sep 22 10:40:10 IST 2020 Parag Nemade - 4.15.0-1 +- Update to 4.15.0 version (#1881283) + +* Thu Aug 20 2020 Parag Nemade - 4.14.0-1 +- Update to 4.14.0 version (#1870253) + +* Mon Jul 27 2020 Fedora Release Engineering - 4.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 11 2020 Miro Hrončok - 4.13.0-2 +- Add fonttools[ufo] and fonttools[unicode] subpackages + +* Sat Jul 11 2020 Parag Nemade - 4.13.0-1 +- Update to 4.13.0 version (#1855929) + +* Wed Jun 24 2020 Parag Nemade - 4.12.1-3 +- Add missing BR: python3-setuptools + +* Sun Jun 21 2020 Athos Ribeiro - 4.12.1-2 +- Obsolete retired python3-ufolib package + +* Tue Jun 16 2020 Parag Nemade - 4.12.1-1 +- Update to 4.12.1 version (#1847541) + +* Mon Jun 01 2020 Parag Nemade - 4.11.0-1 +- Update to 4.11.0 version (#1841433) + +* Tue May 26 2020 Miro Hrončok - 4.10.2-2 +- Rebuilt for Python 3.9 + +* Wed May 20 2020 Parag Nemade - 4.10.2-1 +- Update to 4.10.2 version (#1837964) + +* Wed May 20 2020 Parag Nemade - 4.10.1-1 +- Update to 4.10.1 version (#1837643) + +* Sun May 17 2020 Parag Nemade - 4.10.0-1 +- Update to 4.10.0 version (#1836575) + +* Fri May 08 2020 Parag Nemade - 4.9.0-3 +- enable tests + +* Thu May 07 2020 Parag Nemade - 4.9.0-2 +- Fix source tarball + +* Thu May 07 2020 Parag Nemade - 4.9.0-1 +- Update to 4.9.0 version (#1829451) + +* Sat Apr 18 2020 Parag Nemade - 4.8.1-1 +- Update to 4.8.1 version (#1824982) + +* Wed Apr 15 2020 Parag Nemade - 4.7.0-1 +- Update to 4.7.0 version (#1820763) + +* Tue Mar 31 2020 Parag Nemade - 4.6.0-3 +- Fix the changelog entry in previous build + +* Tue Mar 31 2020 Parag Nemade - 4.6.0-2 +- Resolves: rh#1809062 - Add missing Requires: on few packages + +* Wed Mar 25 2020 Parag Nemade - 4.6.0-1 +- Update to 4.6.0 version (#1816808) + +* Sat Mar 21 2020 Parag Nemade - 4.5.0-1 +- Update to 4.5.0 version (#1815641) + +* Mon Mar 16 2020 Parag Nemade - 4.4.3-1 +- Update to 4.4.3 version (#1813103) + +* Thu Feb 27 2020 Parag Nemade - 4.4.1-1 +- Update to 4.4.1 version (#1804509) + +* Tue Feb 04 2020 Parag Nemade - 4.3.0-1 +- Update to 4.3.0 version (#1796166) + +* Tue Jan 28 2020 Fedora Release Engineering - 4.2.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jan 18 2020 Parag Nemade - 4.2.4-1 +- Update to 4.2.4 version (#1788778) + +* Fri Dec 13 2019 Parag Nemade - 4.2.2-1 +- Update to 4.2.2 version (#1782256) + +* Sat Nov 30 2019 Parag Nemade - 4.2.0-1 +- Update to 4.2.0 version (#1777967) + +* Tue Nov 19 2019 Parag Nemade - 4.1.0-1 +- Update to 4.1.0 version (#1773756) + +* Mon Sep 30 2019 Parag Nemade - 4.0.2-1 +- Update to 4.0.2 version (#1755890) + +* Wed Sep 11 2019 Parag Nemade - 4.0.1-1 +- Update to 4.0.1 version (#1751254) + +* Fri Aug 23 2019 Parag Nemade - 4.0.0-1 +- Update to 4.0.0 version (#1744582) + +* Mon Aug 19 2019 Miro Hrončok - 3.44.0-2 +- Rebuilt for Python 3.8 + +* Sat Aug 17 2019 Parag Nemade - 3.44.0-1 +- Update to 3.44.0 version (#1742448) + +* Thu Jul 25 2019 Fedora Release Engineering - 3.43.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jun 19 2019 Parag Nemade - 3.43.1-1 +- Update to 3.43.1 version (#1721658) + +* Sat Jun 01 2019 Parag Nemade - 3.42.0-1 +- Update to 3.42.0 version (#1714617) + +* Tue May 14 2019 Parag Nemade - 3.41.2-1 +- Update to 3.41.2 version (#1709287) + +* Wed May 01 2019 Parag Nemade - 3.41.0-1 +- Update to 3.41.0 version (#1704383) + +* Fri Apr 12 2019 Parag Nemade - 3.40.0-1 +- Update to 3.40.0 version (#1697579) + +* Sat Mar 23 2019 Parag Nemade - 3.39.0-1 +- Update to 3.39.0 version (#1690561) +- Removed python2 package + +* Mon Feb 18 2019 Parag Nemade - 3.38.0-1 +- Update to 3.38.0 version (#1678366) + +* Tue Feb 12 2019 Kalev Lember - 3.37.3-2 +- Add missing requires on python3-setuptools (#1676290) + +* Wed Feb 06 2019 Parag Nemade - 3.37.3-1 +- Update to 3.37.3 version (#1672607) + +* Thu Jan 31 2019 Fedora Release Engineering - 3.37.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 29 2019 Parag Nemade - 3.37.0-1 +- Update to 3.37.0 version (#1670213) + +* Fri Dec 21 2018 Parag Nemade - 3.34.2-1 +- Update to 3.34.2 version + +* Fri Nov 23 2018 Parag Nemade - 3.32.0-1 +- Update to 3.32.0 version + +* Thu Oct 25 2018 Parag Nemade - 3.31.0-1 +- Update to 3.31.0 version (#1642082) + +* Sat Jul 28 2018 Parag Nemade - 3.29.0-1 +- Update to 3.29.0 version (#1609078) + +* Fri Jul 13 2018 Fedora Release Engineering - 3.28.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jul 02 2018 Miro Hrončok - 3.28.0-2 +- Rebuilt for Python 3.7 * Sat Jun 23 2018 Parag Nemade - 3.28.0-1 - Update to 3.28.0 version