commit 86f0ea6a28b171db6642eddf11a4f78c759415ce30562e0280cde34585070c33 Author: Tomáš Chvátal Date: Fri Mar 6 09:13:43 2020 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyclipper-1.1.0.post3.zip b/pyclipper-1.1.0.post3.zip new file mode 100644 index 0000000..06cf1a5 --- /dev/null +++ b/pyclipper-1.1.0.post3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1acd74bdb8c114fea2eab0bcf76460d1ef4b4120953e410fc7c638eb79e9e98 +size 138035 diff --git a/python-pyclipper.changes b/python-pyclipper.changes new file mode 100644 index 0000000..9cbf0e5 --- /dev/null +++ b/python-pyclipper.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Mar 6 02:17:18 UTC 2020 - Xu Zhao + +- Initial commit. + diff --git a/python-pyclipper.spec b/python-pyclipper.spec new file mode 100644 index 0000000..04c20eb --- /dev/null +++ b/python-pyclipper.spec @@ -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) `__. + +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 +