From 3a50845ff57eccdce822b674f636c899d314ae7d48ae1208fb8630c79adee5db Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 14 Oct 2023 05:06:33 +0000 Subject: [PATCH] Accepting request 1117738 from home:mcepl:branches:M17N - Clean up space and remove unnecessary BR python-munkres and python-zopfli. OBS-URL: https://build.opensuse.org/request/show/1117738 OBS-URL: https://build.opensuse.org/package/show/M17N/python-FontTools?expand=0&rev=46 --- python-FontTools.changes | 6 ++++++ python-FontTools.spec | 22 ++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/python-FontTools.changes b/python-FontTools.changes index 25c81ec..cc6f3bc 100644 --- a/python-FontTools.changes +++ b/python-FontTools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 14 00:19:08 UTC 2023 - Matej Cepl + +- Clean up space and remove unnecessary BR python-munkres and + python-zopfli. + ------------------------------------------------------------------- Sun Jun 11 20:32:54 UTC 2023 - Dirk Müller diff --git a/python-FontTools.spec b/python-FontTools.spec index fd0a7f7..b3b44db 100644 --- a/python-FontTools.spec +++ b/python-FontTools.spec @@ -18,13 +18,12 @@ %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" -%bcond_without test %define psuffix -test +%bcond_without test %else %define psuffix %{nil} %bcond_with test %endif -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-FontTools%{psuffix} @@ -37,34 +36,33 @@ URL: https://github.com/fonttools/fonttools # The PyPI archive lacks some test files, but the source is identical to the github archive Source: https://github.com/fonttools/fonttools/archive/refs/tags/%{version}.tar.gz#/fonttools-%{version}.tar.gz BuildRequires: %{python_module devel >= 3.7} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -Recommends: python-Brotli >= 1.0.1 # some packages should require fonttools[ufo] but expect fs to be pulled in by default. Requires: python-fs >= 2.2.0 +Requires(post): update-alternatives +Requires(postun):update-alternatives +Recommends: python-Brotli >= 1.0.1 Recommends: python-lxml >= 4.0 Recommends: python-munkres >= 1.1.4 +Recommends: python-reportlab Recommends: python-sympy Recommends: python-unicodedata2 >= 14.0.0 Recommends: python-zopfli >= 0.1.6 -Requires(post): update-alternatives -Requires(postun):update-alternatives -Recommends: python-reportlab +Provides: python-fonttools = %{version}-%{release} BuildArch: noarch %if %{with test} BuildRequires: %{python_module Brotli >= 1.0.1} BuildRequires: %{python_module fs >= 2.2.0} -BuildRequires: %{python_module munkres >= 1.1.4} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module zopfli >= 0.1.6} %endif %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" Obsoletes: fonttools < %{version}-%{release} Provides: fonttools = %{version}-%{release} %endif -Provides: python-fonttools = %{version}-%{release} %python_subpackages %description @@ -82,10 +80,10 @@ convert TrueType fonts to an XML based format (called TTX) and back. sed -i -e '/^#!\//, 1d' Lib/fontTools/mtiLib/__init__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_mandir}/man1/ttx.1 %python_clone -a %{buildroot}%{_bindir}/ttx %python_clone -a %{buildroot}%{_bindir}/pyftsubset