From ececa3b852be6ca7c6d03e63b02e4450e16a43f3 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Fri, 20 Dec 2024 11:28:59 +0800 Subject: [PATCH] adopt to new cmake macro --- pybind11.spec | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/pybind11.spec b/pybind11.spec index b28dc88..c0e9c2f 100644 --- a/pybind11.spec +++ b/pybind11.spec @@ -2,13 +2,12 @@ %bcond_without tests Name: pybind11 Version: 2.13.1 -Release: 1 +Release: 2 Summary: Seamless operability between C++11 and Python -License: BSD +License: BSD-3-Clause URL: https://github.com/pybind/pybind11 Source0: https://github.com/pybind/pybind11/archive/v%{version}/pybind11-%{version}.tar.gz - BuildRequires: make cmake eigen3-devel gcc-c++ BuildRequires: python3-devel python3-setuptools #BuildRequires: python3-numpy python3-pytest @@ -42,23 +41,14 @@ C++ code. %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 %{!?with_tests:-DPYBIND11_TEST=OFF} - %make_build -C $py -done +%cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF} +%cmake_build %py3_build -%check -#make -C python3 check %{?_smp_mflags} - - %install -%make_install -C python3 +%cmake_install PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}" @@ -76,6 +66,9 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}" %changelog +* Fri Dec 20 2024 Funda Wang - 2.13.1-2 +- adopt to new cmake macro + * Mon Sep 09 2024 xu_ping <707078654@qq.com> - 2.13.1-1 - Update package to version 2.13.1 Use new PyCode API on Python 3.12+. -- Gitee