diff --git a/pybind11-2.6.1-hpath.patch b/pybind11-2.8.1-hpath.patch similarity index 57% rename from pybind11-2.6.1-hpath.patch rename to pybind11-2.8.1-hpath.patch index 07271a2..5ed3314 100644 --- a/pybind11-2.6.1-hpath.patch +++ b/pybind11-2.8.1-hpath.patch @@ -1,14 +1,9 @@ -diff -up pybind11-2.6.1/pybind11/commands.py.hpath pybind11-2.6.1/pybind11/commands.py ---- pybind11-2.6.1/pybind11/commands.py.hpath 2020-11-11 22:33:21.000000000 +0100 -+++ pybind11-2.6.1/pybind11/commands.py 2020-11-12 13:22:07.355000414 +0100 -@@ -1,22 +1,8 @@ - # -*- coding: utf-8 -*- - import os +diff -up pybind11-2.8.1/pybind11/commands.py.hpath pybind11-2.8.1/pybind11/commands.py +--- pybind11-2.8.1/pybind11/commands.py.hpath 2021-11-26 18:39:36.765399461 +0000 ++++ pybind11-2.8.1/pybind11/commands.py 2021-11-26 18:40:24.924543543 +0000 +@@ -5,17 +5,7 @@ DIR = os.path.abspath(os.path.dirname(__ + -- --DIR = os.path.abspath(os.path.dirname(__file__)) -- -- def get_include(user=False): - # type: (bool) -> str - installed_path = os.path.join(DIR, "include") @@ -26,5 +21,3 @@ diff -up pybind11-2.6.1/pybind11/commands.py.hpath pybind11-2.6.1/pybind11/comma - msg = "pybind11 not installed, installation required to access the CMake files" - raise ImportError(msg) + return '/usr/share/cmake/pybind11' -diff -up pybind11-2.6.1/pybind11/__init__.py.hpath pybind11-2.6.1/pybind11/__init__.py -diff -up pybind11-2.6.1/pybind11/__main__.py.hpath pybind11-2.6.1/pybind11/__main__.py diff --git a/pybind11.spec b/pybind11.spec index 57a6d74..c99ffc7 100644 --- a/pybind11.spec +++ b/pybind11.spec @@ -26,7 +26,7 @@ URL: https://github.com/pybind/pybind11 Source0: https://github.com/pybind/pybind11/archive/refs/tags/v%{version}.tar.gz # Patch out header path -Patch1: pybind11-2.6.1-hpath.patch +Patch1: pybind11-2.8.1-hpath.patch BuildRequires: make %if %{python2_enabled}