2020-05-26 08:21:30 +00:00
|
|
|
#
|
2024-03-04 09:48:50 +00:00
|
|
|
# spec file for package python-fontParts
|
2020-05-26 08:21:30 +00:00
|
|
|
#
|
2025-03-26 05:22:01 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-05-26 08:21:30 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2024-03-04 09:48:50 +00:00
|
|
|
|
2020-05-26 08:21:30 +00:00
|
|
|
Name: python-fontParts%{psuffix}
|
2024-11-10 21:50:23 +00:00
|
|
|
Version: 0.12.3
|
2020-05-26 08:21:30 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: API for interacting with the parts of fonts
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/robotools/fontParts
|
2024-11-10 21:50:23 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/fontParts/fontparts-%{version}.zip
|
2024-03-04 09:48:50 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-03-24 08:04:44 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2020-05-26 08:21:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-04 09:48:50 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-05-26 08:21:30 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: unzip
|
2021-03-24 08:04:44 +00:00
|
|
|
# install_requires = [FontTools[ufo,lxml,unicode]
|
2022-02-16 16:33:00 +00:00
|
|
|
Requires: python-FontTools >= 4.28.5
|
2021-03-24 08:04:44 +00:00
|
|
|
Requires: python-fs >= 2.2.0
|
|
|
|
|
Requires: python-lxml >= 4.0
|
|
|
|
|
%if %python_version_nodots < 39
|
|
|
|
|
Requires: python-unicodedata2
|
|
|
|
|
%endif
|
2022-02-16 16:33:00 +00:00
|
|
|
Requires: python-booleanOperations >= 0.9.0
|
|
|
|
|
Requires: python-defcon >= 0.10.0
|
|
|
|
|
Requires: python-fontMath >= 0.9.1
|
2020-05-26 08:21:30 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%if %{with test}
|
|
|
|
|
# SECTION test requirements
|
2022-02-16 16:33:00 +00:00
|
|
|
BuildRequires: %{python_module FontTools >= 4.28.5}
|
|
|
|
|
BuildRequires: %{python_module booleanOperations >= 0.9.0}
|
|
|
|
|
BuildRequires: %{python_module defcon >= 0.10.0}
|
|
|
|
|
BuildRequires: %{python_module fontMath >= 0.9.1}
|
2020-05-26 08:21:30 +00:00
|
|
|
BuildRequires: %{python_module fontPens >= 0.2.4}
|
2021-03-24 08:04:44 +00:00
|
|
|
BuildRequires: %{python_module fs >= 2.2.0}
|
|
|
|
|
BuildRequires: %{python_module lxml >= 4.0}
|
|
|
|
|
BuildRequires: %{python_module unicodedata2 if %python-base < 3.9}
|
2020-05-26 08:21:30 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%endif
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
An API for interacting with the parts of fonts during the font development process.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-11-10 21:50:23 +00:00
|
|
|
%autosetup -p1 -n fontparts-%{version}
|
2020-05-26 08:21:30 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export LANG=C.UTF-8
|
2024-03-04 09:48:50 +00:00
|
|
|
%pyproject_wheel
|
2020-05-26 08:21:30 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-05-26 08:25:52 +00:00
|
|
|
%if !%{with test}
|
2020-05-26 08:21:30 +00:00
|
|
|
export LANG=C.UTF-8
|
2024-03-04 09:48:50 +00:00
|
|
|
%pyproject_install
|
2020-05-26 08:21:30 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-05-26 08:25:52 +00:00
|
|
|
%endif
|
2020-05-26 08:21:30 +00:00
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
|
# fontParts tests requires fontPens and fontPens' tests require fontParts
|
|
|
|
|
%check
|
|
|
|
|
export LANG=C.UTF-8
|
2021-12-17 21:35:58 +00:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2024-03-04 09:48:50 +00:00
|
|
|
%python_expand PYTHONPATH=./Lib $python Lib/fontParts/fontshell/test.py -v
|
2020-05-26 08:25:52 +00:00
|
|
|
%endif
|
2020-05-26 08:21:30 +00:00
|
|
|
|
2020-05-26 08:25:52 +00:00
|
|
|
%if !%{with test}
|
2020-05-26 08:21:30 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2021-12-17 21:35:58 +00:00
|
|
|
%{python_sitelib}/fontParts
|
2025-03-26 05:22:01 +00:00
|
|
|
%{python_sitelib}/fontparts-%{version}.dist-info
|
2020-05-26 08:21:30 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|