Enable Cython acceleration; the package is no longer noarch
This commit is contained in:
parent
03613f0fe2
commit
1637f9a03b
@ -7,7 +7,7 @@ OpenType, AFM and to an extent Type 1 and some Mac-specific formats.
|
|||||||
|
|
||||||
Name: fonttools
|
Name: fonttools
|
||||||
Version: 4.34.4
|
Version: 4.34.4
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Tools to manipulate font files
|
Summary: Tools to manipulate font files
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/fonttools/fonttools/
|
URL: https://github.com/fonttools/fonttools/
|
||||||
@ -15,7 +15,6 @@ Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{
|
|||||||
|
|
||||||
Requires: python3-fonttools
|
Requires: python3-fonttools
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
BuildArch: noarch
|
|
||||||
Provides: ttx = %{version}-%{release}
|
Provides: ttx = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -28,7 +27,8 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildRequires: python3-Cython
|
||||||
|
BuildRequires: gcc
|
||||||
|
|
||||||
Requires: python3-brotli
|
Requires: python3-brotli
|
||||||
Requires: python3-munkres
|
Requires: python3-munkres
|
||||||
@ -60,7 +60,7 @@ Obsoletes: python3-ufolib <= 2.1.1-11
|
|||||||
|
|
||||||
# Cannot package “pathops” extra until python3dist(skia-pathops) is packaged;
|
# Cannot package “pathops” extra until python3dist(skia-pathops) is packaged;
|
||||||
# cannot package “all” extra without the “pathops” extra
|
# cannot package “all” extra without the “pathops” extra
|
||||||
%{?python_extras_subpkg:%python_extras_subpkg -n python3-fonttools -i %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info graphite interpolatable lxml plot symfont type1 ufo unicode woff}
|
%{?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}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
@ -69,6 +69,7 @@ rm -rf *.egg-info
|
|||||||
sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export FONTTOOLS_WITH_CYTHON=1
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -76,7 +77,7 @@ sed -i '1d' Lib/fontTools/mtiLib/__init__.py
|
|||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest --ignore Tests/otlLib/optimize_test.py --ignore Tests/varLib/merger_test.py --ignore Tests/varLib/varLib_test.py
|
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
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -89,10 +90,13 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest --ignore Tests/ot
|
|||||||
%files -n python3-fonttools
|
%files -n python3-fonttools
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc NEWS.rst README.rst
|
%doc NEWS.rst README.rst
|
||||||
%{python3_sitelib}/fontTools
|
%{python3_sitearch}/fontTools
|
||||||
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 4.34.4-3
|
||||||
|
- Enable Cython acceleration; the package is no longer noarch
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.34.4-2
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.34.4-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user