forked from pool/python-fontParts
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fontParts?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
8df0c25c92
commit
6bee622634
@@ -30,7 +30,6 @@ 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}
|
||||
@@ -38,7 +37,6 @@ 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
|
||||
@@ -48,6 +46,7 @@ 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}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%endif
|
||||
%python_subpackages
|
||||
@@ -63,17 +62,20 @@ export LANG=C.UTF-8
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
export LANG=C.UTF-8
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
# fontParts tests requires fontPens and fontPens' tests require fontParts
|
||||
%check
|
||||
export LANG=C.UTF-8
|
||||
%python_exec setup.py test
|
||||
%pytest Lib/fontParts/test
|
||||
%endif
|
||||
|
||||
%else
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user