python-ufoLib2/python-ufoLib2.spec
2024-11-23 16:37:25 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package python-ufoLib2
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-ufoLib2
Version: 0.17.0
Release: 0
Summary: UFO font processing library
License: Apache-2.0
URL: https://github.com/fonttools/ufoLib2
Source: https://files.pythonhosted.org/packages/source/u/ufolib2/ufolib2-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
# SECTION install_requires
BuildRequires: %{python_module FontTools >= 4.0.0}
BuildRequires: %{python_module attrs >= 20.1.0}
# via fonttools[ufo]
BuildRequires: %{python_module fs >= 2.2.0}
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
Requires: python-FontTools >= 4.0.0
Requires: python-attrs >= 19.2.0
Requires: python-fs >= 2.2.0
%if 0%{?python_version_nodots} < 38
Requires: python-typing_extensions
%endif
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
# /SECTION
Suggests: python-lxml
BuildArch: noarch
%python_subpackages
%description
ufoLib2 is a UFO font processing library.
%prep
%setup -q -n ufolib2-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/ufoLib2
%{python_sitelib}/ufoLib2-%{version}*-info
%changelog