Backport PyBind11 3.x compatibility patch

Fix rhbz#2383231
This commit is contained in:
sergesanspaille 2025-07-31 10:10:18 +02:00
commit 56797fab2d
3 changed files with 15 additions and 1 deletions

View file

@ -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