14
0

Accepting request 904606 from home:mcalabkova:branches:devel:languages:python

- Add upstream patch unicode.patch to fix random python crash

OBS-URL: https://build.opensuse.org/request/show/904606
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=27
This commit is contained in:
2021-07-08 10:06:06 +00:00
committed by Git OBS Bridge
parent 1cdf4c9984
commit 37c1ce1f87
3 changed files with 233 additions and 1 deletions

View File

@@ -24,14 +24,16 @@ Summary: Module for operability between C++11 and Python
License: BSD-3-Clause
URL: https://github.com/pybind/pybind11
Source: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz#/pybind11-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/pybind/pybind11/commit/0c93a0f3fcf6bf26be584558d7426564720cea6f Fix Unicode support for ostream redirects
Patch0: unicode.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
BuildArch: noarch
%python_subpackages
@@ -59,6 +61,7 @@ This package contains files for developing applications using pybind11.
%prep
%setup -q -n pybind11-%{version}
%autopatch -p1
%build
%python_build