[packages/python3-pybind11] - cleanup, updated dependencies

qboosh qboosh at pld-linux.org
Thu May 29 20:58:52 CEST 2025


commit 4eb3fa9b8b487cfe2850d0ae74f9758e357e88bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu May 29 20:49:04 2025 +0200

    - cleanup, updated dependencies

 python3-pybind11.spec | 42 ++++++++++++++++++++++--------------------
 1 file changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/python3-pybind11.spec b/python3-pybind11.spec
index 02a93c2..1f56637 100644
--- a/python3-pybind11.spec
+++ b/python3-pybind11.spec
@@ -1,24 +1,22 @@
 %define		module		pybind11
-%define		egg_name	pybind11
-%define		pypi_name	pybind11
 Summary:	Seamless operability between C++11 and Python
 Summary(pl.UTF-8):	Gładka współpraca między C++11 a Pythonem
-Name:		python3-%{pypi_name}
-# keep 2.9.x here for python2 support
+Name:		python3-%{module}
 Version:	2.13.6
 Release:	3
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pybind11/
-Source0:	https://github.com/pybind/pybind11/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
+Source0:	https://github.com/pybind/pybind11/archive/v%{version}/%{module}-%{version}.tar.gz
 # Source0-md5:	a04dead9c83edae6d84e2e343da7feeb
 URL:		https://pypi.org/project/pybind11/
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools
+BuildRequires:	cmake >= 3.13
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:42
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	libstdc++-devel >= 6:4.7
-Requires:	python3-devel >= 1:2.7
+Requires:	python3-devel >= 1:3.7
 Conflicts:	eigen3 < 3.2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,23 +39,27 @@ wnioskowanie informacji o typach przy użyciu introspekcji w trakcie
 kompilacji.
 
 %prep
-%setup -q -n %{pypi_name}-%{version}
+%setup -q -n %{module}-%{version}
 
 %build
-pys=""
-pys="$pys python3"
-for py in $pys; do
-	mkdir $py
-	%cmake -B $py -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE -DPYBIND11_TEST=OFF
-	%{__make} -C $py
-done
+# CMAKE_BUILD_TYPE=Debug would helps runing tests, doesn't affect binary package as we don't package any binaries
+%cmake -B build-py3 \
+	-DCMAKE_BUILD_TYPE=Debug \
+	-DPYBIND11_INSTALL=TRUE \
+	-DPYBIND11_TEST=OFF \
+	-DPYTHON_EXECUTABLE=%{__python3} \
+	-DUSE_PYTHON_INCLUDE_DIR=FALSE
+
+%{__make} -C build-py3
 
 %py3_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install -C python3 DESTDIR=$RPM_BUILD_ROOT
+%{__make} install -C build-py3 \
+	DESTDIR=$RPM_BUILD_ROOT
+
 %py3_install
 
 %clean
@@ -67,8 +69,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE README.rst
 %attr(755,root,root) %{_bindir}/pybind11-config
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%{_includedir}/%{module}
+%{py3_sitescriptdir}/pybind11
+%{py3_sitescriptdir}/pybind11-%{version}-py*.egg-info
+%{_includedir}/pybind11
 %{_datadir}/cmake/pybind11
 %{_npkgconfigdir}/pybind11.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pybind11.git/commitdiff/4eb3fa9b8b487cfe2850d0ae74f9758e357e88bc



More information about the pld-cvs-commit mailing list