From af7d65f43e2e09aed8aeb2621481aa76973587e9e27f678df95c4676e4e80d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 May 2020 09:01:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-booleanOperations?expand=0&rev=2 --- _multibuild | 3 +++ booleanOperations-0.8.2.zip | 3 +++ booleanOperations-0.9.0.zip | 3 --- python-booleanOperations.spec | 31 ++++++++++++++++++++++--------- 4 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 _multibuild create mode 100644 booleanOperations-0.8.2.zip delete mode 100644 booleanOperations-0.9.0.zip diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/booleanOperations-0.8.2.zip b/booleanOperations-0.8.2.zip new file mode 100644 index 0000000..8cc5788 --- /dev/null +++ b/booleanOperations-0.8.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1750def605e53ca13cf45fedd31b360d241cc6082523e4b71d86c72dd3e9bc8a +size 202758 diff --git a/booleanOperations-0.9.0.zip b/booleanOperations-0.9.0.zip deleted file mode 100644 index f7aab48..0000000 --- a/booleanOperations-0.9.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cfa821c32ad374fa120d6b2e0b444ebeac57c91e6631528645fa19ac2a281b8 -size 202950 diff --git a/python-booleanOperations.spec b/python-booleanOperations.spec index 47ef5bf..77ea739 100644 --- a/python-booleanOperations.spec +++ b/python-booleanOperations.spec @@ -17,12 +17,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-booleanOperations -Version: 0.9.0 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-booleanOperations%{psuffix} +Version: 0.8.2 Release: 0 Summary: Boolean operations on paths License: MIT -Group: Development/Languages/Python URL: https://github.com/typemytype/booleanOperations Source: https://files.pythonhosted.org/packages/source/b/booleanOperations/booleanOperations-%{version}.zip BuildRequires: %{python_module setuptools_scm} @@ -31,16 +38,16 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -Requires: python-fonttools >= 4.0.2 -Requires: python-pyclipper >= 1.1.0.post1 +Requires: python-FontTools >= 3.32.0 +Requires: python-pyclipper >= 1.0.5 BuildArch: noarch -# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module FontTools >= 3.32.0} BuildRequires: %{python_module defcon} BuildRequires: %{python_module fontPens} -BuildRequires: %{python_module fonttools >= 4.0.2} -BuildRequires: %{python_module pyclipper >= 1.1.0.post1} +BuildRequires: %{python_module pyclipper >= 1.0.5} BuildRequires: %{python_module pytest} -# /SECTION +%endif %python_subpackages %description @@ -53,15 +60,21 @@ Boolean operations on paths. %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} %pytest +%endif +%if !%{with test} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* +%endif %changelog