Compare commits

..

45 commits

Author SHA1 Message Date
Parag Nemade
ba93498f65
Update to 4.61.1 version (#2421833) 2025-12-16 08:57:06 +05:30
Yaakov Selkowitz
171784bebd Conditionalize unicode extra
121368896a
resulted in a new dependency on `python-unicodedata2`, which is just a
backport of the Python Standard Library `unicodedata` from the latest (in
development) Python version.  As fonttools is used in RHEL only for
graphite2's test suite without any extras and is not shipped, and the code
falls back to the `unicodedata` of the Python version in use if
`unicodedata2` is absent, this is unnecessary for RHEL.

https://github.com/fedora-eln/eln/issues/375
2025-12-10 00:11:37 -05:00
Parag Nemade
208f44ae44
Update to 4.61.0 version (#2419183) 2025-12-09 13:08:22 +05:30
Parag Nemade
4f5345a356
Update to 4.60.1 version (#2400374) 2025-10-02 07:57:22 +05:30
Python Maint
503715407c Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:16:59 +02:00
Parag Nemade
5b4b68e885
Update to 4.60.0 version (#2396057) 2025-09-17 18:27:50 +05:30
Parag Nemade
3e87a8dc12
Update to 4.59.2 version (#2391330) 2025-08-28 14:28:13 +05:30
Python Maint
cc3689ded1 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:47:30 +02:00
Parag Nemade
4735c283c8
Update to 4.59.1 version (#2388618) 2025-08-15 10:43:01 +05:30
Fedora Release Engineering
1f06319cb0 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 20:41:46 +00:00
Parag Nemade
5bc7da3940
Skip failing test test_ttcompile_timestamp_calcs 2025-07-18 15:38:24 +05:30
Parag Nemade
c5979c9478
Update to 4.59.0 version (#2381317) 2025-07-16 22:17:14 +05:30
Parag Nemade
86bb865303
Update to 4.58.5 version (#2376209) 2025-07-04 11:07:31 +05:30
Benjamin A. Beasley
71570c8831 Update to 4.58.4 version (#2370864)
- No longer bootstrapping (build with tests enabled)
2025-06-16 11:54:17 -04:00
Python Maint
b866a13c04 Bootstrap for Python 3.14 2025-06-15 23:18:04 +02:00
Python Maint
b6b94bb1b9 Bootstrap for Python 3.14 2025-06-03 08:53:26 +02:00
Parag Nemade
7a93711201
Update to 4.58.1 version (#2368984) 2025-05-29 19:56:13 +05:30
Parag Nemade
d2ca9aa9ff
Update to 4.58.0 version (#2365442) 2025-05-12 08:31:43 +05:30
Parag Nemade
78b8f75978
Update to 4.57.0 version (#2357231) 2025-04-04 08:50:21 +05:30
Benjamin A. Beasley
923a4d8217 Enable the repacker extra in F42+ 2025-03-15 21:24:56 -04:00
Benjamin A. Beasley
c2ffcae40e Write spec-file expressions more nicely 2025-03-15 21:20:31 -04:00
Parag Nemade
d95f3a054b
Update to 4.56.0 version (#2342588) 2025-02-08 21:43:09 +05:30
Parag Nemade
c7e0745625
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
Update to 4.55.6 version (#2341748)
2025-01-25 08:21:31 +05:30
Parag Nemade
b6ffec5e40
Update to 4.55.5 version (#2341748) 2025-01-23 18:43:58 +05:30
Parag Nemade
78d6079a5f
Update to 4.55.4 version (#2339159) 2025-01-22 08:19:40 +05:30
Fedora Release Engineering
e02ed66adc Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 18:37:39 +00:00
Romain Geissler
f0a77c7e8c
Build the graphite subpackage on EPEL 10 now that python-lz4 is available. 2025-01-12 17:12:05 +00:00
Romain Geissler
9b7a8ffaf0
Update extra dependencies for EPEL.
Fixes rhbz#2329668.
2024-12-17 23:17:10 +00:00
Parag Nemade
1215fae60b
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
Update to 4.55.3 version (#2331592)
2024-12-15 15:14:27 +05:30
Parag Nemade
4ee7363ffa
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
Update to 4.55.2 version (#2330109)
2024-12-07 17:44:59 +05:30
Parag Nemade
12c52c0a4f
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
Update to 4.55.0 version (#2326307)
2024-11-15 10:04:13 +05:30
Yaakov Selkowitz
46b12c43ba Avoid tox dependency
RHEL does not include tox, but even in Fedora it add much value relative
to its dependencies, and %pytest is already being used directly.
2024-11-05 03:29:19 -05:00
Karolina Surma
f29dae9a74 Remove pytest-randomly from dependencies if tests are disabled 2024-10-30 12:04:06 +01:00
Karolina Surma
f6a2615227 Add interpolatable_extra bcond
Early in the process of new Python bootstrap we don't have scipy
available.
In order to unblock the rebuild, we need to switch off this extra too.
2024-10-30 12:03:29 +01:00
Benjamin A. Beasley
54cd40508f Port to pyproject-rpm-macros (modern Python guidelines)
- Allow for more fine-grained control of extras based on available deps.
2024-10-13 19:03:49 -04:00
Parag Nemade
c3f35c8f48
Update to 4.54.1 version (#2314462) 2024-09-26 01:46:56 +05:30
Parag Nemade
d32821aafa
Add tmt testcase for CI 2024-08-28 15:33:12 +05:30
Fedora Release Engineering
6bea4c2942 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 23:27:28 +00:00
Parag Nemade
308a9ea73b
Update to 4.53.1 version (#2296086) 2024-07-08 11:29:57 +05:30
Parag Nemade
a228bfa90f
Update to 4.53.0 version (#2284160) 2024-06-27 19:26:20 +05:30
Python Maint
00089bb9f1 Rebuilt for Python 3.13 2024-06-18 01:10:54 +02:00
Python Maint
fa371d9577 Bootstrap for Python 3.13 2024-06-07 10:03:46 +02:00
Parag Nemade
11ccdf15ba
Update to 4.52.4 version (#2283255) 2024-05-28 18:49:47 +05:30
Parag Nemade
8f06912e74
Generate extra subpackages only for Fedora release 2024-05-28 16:52:50 +05:30
Parag Nemade
958bf1d8e3
Update to 4.51.0 version (#2273774) 2024-04-10 08:14:21 +05:30
9 changed files with 372 additions and 89 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

24
.gitignore vendored
View file

@ -148,3 +148,27 @@ fonttools-2.3.tar.gz
/fonttools-4.48.1.tar.gz
/fonttools-4.49.0.tar.gz
/fonttools-4.50.0.tar.gz
/fonttools-4.51.0.tar.gz
/fonttools-4.52.4.tar.gz
/fonttools-4.53.0.tar.gz
/fonttools-4.53.1.tar.gz
/fonttools-4.54.1.tar.gz
/fonttools-4.55.0.tar.gz
/fonttools-4.55.2.tar.gz
/fonttools-4.55.3.tar.gz
/fonttools-4.55.4.tar.gz
/fonttools-4.55.5.tar.gz
/fonttools-4.55.6.tar.gz
/fonttools-4.56.0.tar.gz
/fonttools-4.57.0.tar.gz
/fonttools-4.58.0.tar.gz
/fonttools-4.58.1.tar.gz
/fonttools-4.58.4.tar.gz
/fonttools-4.58.5.tar.gz
/fonttools-4.59.0.tar.gz
/fonttools-4.59.1.tar.gz
/fonttools-4.59.2.tar.gz
/fonttools-4.60.0.tar.gz
/fonttools-4.60.1.tar.gz
/fonttools-4.61.0.tar.gz
/fonttools-4.61.1.tar.gz

View file

@ -1,89 +1,193 @@
%global pypi_name fonttools
%global desc \
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.
%bcond tests 1
# Some extras are disabled in RHEL to avoid bringing in additional
# dependencies.
#
# Requires python-lz4:
%bcond graphite_extra %[ %{undefined rhel} || %{defined epel} ]
# Requires python-skia-pathops, not packaged:
%bcond pathops_extra 0
# Requires python-matplotlib:
%bcond plot_extra %[ %{undefined rhel} || %{defined epel} ]
# Requires python-uharfbuzz, currently only in F42+
%bcond repacker_extra %[ 0%{?fedora} > 41 ]
# Requires python-sympy (not yet in any EPEL):
%bcond symfont_extra %{undefined rhel}
# Requires python-fs:
%bcond ufo_extra %[ %{undefined rhel} || %{defined epel} ]
# Requires python-unicodedata2 (depending on python version):
%bcond unicode_extra %[ %{undefined rhel} || %{defined epel} ]
# Requires python-brotli, python-zopfli:
%bcond woff_extra %[ %{undefined rhel} || %{defined epel} ]
# Requires scipy, munkres, pycairo
%bcond interpolatable_extra 1
%global desc %{expand:
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: 4.50.0
Version: 4.61.1
Release: 1%{?dist}
Summary: Tools to manipulate font files
# https://spdx.org/licenses/MIT.html
License: MIT
URL: https://github.com/fonttools/fonttools/
Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
Source: %{url}/archive/%{version}/fonttools-%{version}.tar.gz
Requires: python3-fonttools
Requires: python3-setuptools
Requires: python3-fonttools = %{version}-%{release}
Provides: ttx = %{version}-%{release}
%description
%{desc}
BuildRequires: python3-devel
BuildRequires: gcc
%if %{with tests}
# A few additional requirements for specific tests, noted in requirements.txt:
BuildRequires: %{py3_dist pytest}
# Not included in RHEL, but available in EPEL:
%if %{undefined rhel} || %{defined epel}
BuildRequires: %{py3_dist pytest-randomly}
%endif
# For Tests/cu2qu/{ufo,cli}_test.py
# Not yet in EPEL10:
%if %{undefined rhel} || (%{defined epel} && !%{defined el10})
BuildRequires: %{py3_dist ufoLib2}
%endif
# Not yet in any EPEL:
%if %{undefined rhel}
BuildRequires: %{py3_dist ufo2ft}
%endif
# For Tests/pens/freetypePen_test.py
%if %{undefined rhel} || (%{defined epel} && !%{defined el10})
BuildRequires: %{py3_dist freetype-py}
%global have_freetype_py 1
%endif
# For Tests/varLib/interpolatable_test.py
# Not yet in any EPEL:
%if %{undefined rhel}
BuildRequires: %{py3_dist glyphsLib}
%endif
%endif
%description %{desc}
%package -n python3-fonttools
Summary: Python 3 fonttools library
%{?python_provide:%python_provide python3-%{name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-Cython
BuildRequires: gcc
Requires: python3-brotli
Requires: python3-lxml
Requires: python3-scipy
Requires: python3-fs
# test requirements
%bcond_without tests
%if %{with tests}
# Need to run test files in %%check
BuildRequires: python3-pytest
BuildRequires: python3-brotli
BuildRequires: python3-scipy
BuildRequires: python3-fs
BuildRequires: python3-lxml
%if %{undefined rhel}
BuildRequires: python3-ufoLib2
BuildRequires: python3-zopfli
%endif
%endif
# 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}
%description -n python3-fonttools %{desc}
# Cannot package “pathops” extra until python3dist(skia-pathops) is packaged;
# cannot package “all” extra without the “pathops” extra
%{?python_extras_subpkg:%python_extras_subpkg -n python3-fonttools -i %{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info graphite interpolatable lxml plot symfont type1 ufo unicode woff}
# Cannot package “all” extra unless dependencies for all individual extras
# become satisfiable.
%if %{with graphite_extra}
%pyproject_extras_subpkg -n python3-fonttools graphite
%endif
%if %{with interpolatable_extra}
%pyproject_extras_subpkg -n python3-fonttools interpolatable
%endif
%pyproject_extras_subpkg -n python3-fonttools lxml
%if %{with pathops_extra}
%pyproject_extras_subpkg -n python3-fonttools pathops
%endif
%if %{with plot_extra}
%pyproject_extras_subpkg -n python3-fonttools plot
%endif
%if %{with repacker_extra}
%pyproject_extras_subpkg -n python3-fonttools repacker
%endif
%if %{with symfont_extra}
%pyproject_extras_subpkg -n python3-fonttools symfont
%endif
%pyproject_extras_subpkg -n python3-fonttools type1
%if %{with ufo_extra}
%pyproject_extras_subpkg -n python3-fonttools ufo
%endif
%if %{with unicode_extra}
%pyproject_extras_subpkg -n python3-fonttools unicode
%endif
%if %{with woff_extra}
%pyproject_extras_subpkg -n python3-fonttools woff
%endif
%prep
%autosetup -p1
rm -rf *.egg-info
sed -i '1d' Lib/fontTools/mtiLib/__init__.py
# Remove shebang
sed -r -i '1{/^#!/d}' Lib/fontTools/mtiLib/__init__.py
# Remove version limit from lxml
sed -i 's/"lxml >=.*",/"lxml",/' setup.py
sed -i 's/lxml==.*/lxml/' requirements.txt
%generate_buildrequires
export FONTTOOLS_WITH_CYTHON=1
# We use tox to get things like pytest, but we add extras manually since not
# all dependencies from requirements.txt might be satisfiable and not all
# extras might be packaged; plus, requirements.txt pins exact versions.
%{pyproject_buildrequires \
%{?with_graphite_extra:-x graphite} \
%{?with_interpolatable_extra:-x interpolatable} \
-x lxml \
%{?with_pathops_extra:-x pathops} \
%{?with_plot_extra:-x plot} \
%{?with_repacker_extra:-x repacker} \
%{?with_symfont_extra:-x symfont} \
-x type1 \
%{?with_ufo_extra:-x ufo} \
%{?with_unicode_extra:-x unicode} \
%{?with_woff_extra:-x woff} \
}
%build
export FONTTOOLS_WITH_CYTHON=1
%py3_build
%pyproject_wheel
%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%pyproject_install
%pyproject_save_files -l fontTools
%check
# - fontTools.misc.symfont requires python3dist(sympy), i.e., the symfont extra
# - fontTools.pens.freetypePen requires python3dist(freetype-py)
# - fontTools.pens.quartzPen only works on Darwin
# - fontTools.pens.reportLabPen requires python3dist(reportlab), and it is not
# worth adding the BuildRequires just for the import check
# - fontTools.ttLib.removeOverlaps requires python3dist(skia-pathops), i.e., the
# pathops extra
# - fontTools.ufoLib(.*) requires python3dist(fs), i.e., the ufo extra
# - fontTools.varLib.plot requires python3dist(matplotlib), i.e., the plot
# extra
%{pyproject_check_import \
%{?!with_symfont_extra:-e fontTools.misc.symfont} \
%{?!have_freetype_pen:-e fontTools.pens.freetypePen} \
-e fontTools.pens.quartzPen \
-e fontTools.pens.reportLabPen \
%{?!with_pathops_extra:-e fontTools.ttLib.removeOverlaps} \
%{?!with_ufo_extra:-e fontTools.ufoLib*} \
%{?!with_plot_extra:-e fontTools.varLib.plot} \
%{?!with_interpolatable_extra:-e fontTools.varLib.interpolatable*} \
%{nil}}
%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} -m pytest --ignore Tests/otlLib/optimize_test.py --ignore Tests/varLib/merger_test.py --ignore Tests/varLib/varLib_test.py --ignore Tests/svgLib/path/path_test.py
%if %{without ufo_extra}
# These tests pertain to the interpolatable extra, but also require the ufo
# extra (even though the interpolatable extra as a whole does not):
k="${k-}${k+ and }not (InterpolatableTest and test_designspace)"
k="${k-}${k+ and }not (InterpolatableTest and test_interpolatable_ufo)"
k="${k-}${k+ and }not (InterpolatableTest and test_sparse_designspace)"
k="${k-}${k+ and }not (InterpolatableTest and test_sparse_interpolatable_ufos)"
%endif
# Below test is randomly failing on any arch, mostly the arch on which build runs
k="${k-}${k+ and }not (test_ttcompile_timestamp_calcs)"
%pytest ${ignore-} -k "${k-}" -rs -v
%endif
%files
@ -93,13 +197,134 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} -m pytest --ignore Tests/o
%{_bindir}/fonttools
%{_mandir}/man1/ttx.1*
%files -n python3-fonttools
%license LICENSE
%files -n python3-fonttools -f %{pyproject_files}
%doc NEWS.rst README.rst
%{python3_sitearch}/fontTools
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Dec 16 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.61.1-1
- Update to 4.61.1 version (#2421833)
* Wed Dec 10 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 4.61.0-2
- Conditionalize unicode extra
* Tue Dec 09 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.61.0-1
- Update to 4.61.0 version (#2419183)
* Thu Oct 02 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.60.1-1
- Update to 4.60.1 version (#2400374)
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 4.60.0-2
- Rebuilt for Python 3.14.0rc3 bytecode
* Wed Sep 17 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.60.0-1
- Update to 4.60.0 version (#2396057)
* Thu Aug 28 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.59.2-1
- Update to 4.59.2 version (#2391330)
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 4.59.1-2
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Aug 15 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.59.1-1
- Update to 4.59.1 version (#2388618)
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.59.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jul 18 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.59.0-2
- Skip failing test test_ttcompile_timestamp_calcs
* Wed Jul 16 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.59.0-1
- Update to 4.59.0 version (#2381317)
* Fri Jul 04 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.58.5-1
- Update to 4.58.5 version (#2376209)
* Mon Jun 16 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 4.58.4-1
- Update to 4.58.4 version (#2370864)
- No longer bootstrapping (build with tests enabled)
* Sun Jun 15 2025 Python Maint <python-maint@redhat.com> - 4.58.1-3
- Bootstrap for Python 3.14
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 4.58.1-2
- Bootstrap for Python 3.14
* Thu May 29 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.58.1-1
- Update to 4.58.1 version (#2368984)
* Mon May 12 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.58.0-1
- Update to 4.58.0 version (#2365442)
* Fri Apr 04 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.57.0-1
- Update to 4.57.0 version (#2357231)
* Sun Mar 16 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 4.56.0-2
- Enable the repacker extra in F42+
* Sat Feb 08 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.56.0-1
- Update to 4.56.0 version (#2342588)
* Sat Jan 25 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.55.6-1
- Update to 4.55.6 version (#2341748)
* Thu Jan 23 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.55.5-1
- Update to 4.55.5 version (#2341748)
* Wed Jan 22 2025 Parag Nemade <pnemade AT redhat DOT com> - 4.55.4-1
- Update to 4.55.4 version (#2339159)
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.55.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Jan 12 2025 Romain Geissler <romain.geissler@amadeus.com> - 4.55.3-3
- Build the graphite subpackage on EPEL 10 now that python-lz4 is available.
* Wed Dec 18 2024 Romain Geissler <romain.geissler@amadeus.com> - 4.55.3-2
- Update extra dependencies for EPEL.
* Sun Dec 15 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.55.3-1
- Update to 4.55.3 version (#2331592)
* Sat Dec 07 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.55.2-1
- Update to 4.55.2 version (#2330109)
* Fri Nov 15 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.55.0-1
- Update to 4.55.0 version (#2326307)
* Tue Nov 05 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 4.54.1-3
- Avoid tox dependency
* Fri Oct 11 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 4.54.1-2
- Port to pyproject-rpm-macros (modern Python guidelines)
* Wed Sep 25 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.54.1-1
- Update to 4.54.1 version (#2314462)
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.53.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jul 08 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.53.1-1
- Update to 4.53.1 version (#2296086)
* Thu Jun 27 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.53.0-1
- Update to 4.53.0 version (#2284160)
* Mon Jun 17 2024 Python Maint <python-maint@redhat.com> - 4.52.4-3
- Rebuilt for Python 3.13
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.52.4-2
- Bootstrap for Python 3.13
* Tue May 28 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.52.4-1
- Update to 4.52.4 version (#2283255)
* Tue May 28 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.51.0-2
- Generate extra subpackages only for Fedora release
* Wed Apr 10 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.51.0-1
- Update to 4.51.0 version (#2273774)
* Sat Mar 16 2024 Parag Nemade <pnemade AT redhat DOT com> - 4.50.0-1
- Update to 4.50.0 version (#2269759)

5
plans/fonttools.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (fonttools-4.50.0.tar.gz) = a169f18077f2c4f0ad8a46569a30b3e35ca2343e9f3d43cd362dafa26085f545dd9a42e7edb3054f9d37e1576117aa34a0c2b4adabc9fc29c076e69d3fdd66ee
SHA512 (fonttools-4.61.1.tar.gz) = 3bdf3b1a72268ca9966550db53a25b8a7e9a1438abef9009d09a76e8d718691fdd248f87521c65df59b07728262a4405aee7a94aa2af616d744f7ee815f29c2d

22
tests/main.fmf Normal file
View file

@ -0,0 +1,22 @@
test: ./runtests.sh
duration: 10m
framework: beakerlib
require:
- fonttools
- python3-fonttools
- rpm-build
- python3-pytest
- python3-brotli
- python3-scipy
- python3-pluggy
- python3-packaging
- python3-attrs
- python3-pyparsing
- python3-gobject
- python3-fs
- python3-lxml
- python3-ufoLib2
- python3-zopfli
- atk-devel
- pango-devel
- gtk3-devel

37
tests/runtests.sh Executable file
View file

@ -0,0 +1,37 @@
#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
NAME=fonttools
rlJournalStart
rlPhaseStartSetup
rlAssertRpm ${NAME}
rlShowPackageVersion ${NAME}
rlRun -t -l "VERSION=$(rpm -q ${NAME} --queryformat='%{version}')" 0 "Get VERSION"
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlFetchSrcForInstalled "${NAME}"
rlRun "rpm --define '_topdir $tmp' -i *src.rpm"
rlRun -t -l "mkdir BUILD" 0 "Creating BUILD directory"
rlRun -t -l "rpmbuild --noclean --nodeps --define '_topdir $tmp' -bp $tmp/SPECS/*spec"
if [ -d BUILD/${NAME}-${VERSION}-build ]; then
rlRun -t -l "pushd BUILD/${NAME}-${VERSION}-build/${NAME}-${VERSION}"
else
rlRun -t -l "pushd BUILD/${NAME}-${VERSION}"
fi
rlPhaseEnd
rlPhaseStartTest
rlRun "set -o pipefail"
rlRun "python3 -m pytest --ignore Tests/otlLib/optimize_test.py --ignore Tests/varLib/merger_test.py --ignore Tests/varLib/varLib_test.py --ignore Tests/svgLib/path/path_test.py"
rlRun "retval=$?"
rlRun "echo $retval"
rlRun "popd" 0
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd

View file

@ -1,3 +0,0 @@
#!/bin/bash
cd ../source
python3 -m pytest --ignore Tests/otlLib/optimize_test.py --ignore Tests/varLib/merger_test.py --ignore Tests/varLib/varLib_test.py

View file

@ -1,28 +0,0 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
tests:
- smoke
required_packages:
- python3-pytest
- python3-brotli
- python3-scipy
- python3-pluggy
- python3-packaging
- python3-attrs
- python3-pyparsing
- python3-gobject
- python3-fs
- python3-lxml
- atk-devel
- pango-devel
- gtk3-devel