From 6f357d8cd6d429d507b1e0854ded0e5ee7835d4c Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Thu, 31 Jul 2025 10:10:18 +0200 Subject: [PATCH] Backport PyBind11 3.x compatibility patch Fix rhbz#2383231 --- .gitignore | 5 +++++ sources | 6 +++++- xtensor-python.spec | 7 ++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a7e0e85..a7f60bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ /xtensor-python-0.23.1.tar.gz /xtensor-python-0.24.1.tar.gz /xtensor-python-0.26.0.tar.gz +/324.diff +/326.diff +/325.diff +/xtensor-python-0.28.0.tar.gz +/327.diff diff --git a/sources b/sources index 44c806e..b5dbb35 100644 --- a/sources +++ b/sources @@ -1 +1,5 @@ -SHA512 (xtensor-python-0.26.0.tar.gz) = 7a7318fe212e354466175cda4bd264e56da3faf190aa34b6b086373fa08b7181a9356db4d396b8932d0be4738cb33fd4fb378c60bb94b3f8c858178b31acac89 +SHA512 (327.diff) = 028b1c4f01eb9cc5c6e3742f21a0afd890870afce2ab128abc765772fb269bd4ed882cf9a2c1e9900c9740ed5017dfe51ca0060d1ffc795332c83ff9f799369d +SHA512 (325.diff) = 438fccb0dfd5a18a245678960edf07bb35187056e51fe1a1025032d3c96f25f88208fcb132c6f64df8dec590028e73e34effbd6c22f40cde6c358c6956c09d6a +SHA512 (326.diff) = d2a6110f360ae68e3463d07fcbda5825ab7f41d23fee722216170f42a85c8b3236d3f6df2a4493e3a89ca9eee2bb796df0659d0a59028cc7f2c9d6f521a32493 +SHA512 (324.diff) = 379dd32dbe806a5c2b9351506030cf746950555fa2408401d3a901a1357321fd681cee169b2055e049d52a693a2d4fb743438d99883653aa64a33861330f0136 +SHA512 (xtensor-python-0.28.0.tar.gz) = 382b457663560db5c43ce8b111fd6bdb2aa2d679dd4ae04baa966e58117937f11c9a1e57847a6532017e6023e688876223d358652ad84a371d45c7b6802b3f73 diff --git a/xtensor-python.spec b/xtensor-python.spec index fe47c52..610dba3 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -1,7 +1,7 @@ %undefine __cmake_in_source_build Name: xtensor-python -Version: 0.26.0 +Version: 0.28.0 Release: %autorelease Summary: Python bindings for xtensor # Automatically converted from old format: BSD - review is highly recommended. @@ -10,6 +10,10 @@ URL: https://xtensor-python.readthedocs.io/ %global github https://github.com/QuantStack/xtensor-python Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: %{github}/pull/324.diff +Patch1: %{github}/pull/326.diff +Patch2: %{github}/pull/325.diff +Patch3: %{github}/pull/327.diff # because xtensor does so for armv7hl, ppc64le and s390x ExcludeArch: armv7hl ppc64le s390x @@ -68,6 +72,7 @@ Requires: python3-numpy %license LICENSE %{_includedir}/%{name}/ %{_libdir}/cmake/%{name}/ +%{_datadir}/pkgconfig/%{name}.pc %changelog %autochangelog