2020-05-26 11:18:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-ufoLib2
|
|
|
|
#
|
2021-02-13 11:17:19 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-05-26 11:18:54 +02: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-ufoLib2
|
2021-02-23 11:10:39 +01:00
|
|
|
Version: 0.11.1
|
2020-05-26 11:18:54 +02:00
|
|
|
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}.zip
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
2021-02-23 11:10:39 +01:00
|
|
|
# SECTION install_requires
|
2020-05-26 11:21:32 +02:00
|
|
|
BuildRequires: %{python_module FontTools >= 4.0.0}
|
2020-05-26 11:18:54 +02:00
|
|
|
BuildRequires: %{python_module attrs >= 19.2.0}
|
2021-02-23 11:10:39 +01:00
|
|
|
# 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}
|
2020-05-26 11:18:54 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2021-02-23 11:10:39 +01:00
|
|
|
Suggests: python-lxml
|
|
|
|
BuildArch: noarch
|
2020-05-26 11:18:54 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
ufoLib2 is a UFO font processing library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n ufoLib2-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|