Accepting request 809914 from M17N
OBS-URL: https://build.opensuse.org/request/show/809914 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-FontTools?expand=0&rev=4
This commit is contained in:
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
1
curves.json
Normal file
1
curves.json
Normal file
File diff suppressed because one or more lines are too long
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e21f35440877b24fdfe49e9c74d1084b50bd3be881a83e065d62424bd640fb41
|
||||
size 2861041
|
||||
3
fonttools-4.10.2.zip
Normal file
3
fonttools-4.10.2.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2ae6568736f1f280ffa7e2ea44e129c3304e9a7d9fe33ffabb165d36b136f5da
|
||||
size 4205491
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 06:34:20 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 10:13:15 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Update to 4.10.2:
|
||||
* Note: The v4.x version series only supports Python 3.6 or greater.
|
||||
* see NEWS.rst for the full changelog
|
||||
|
||||
- Use _multibuild to run the tests in a different flavor and make it
|
||||
possible to BuildRequire ufoLib2 (which requires FontTools to build)
|
||||
without creating a dependency cycle.
|
||||
|
||||
- Add curves.json from upstream as a separate source as it's
|
||||
missing from the zip file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 1 12:14:15 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-FontTools
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,42 +16,55 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-FontTools
|
||||
Version: 3.39.0
|
||||
%define skip_python2 1
|
||||
Name: python-FontTools%{psuffix}
|
||||
Version: 4.10.2
|
||||
Release: 0
|
||||
Summary: Suite of Tools and Libraries for Manipulating Fonts
|
||||
License: MIT AND OFL-1.1
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/fonttools/fonttools
|
||||
URL: https://github.com/fonttools/fonttools
|
||||
Source: https://files.pythonhosted.org/packages/source/f/fonttools/fonttools-%{version}.zip
|
||||
Source1: https://raw.githubusercontent.com/fonttools/fonttools/master/Tests/cu2qu/data/curves.json
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Requires: python-brotlipy >= 0.7.0
|
||||
%ifpython2
|
||||
Requires: python-enum34
|
||||
%endif
|
||||
Requires: python-fs >= 2.4.4
|
||||
Requires: python-fs >= 2.4.11
|
||||
Requires: python-lxml >= 4.0
|
||||
Requires: python-reportlab
|
||||
Requires: python-scipy >= 1.2.1
|
||||
Requires: python-scipy >= 1.4.1
|
||||
Requires: python-sympy
|
||||
Requires: python-unicodedata2 >= 13.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%if "%{flavor}" == "test"
|
||||
BuildRequires: zip
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module brotlipy >= 0.7.0}
|
||||
BuildRequires: %{python_module fs >= 2.4.4}
|
||||
BuildRequires: %{python_module fs >= 2.4.11}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module scipy >= 1.2.1}
|
||||
BuildRequires: %{python_module scipy >= 1.4.1}
|
||||
BuildRequires: %{python_module sympy}
|
||||
BuildRequires: python2-enum34
|
||||
BuildRequires: zip
|
||||
BuildRequires: %{python_module ufoLib2 >= 0.6.2}
|
||||
BuildRequires: %{python_module zopfli >= 0.1.6}
|
||||
%endif
|
||||
# /SECTION
|
||||
%ifpython3
|
||||
Obsoletes: fonttools
|
||||
Provides: fonttools
|
||||
Obsoletes: fonttools < %{version}
|
||||
Provides: fonttools = %{version}
|
||||
Provides: python-fonttools = %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -66,16 +79,24 @@ convert TrueType fonts to an XML based format (called TTX) and back.
|
||||
%setup -q -n fonttools-%{version}
|
||||
# Remove shebang
|
||||
sed -i -e '/^#!\//, 1d' Lib/fontTools/mtiLib/__init__.py
|
||||
cp %{SOURCE1} Tests/cu2qu/data/curves.json
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if "%{flavor}" != "test"
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/ttx.1
|
||||
%python_clone -a %{buildroot}%{_bindir}/ttx
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyftsubset
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyftmerge
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# remove undocumented and non working script
|
||||
rm %{buildroot}%{_bindir}/fonttools
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "test"
|
||||
%check
|
||||
ufodir='Tests/ufoLib/testdata/TestFont1 (UFO3).ufo'
|
||||
if [ ! -e "${ufodir}z" ]; then
|
||||
@@ -92,13 +113,26 @@ export LANG=en_US.UTF-8
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%pytest
|
||||
|
||||
%else
|
||||
%post
|
||||
%python_install_alternative ttx ttx.1
|
||||
%python_install_alternative pyftsubset
|
||||
%python_install_alternative pyftmerge
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative ttx
|
||||
%python_uninstall_alternative pyftsubset
|
||||
%python_uninstall_alternative pyftmerge
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE LICENSE.external
|
||||
%doc README.rst NEWS.rst
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/pyftmerge
|
||||
%python3_only %{_bindir}/pyftsubset
|
||||
%python3_only %{_bindir}/ttx
|
||||
%python3_only %{_mandir}/man1/ttx.1%{?ext_man}
|
||||
%python_alternative %{_bindir}/pyftmerge
|
||||
%python_alternative %{_bindir}/pyftsubset
|
||||
%python_alternative %{_bindir}/ttx
|
||||
%python_alternative %{_mandir}/man1/ttx.1%{?ext_man}
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user