From 2324c2daa63c325e59d095f90bfefa1597e9cef860133383cc8f77b75997c27a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:17:42 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyclipper?expand=0&rev=23 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + pyclipper-1.3.0.post5.tar.gz | 3 ++ pyclipper-1.3.0.post6.tar.gz | 3 ++ python-pyclipper.changes | 81 ++++++++++++++++++++++++++++++++++++ python-pyclipper.spec | 70 +++++++++++++++++++++++++++++++ 6 files changed, 181 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyclipper-1.3.0.post5.tar.gz create mode 100644 pyclipper-1.3.0.post6.tar.gz create mode 100644 python-pyclipper.changes create mode 100644 python-pyclipper.spec 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.3.0.post5.tar.gz b/pyclipper-1.3.0.post5.tar.gz new file mode 100644 index 0000000..72aaa3a --- /dev/null +++ b/pyclipper-1.3.0.post5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0239f928e0bf78a3efc2f2f615a10bfcdb9f33012d46d64c8d1225b4bde7096 +size 164719 diff --git a/pyclipper-1.3.0.post6.tar.gz b/pyclipper-1.3.0.post6.tar.gz new file mode 100644 index 0000000..341deaa --- /dev/null +++ b/pyclipper-1.3.0.post6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42bff0102fa7a7f2abdd795a2594654d62b786d0c6cd67b72d469114fdeb608c +size 165909 diff --git a/python-pyclipper.changes b/python-pyclipper.changes new file mode 100644 index 0000000..7306061 --- /dev/null +++ b/python-pyclipper.changes @@ -0,0 +1,81 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:27 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Mon Oct 28 16:54:26 UTC 2024 - Dirk Müller + +- update to 1.3.0.post6: + * Build Python 3.13 wheels. No code changes. + +------------------------------------------------------------------- +Fri Sep 20 13:34:27 UTC 2024 - Matej Cepl + +- It is sitearch not sitelib + +------------------------------------------------------------------- +Fri Sep 20 13:16:55 UTC 2024 - ecsos + +- - Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sun Dec 10 21:51:01 UTC 2023 - Dirk Müller + +- update to 1.3.0.post5: + * Build Python 3.12 wheels. No code changes. + +------------------------------------------------------------------- +Wed May 10 06:30:42 UTC 2023 - Dirk Müller + +- remove obsolete setuptools_scm_git_archive requirements + +------------------------------------------------------------------- +Sat Dec 3 20:01:16 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.3.0.post4 + * Build Python 3.11 wheels. No code changes. + +------------------------------------------------------------------- +Wed Oct 5 00:00:18 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.3.0.post3 + Rebuild pre-generated cython sources in sdist package to fix build issue on Python 3.11.0 beta1 + +------------------------------------------------------------------- +Fri Jan 14 09:37:10 UTC 2022 - Ben Greiner + +- Extend package description +- Remove python2 workarounds + +------------------------------------------------------------------- +Thu Jan 13 21:58:08 UTC 2022 - Ben Greiner + +- Update to 1.3.0post2 + * Export pyclipper.__version__ string (#40). + * Removed long-deprecated SCALING_FACTOR global variable. +- Relese 1.2.0 + * Release the Global Interpreter Lock (GIL) while doing more CPU + intensive calls to ClipperLib (union, difference, intersection, + minkowski, offset, etc), to allow Python apps to better + parallelize when using threading (#29, #30). +- Drop python-pyclipper-no-unittest2.patch + +------------------------------------------------------------------- +Wed Jun 10 16:20:24 UTC 2020 - Matej Cepl + +- Explain necessity of unittest2 for python2 + +------------------------------------------------------------------- +Tue Jun 2 15:03:59 UTC 2020 - pgajdos@suse.com + +- drop dependency on unittest2 for python3 +- added patches + https://github.com/fonttools/pyclipper/pull/32 + + python-pyclipper-no-unittest2.patch + +------------------------------------------------------------------- +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..39b0ce8 --- /dev/null +++ b/python-pyclipper.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pyclipper +# +# Copyright (c) 2025 SUSE LLC +# 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/ +# + + +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-pyclipper +Version: 1.3.0.post6 +Release: 0 +Summary: Cython wrapper for the Clipper library for clipping lines and polygons +License: MIT +URL: https://github.com/fonttools/pyclipper +Source: https://files.pythonhosted.org/packages/source/p/pyclipper/pyclipper-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +BuildRequires: unzip +%python_subpackages + +%description +Pyclipper is a Cython wrapper exposing public functions and classes of +the C++ translation of the `Angus Johnson's Clipper library`, a library +for clipping and offsetting lines and polygons. + +The Clipper library performs line & polygon clipping - intersection, +union, difference & exclusive-or, and line & polygon offsetting. The +library is based on Vatti's clipping algorithm. + +%prep +%setup -q -n pyclipper-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitearch}/pyclipper +%{python_sitearch}/pyclipper-%{version}.dist-info + +%changelog