# # spec file for package python-fontParts # # 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 # 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 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-fontParts%{psuffix} Version: 0.9.2 Release: 0 Summary: API for interacting with the parts of fonts License: MIT Group: Development/Languages/Python URL: https://github.com/robotools/fontParts Source: https://files.pythonhosted.org/packages/source/f/fontParts/fontParts-%{version}.zip BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip Requires: python-FontTools >= 3.32.0 Requires: python-booleanOperations Requires: python-defcon >= 0.6.0 Requires: python-fontMath >= 0.4.8 BuildArch: noarch %if %{with test} # SECTION test requirements BuildRequires: %{python_module FontTools >= 3.32.0} BuildRequires: %{python_module defcon >= 0.6.0} BuildRequires: %{python_module fontMath >= 0.4.8} BuildRequires: %{python_module fontPens >= 0.2.4} # /SECTION %endif %python_subpackages %description An API for interacting with the parts of fonts during the font development process. %prep %setup -q -n fontParts-%{version} %build export LANG=C.UTF-8 %python_build %install export LANG=C.UTF-8 %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} # fontParts tests requires fontPens and fontPens' tests require fontParts %check export LANG=C.UTF-8 %python_exec setup.py test %else %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* %endif %changelog