Compare commits
No commits in common. "b7f2a59a697156c1fb62050765e4e9a3e9371db3" and "5beefc8f6e88d8a822f1b25f7a976c1657c16e99" have entirely different histories.
b7f2a59a69
...
5beefc8f6e
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,4 +18,3 @@
|
||||
/pybind11-2.9.0.tar.gz
|
||||
/pybind11-2.9.1.tar.gz
|
||||
/pybind11-2.9.2.tar.gz
|
||||
/pybind11-2.10.0.tar.gz
|
||||
|
@ -1,24 +0,0 @@
|
||||
diff -up pybind11-2.10.0/pybind11/commands.py.hpath pybind11-2.10.0/pybind11/commands.py
|
||||
--- pybind11-2.10.0/pybind11/commands.py.hpath 2022-08-02 21:10:36.582025308 +0000
|
||||
+++ pybind11-2.10.0/pybind11/commands.py 2022-08-02 21:11:27.826124432 +0000
|
||||
@@ -8,18 +8,11 @@ def get_include(user: bool = False) -> s
|
||||
Return the path to the pybind11 include directory. The historical "user"
|
||||
argument is unused, and may be removed.
|
||||
"""
|
||||
- installed_path = os.path.join(DIR, "include")
|
||||
- source_path = os.path.join(os.path.dirname(DIR), "include")
|
||||
- return installed_path if os.path.exists(installed_path) else source_path
|
||||
+ return '/usr/include/pybind11'
|
||||
|
||||
|
||||
def get_cmake_dir() -> str:
|
||||
"""
|
||||
Return the path to the pybind11 CMake module directory.
|
||||
"""
|
||||
- cmake_installed_path = os.path.join(DIR, "share", "cmake", "pybind11")
|
||||
- if os.path.exists(cmake_installed_path):
|
||||
- return cmake_installed_path
|
||||
-
|
||||
- msg = "pybind11 not installed, installation required to access the CMake files"
|
||||
- raise ImportError(msg)
|
||||
+ return '/usr/share/cmake/pybind11'
|
23
pybind11-2.8.1-hpath.patch
Normal file
23
pybind11-2.8.1-hpath.patch
Normal file
@ -0,0 +1,23 @@
|
||||
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(__
|
||||
|
||||
|
||||
def get_include(user=False):
|
||||
- # type: (bool) -> str
|
||||
- installed_path = os.path.join(DIR, "include")
|
||||
- source_path = os.path.join(os.path.dirname(DIR), "include")
|
||||
- return installed_path if os.path.exists(installed_path) else source_path
|
||||
-
|
||||
+ return '/usr/include/pybind11'
|
||||
|
||||
def get_cmake_dir():
|
||||
- # type: () -> str
|
||||
- cmake_installed_path = os.path.join(DIR, "share", "cmake", "pybind11")
|
||||
- if os.path.exists(cmake_installed_path):
|
||||
- return cmake_installed_path
|
||||
- else:
|
||||
- msg = "pybind11 not installed, installation required to access the CMake files"
|
||||
- raise ImportError(msg)
|
||||
+ return '/usr/share/cmake/pybind11'
|
@ -1,3 +1,4 @@
|
||||
%global _without_tests 1
|
||||
# While the headers are architecture independent, the package must be
|
||||
# built separately on all architectures so that the tests are run
|
||||
# properly. See also
|
||||
@ -5,7 +6,7 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
# Whether to run the tests, enabled by default
|
||||
%bcond_with tests
|
||||
%bcond_without tests
|
||||
|
||||
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 9
|
||||
%global python2_enabled 0
|
||||
@ -16,15 +17,15 @@
|
||||
%global python3_enabled 1
|
||||
|
||||
Name: pybind11
|
||||
Version: 2.10.0
|
||||
Release: 1.0.riscv64%{?dist}
|
||||
Version: 2.9.2
|
||||
Release: 2%{?dist}
|
||||
Summary: Seamless operability between C++11 and Python
|
||||
License: BSD
|
||||
URL: https://github.com/pybind/pybind11
|
||||
Source0: https://github.com/pybind/pybind11/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
# Patch out header path
|
||||
Patch1: pybind11-2.10.0-hpath.patch
|
||||
Patch1: pybind11-2.8.1-hpath.patch
|
||||
|
||||
BuildRequires: make
|
||||
%if %{python2_enabled}
|
||||
@ -180,18 +181,6 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Sep 20 2022 Miro Hrončok <mhroncok@redhat.com> - 2.10.0-1.0.riscv64
|
||||
- Bootstrap for Python 3.11 on riscv64
|
||||
|
||||
* Tue Aug 02 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.10.0-1
|
||||
- Update to 2.10.0.
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.9.2-3
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.9.2-2
|
||||
- Bootstrap for Python 3.11
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (pybind11-2.10.0.tar.gz) = 93112ce530a0652b2b4458a137b4a35f2fd8607f82ad96698ef422128d0b53e16e1d06c239ee4643b821acafae09c74eb0f72bc4ee5584aa9fcdaff4d79980d9
|
||||
SHA512 (pybind11-2.9.2.tar.gz) = c6c18e5f59873adb3692640ade26472abd257607e7bb9fd48cfd1949878811e83d6ac6eb8c8dd926622d52ca4f13e5e6a58e0abaaaa1fa814ee831ea2b515272
|
||||
|
Loading…
Reference in New Issue
Block a user