[packages/manifold] - updated to 3.5.4, added python3/nanobind binding

qboosh qboosh at pld-linux.org
Sun Oct 11 10:04:52 CEST 2026


commit 5744ecbb50d5884b3d3e978fc8e9207611e6cf79
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 11 10:05:25 2026 +0200

    - updated to 3.5.4, added python3/nanobind binding

 manifold.spec | 42 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)
---
diff --git a/manifold.spec b/manifold.spec
index ed4acfb..db5c77a 100644
--- a/manifold.spec
+++ b/manifold.spec
@@ -1,19 +1,27 @@
+#
+# Conditional build:
+%bcond_without	python		# Python (nanobind) binding
+
 Summary:	Geometry library dedicated to creating and operating on manifold triangle meshes
 Summary(pl.UTF-8):	Biblioteka geometryczna do tworzenia i operacji na siatkach trójkątów rozmaitości
 Name:		manifold
-Version:	3.4.0
-Release:	2
+Version:	3.5.4
+Release:	1
 License:	Apache v2.0
 Group:		Libraries
+#Source0Download: https://github.com/elalish/manifold/releases
 Source0:	https://github.com/elalish/manifold/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	e065fa7ff7eff5193e30775fc5d976cb
+# Source0-md5:	d12566a37f70d265bd566c743433d5b7
 URL:		https://github.com/elalish/manifold
 BuildRequires:	Clipper2-devel
-BuildRequires:	GLM-devel
 BuildRequires:	cmake >= 3.18
 # C++17
 BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	pkgconfig
+%if %{with python}
+BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	python3-nanobind
+%endif
 BuildRequires:	tbb-devel
 # Library may have new symbols without soname change
 %requires_eq	tbb
@@ -35,11 +43,9 @@ dziedzinach produkcji, CAD, analizy strukturalnej itp.
 Summary:	Header files for %{name} library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
 Requires:	Clipper2-devel
-Requires:	GLM-devel
 Requires:	libstdc++-devel >= 6:7
-Requires:	pkgconfig
 Requires:	tbb-devel
 
 %description devel
@@ -48,12 +54,27 @@ Header files for %{name} library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki %{name}.
 
+%package -n python3-manifold
+Summary:	Python binding for manifold library
+Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki manifold
+Group:		Libraries/Python
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+Requires:	python3-numpy
+
+%description -n python3-manifold
+Python binding for manifold library.
+
+%description -n python3-manifold -l pl.UTF-8
+Wiązanie Pythona do biblioteki manifold.
+
 %prep
 %setup -q
 
 %build
 %cmake -B build \
+	-DMANIFOLD_DOWNLOAD=OFF \
 	-DMANIFOLD_PAR=TBB \
+	%{?with_python:-DMANIFOLD_PYBIND=ON} \
 	-DMANIFOLD_TEST=OFF
 
 %{__make} -C build
@@ -86,3 +107,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/manifold
 %{_libdir}/cmake/manifold
 %{_pkgconfigdir}/manifold.pc
+
+%if %{with python}
+%files -n python3-manifold
+%defattr(644,root,root,755)
+%{py3_sitedir}/manifold3d.cpython-313-i386-linux-gnu.so
+%{py3_sitedir}/manifold3d.pyi
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/manifold.git/commitdiff/5744ecbb50d5884b3d3e978fc8e9207611e6cf79



More information about the pld-cvs-commit mailing list