From 6bee6226344439ff605256991c81af10718827119a152f6e7a1d2abbdebf9b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 May 2020 08:25:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fontParts?expand=0&rev=2 --- python-fontParts.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python-fontParts.spec b/python-fontParts.spec index 398a21d..b50f5ec 100644 --- a/python-fontParts.spec +++ b/python-fontParts.spec @@ -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