[packages/python-fonttools] - rel 9, python3 moved to its own package
baggins
baggins at pld-linux.org
Mon Mar 17 10:28:39 CET 2025
commit 7e5203a42ac35985eac0102dcf0a63e162cce80c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 17 10:20:00 2025 +0100
- rel 9, python3 moved to its own package
python-fonttools.spec | 57 ---------------------------------------------------
1 file changed, 57 deletions(-)
---
diff --git a/python-fonttools.spec b/python-fonttools.spec
index da1b97c..f159612 100644
--- a/python-fonttools.spec
+++ b/python-fonttools.spec
@@ -1,7 +1,5 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (version 4+ built from fonttools.spec)
%bcond_without doc # Sphinx documentation
%bcond_without tests # pytest tests
@@ -22,7 +20,6 @@ URL: https://github.com/fonttools/fonttools
%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
BuildRequires: glibc-localedb-all
%endif
-%if %{with python2}
BuildRequires: python-devel >= 1:2.7
BuildRequires: python-setuptools
%if %{with tests}
@@ -32,18 +29,6 @@ BuildRequires: python-fs >= 2.2.0
BuildRequires: python-pytest >= 3.0
BuildRequires: python-unicodedata2 >= 12.0.0
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.4
-%if %{with tests}
-BuildRequires: pythoni3-brotli
-BuildRequires: python3-fs >= 2.2.0
-BuildRequires: python3-pytest >= 3.0
-%if "%{ver_lt '%{py3_ver}' '3.7'}" == "1"
-BuildRequires: python3-unicodedata2 >= 12.0.0
-%endif
-%endif
-%endif
BuildRequires: rpmbuild(macros) >= 1.750
%if %{with doc}
BuildRequires: sphinx-pdg-2 >= 1.5.5
@@ -70,28 +55,12 @@ Documentation for Python fonttools module.
%description apidocs -l pl.UTF-8
Dokumentacja modułu Pythona fonttools.
-%package -n python3-fonttools
-Summary: Python 3 tools to manipulate font files
-Summary(pl.UTF-8): Narzędzia do manipulacji na plikach fontów dla Pythona 3
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-%if "%{ver_lt '%{py3_ver}' '3.7'}" == "1"
-Requires: python3-unicodedata2 >= 12.0.0
-%endif
-
-%description -n python3-fonttools
-Python 3 tools to manipulate font files.
-
-%description -n python3-fonttools -l pl.UTF-8
-Narzędzia do manipulacji na plikach fontów dla Pythona 3.
-
%prep
%setup -q -n fonttools-%{version}
%patch -P 0 -p1
%build
export LC_ALL=C.UTF-8
-%if %{with python2}
%py_build
%if %{with tests}
@@ -99,17 +68,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=Lib \
%{__python} -m pytest Tests
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=Lib \
-%{__python} -m pytest Tests
-%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd)/build-2/lib \
@@ -120,15 +78,9 @@ PYTHONPATH=$(pwd)/build-2/lib \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python3}
-%py3_install
-%endif
-
-%if %{with python2}
%py_install
%py_postclean
-%endif
# packaged from fonttools.spec
%{__rm} -r $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
@@ -136,7 +88,6 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%{py_sitescriptdir}/fontTools
@@ -147,11 +98,3 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc Doc/build/html/{_static,designspaceLib,misc,pens,ttLib,varLib,*.html,*.js}
%endif
-%endif
-
-%if %{with python3}
-%files -n python3-fonttools
-%defattr(644,root,root,755)
-%{py3_sitescriptdir}/fontTools
-%{py3_sitescriptdir}/fonttools-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fonttools.git/commitdiff/7e5203a42ac35985eac0102dcf0a63e162cce80c
More information about the pld-cvs-commit
mailing list