[packages/python3-kiwisolver] - python-kiwisolver.spec updated to 1.4.8 for python 3.10+

qboosh qboosh at pld-linux.org
Sun Mar 16 18:49:17 CET 2025


commit 1091434b17823b95f88f770fdf24170ca0d78ed3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 16 18:28:43 2025 +0100

    - python-kiwisolver.spec updated to 1.4.8 for python 3.10+

 python-kiwisolver.spec  | 126 ------------------------------------------------
 python3-kiwisolver.spec |  68 ++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 126 deletions(-)
---
diff --git a/python-kiwisolver.spec b/python-kiwisolver.spec
deleted file mode 100644
index fdcb9f5..0000000
--- a/python-kiwisolver.spec
+++ /dev/null
@@ -1,126 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Fast implementation of the Cassowary constraint solver
-Summary(pl.UTF-8):	Szybka implementacja rozwiązywania układu ograniczeń metodą Cassowary
-Name:		python-kiwisolver
-# keep 1.1.x here for python2 support
-Version:	1.1.0
-Release:	9
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/kiwisolver/
-Source0:	https://files.pythonhosted.org/packages/source/k/kiwisolver/kiwisolver-%{version}.tar.gz
-# Source0-md5:	fc8a614367f7ba0d34a02fd08c535afc
-URL:		https://github.com/nucleic/kiwi
-BuildRequires:	libstdc++-devel
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.4
-BuildRequires:	python3-setuptools
-%endif
-Requires:	python-modules >= 1:2.7
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Kiwi is an efficient C++ implementation of the Cassowary constraint
-solving algorithm. Kiwi is an implementation of the algorithm based on
-the seminal Cassowary paper. It is *not* a refactoring of the original
-C++ solver. Kiwi has been designed from the ground up to be
-lightweight and fast. Kiwi ranges from 10x to 500x faster than the
-original Cassowary solver with typical use cases gaining a 40x
-improvement. Memory savings are consistently > 5x.
-
-In addition to the C++ solver, Kiwi ships with hand-rolled Python
-bindings.
-
-%description -l pl.UTF-8
-Kiwi to napisana w C++, wydajna implementacja algorytmu rozwiązywania
-układu ograniczeń Cassowary. Kiwi to implementacja oparta na
-nowatorskim dokumencie Cassowary, nie refaktor oryginalnej
-implementacji w C++. Kiwi zostało od początku napisane z myślą o
-lekkości i szybkości; jest od 10x do 500x szybsze od oryginalnej
-implementacji, w typowych przypadkach osiągając 40-krotne
-przyspieszenie. Oszczędność pamięci jest pięciokrotna.
-
-Poza kodem w C++ Kiwi zawiera ręcznie napisane wiązania Pythona.
-
-%package -n python3-kiwisolver
-Summary:	Fast implementation of the Cassowary constraint solver
-Summary(pl.UTF-8):	Szybka implementacja rozwiązywania układu ograniczeń metodą Cassowary
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-kiwisolver
-Kiwi is an efficient C++ implementation of the Cassowary constraint
-solving algorithm. Kiwi is an implementation of the algorithm based on
-the seminal Cassowary paper. It is *not* a refactoring of the original
-C++ solver. Kiwi has been designed from the ground up to be
-lightweight and fast. Kiwi ranges from 10x to 500x faster than the
-original Cassowary solver with typical use cases gaining a 40x
-improvement. Memory savings are consistently > 5x.
-
-In addition to the C++ solver, Kiwi ships with hand-rolled Python
-bindings.
-
-%description -n python3-kiwisolver -l pl.UTF-8
-Kiwi to napisana w C++, wydajna implementacja algorytmu rozwiązywania
-układu ograniczeń Cassowary. Kiwi to implementacja oparta na
-nowatorskim dokumencie Cassowary, nie refaktor oryginalnej
-implementacji w C++. Kiwi zostało od początku napisane z myślą o
-lekkości i szybkości; jest od 10x do 500x szybsze od oryginalnej
-implementacji, w typowych przypadkach osiągając 40-krotne
-przyspieszenie. Oszczędność pamięci jest pięciokrotna.
-
-Poza kodem w C++ Kiwi zawiera ręcznie napisane wiązania Pythona.
-
-%prep
-%setup -q -n kiwisolver-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst releasenotes.rst
-%attr(755,root,root) %{py_sitedir}/kiwisolver.so
-%{py_sitedir}/kiwisolver-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-kiwisolver
-%defattr(644,root,root,755)
-%doc README.rst releasenotes.rst
-%attr(755,root,root) %{py3_sitedir}/kiwisolver.cpython-*.so
-%{py3_sitedir}/kiwisolver-%{version}-py*.egg-info
-%endif
diff --git a/python3-kiwisolver.spec b/python3-kiwisolver.spec
new file mode 100644
index 0000000..57c0fc2
--- /dev/null
+++ b/python3-kiwisolver.spec
@@ -0,0 +1,68 @@
+Summary:	Fast implementation of the Cassowary constraint solver
+Summary(pl.UTF-8):	Szybka implementacja rozwiązywania układu ograniczeń metodą Cassowary
+Name:		python3-kiwisolver
+Version:	1.4.8
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/kiwisolver/
+Source0:	https://files.pythonhosted.org/packages/source/k/kiwisolver/kiwisolver-%{version}.tar.gz
+# Source0-md5:	2eb55aab42272292a732411bb6c79dee
+URL:		https://github.com/nucleic/kiwi
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	python3-cppy >= 1.3.0
+BuildRequires:	python3-devel >= 1:3.10
+BuildRequires:	python3-setuptools >= 1:61.2
+BuildRequires:	python3-setuptools_scm >= 3.4.3
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.10
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Kiwi is an efficient C++ implementation of the Cassowary constraint
+solving algorithm. Kiwi is an implementation of the algorithm based on
+the seminal Cassowary paper. It is *not* a refactoring of the original
+C++ solver. Kiwi has been designed from the ground up to be
+lightweight and fast. Kiwi ranges from 10x to 500x faster than the
+original Cassowary solver with typical use cases gaining a 40x
+improvement. Memory savings are consistently > 5x.
+
+In addition to the C++ solver, Kiwi ships with hand-rolled Python
+bindings.
+
+%description -l pl.UTF-8
+Kiwi to napisana w C++, wydajna implementacja algorytmu rozwiązywania
+układu ograniczeń Cassowary. Kiwi to implementacja oparta na
+nowatorskim dokumencie Cassowary, nie refaktor oryginalnej
+implementacji w C++. Kiwi zostało od początku napisane z myślą o
+lekkości i szybkości; jest od 10x do 500x szybsze od oryginalnej
+implementacji, w typowych przypadkach osiągając 40-krotne
+przyspieszenie. Oszczędność pamięci jest pięciokrotna.
+
+Poza kodem w C++ Kiwi zawiera ręcznie napisane wiązania Pythona.
+
+%prep
+%setup -q -n kiwisolver-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst releasenotes.rst
+%dir %{py3_sitedir}/kiwisolver
+%attr(755,root,root) %{py3_sitedir}/kiwisolver/_cext.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/kiwisolver/_cext.pyi
+%attr(755,root,root) %{py3_sitedir}/kiwisolver/*.py
+%attr(755,root,root) %{py3_sitedir}/kiwisolver/py.typed
+%attr(755,root,root) %{py3_sitedir}/kiwisolver/__pycache__
+%{py3_sitedir}/kiwisolver-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-kiwisolver.git/commitdiff/1091434b17823b95f88f770fdf24170ca0d78ed3



More information about the pld-cvs-commit mailing list