forked from pool/python-FontTools
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6e0a5758b2 |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 19 14:08:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 25 07:44:50 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
|
Thu Jul 25 07:44:50 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-FontTools
|
# spec file for package python-FontTools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,6 +24,11 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-FontTools%{psuffix}
|
Name: python-FontTools%{psuffix}
|
||||||
Version: 4.53.1
|
Version: 4.53.1
|
||||||
@@ -41,12 +46,10 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
# 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.1.0
|
Recommends: python-Brotli >= 1.1.0
|
||||||
Recommends: python-freetype-py >= 2.4.0
|
Recommends: python-freetype-py >= 2.4.0
|
||||||
|
# some packages should require fonttools[ufo], but fs is not a hard dependency anymore.
|
||||||
|
Recommends: python-fs >= 2.2.0
|
||||||
Recommends: python-lxml
|
Recommends: python-lxml
|
||||||
Recommends: python-munkres >= 1.1.4
|
Recommends: python-munkres >= 1.1.4
|
||||||
Recommends: python-reportlab
|
Recommends: python-reportlab
|
||||||
@@ -56,14 +59,22 @@ Recommends: python-ufoLib2 >= 0.16.0
|
|||||||
Recommends: python-unicodedata2 >= 15.1.0
|
Recommends: python-unicodedata2 >= 15.1.0
|
||||||
Recommends: python-zopfli >= 0.2.3
|
Recommends: python-zopfli >= 0.2.3
|
||||||
Provides: python-fonttools = %{version}-%{release}
|
Provides: python-fonttools = %{version}-%{release}
|
||||||
|
Obsoletes: fonttools < %{version}-%{release}
|
||||||
|
Provides: fonttools = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Brotli >= 1.1.0}
|
BuildRequires: %{python_module Brotli >= 1.1.0}
|
||||||
|
BuildRequires: %{python_module FontTools = %{version}}
|
||||||
BuildRequires: %{python_module fs >= 2.4.16}
|
BuildRequires: %{python_module fs >= 2.4.16}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
%endif
|
%endif
|
||||||
Obsoletes: fonttools < %{version}-%{release}
|
|
||||||
Provides: fonttools = %{version}-%{release}
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -99,7 +110,11 @@ export LANG=en_US.UTF-8
|
|||||||
# We need these files to be installed for tests, but now we need them removed
|
# We need these files to be installed for tests, but now we need them removed
|
||||||
# not to confuse %%files checks
|
# not to confuse %%files checks
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}
|
%python_expand rm -r %{buildroot}%{$python_sitelib}
|
||||||
|
%if %{with libalternatives}
|
||||||
|
rm -r %{buildroot}%{_datadir}/libalternatives
|
||||||
|
%else
|
||||||
rm -r %{buildroot}%{_sysconfdir}/alternatives
|
rm -r %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
%endif
|
||||||
rm -r %{buildroot}%{_bindir}
|
rm -r %{buildroot}%{_bindir}
|
||||||
rm -r %{buildroot}%{_mandir}
|
rm -r %{buildroot}%{_mandir}
|
||||||
%endif
|
%endif
|
||||||
@@ -117,6 +132,12 @@ rm -r %{buildroot}%{_mandir}
|
|||||||
%python_uninstall_alternative pyftmerge
|
%python_uninstall_alternative pyftmerge
|
||||||
%python_uninstall_alternative fonttools
|
%python_uninstall_alternative fonttools
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative ttx
|
||||||
|
%python_libalternatives_reset_alternative pyftsubset
|
||||||
|
%python_libalternatives_reset_alternative pyftmerge
|
||||||
|
%python_libalternatives_reset_alternative fonttools
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE LICENSE.external
|
%license LICENSE LICENSE.external
|
||||||
%doc README.rst NEWS.rst
|
%doc README.rst NEWS.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user