forked from pool/python-pyclipper
Accepting request 782029 from home:nuklly
Fixed LICENSE and added pytest. OBS-URL: https://build.opensuse.org/request/show/782029 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyclipper?expand=0&rev=1
This commit is contained in:
68
python-pyclipper.spec
Normal file
68
python-pyclipper.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
#
|
||||
# spec file for package python-pyclipper
|
||||
#
|
||||
# Copyright (c) 2020 Xu Zhao (i@xuzhao.net).
|
||||
#
|
||||
# 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-pyclipper
|
||||
Version: 1.1.0.post3
|
||||
Release: 0
|
||||
Summary: Cython wrapper for the Clipper library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/fonttools/pyclipper
|
||||
Source: pyclipper-%{version}.zip
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module unittest2}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: unzip
|
||||
BuildRequires: fdupes
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Pyclipper is a Cython wrapper exposing public functions and classes of
|
||||
the C++ translation of the `Angus Johnson's Clipper library (ver.
|
||||
6.4.2) <http://www.angusj.com/delphi/clipper.php>`__.
|
||||
|
||||
Pyclipper releases were tested with Python 2.7 and 3.4 on Linux (Ubuntu
|
||||
14.04, x64) and Windows (8.1, x64).
|
||||
|
||||
%prep
|
||||
%setup -q -n pyclipper-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user