15
0
Tomáš Chvátal
2020-05-26 09:01:23 +00:00
committed by Git OBS Bridge
parent 07964f28f0
commit af7d65f43e
4 changed files with 28 additions and 12 deletions

View File

@@ -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