update to 2.10.1

This commit is contained in:
Jonathan 2022-11-07 15:45:47 -06:00
parent 2b72092c1c
commit 409601afde
4 changed files with 17 additions and 8 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@
/pybind11-2.9.1.tar.gz /pybind11-2.9.1.tar.gz
/pybind11-2.9.2.tar.gz /pybind11-2.9.2.tar.gz
/pybind11-2.10.0.tar.gz /pybind11-2.10.0.tar.gz
/pybind11-2.10.1.tar.gz

View File

@ -1,16 +1,16 @@
diff -up pybind11-2.10.0/pybind11/commands.py.hpath pybind11-2.10.0/pybind11/commands.py diff -uNr pybind11-2.10.1.bak/pybind11/commands.py pybind11-2.10.1/pybind11/commands.py
--- pybind11-2.10.0/pybind11/commands.py.hpath 2022-08-02 21:10:36.582025308 +0000 --- pybind11-2.10.1.bak/pybind11/commands.py 2022-11-07 15:25:26.651515082 -0600
+++ pybind11-2.10.0/pybind11/commands.py 2022-08-02 21:11:27.826124432 +0000 +++ pybind11-2.10.1/pybind11/commands.py 2022-11-07 15:27:01.574703289 -0600
@@ -8,18 +8,11 @@ def get_include(user: bool = False) -> s @@ -8,22 +8,13 @@
Return the path to the pybind11 include directory. The historical "user" Return the path to the pybind11 include directory. The historical "user"
argument is unused, and may be removed. argument is unused, and may be removed.
""" """
- installed_path = os.path.join(DIR, "include") - installed_path = os.path.join(DIR, "include")
- source_path = os.path.join(os.path.dirname(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 installed_path if os.path.exists(installed_path) else source_path
-
+ return '/usr/include/pybind11' + return '/usr/include/pybind11'
def get_cmake_dir() -> str: def get_cmake_dir() -> str:
""" """
Return the path to the pybind11 CMake module directory. Return the path to the pybind11 CMake module directory.
@ -21,4 +21,8 @@ diff -up pybind11-2.10.0/pybind11/commands.py.hpath pybind11-2.10.0/pybind11/com
- -
- msg = "pybind11 not installed, installation required to access the CMake files" - msg = "pybind11 not installed, installation required to access the CMake files"
- raise ImportError(msg) - raise ImportError(msg)
-
+ return '/usr/share/cmake/pybind11' + return '/usr/share/cmake/pybind11'
def get_pkgconfig_dir() -> str:
"""

View File

@ -16,7 +16,7 @@
%global python3_enabled 1 %global python3_enabled 1
Name: pybind11 Name: pybind11
Version: 2.10.0 Version: 2.10.1
Release: 1%{?dist} Release: 1%{?dist}
Summary: Seamless operability between C++11 and Python Summary: Seamless operability between C++11 and Python
License: BSD License: BSD
@ -24,7 +24,7 @@ URL: https://github.com/pybind/pybind11
Source0: https://github.com/pybind/pybind11/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/pybind/pybind11/archive/v%{version}/%{name}-%{version}.tar.gz
# Patch out header path # Patch out header path
Patch1: pybind11-2.10.0-hpath.patch Patch1: pybind11-2.10.1-hpath.patch
BuildRequires: make BuildRequires: make
%if %{python2_enabled} %if %{python2_enabled}
@ -166,6 +166,7 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
%{_includedir}/pybind11/ %{_includedir}/pybind11/
%{_datadir}/cmake/pybind11/ %{_datadir}/cmake/pybind11/
%{_bindir}/pybind11-config %{_bindir}/pybind11-config
%{_datadir}/pkgconfig/%{name}.pc
%if %{python2_enabled} %if %{python2_enabled}
%files -n python2-%{name} %files -n python2-%{name}
@ -180,6 +181,9 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
%endif %endif
%changelog %changelog
* Mon Nov 07 2022 Jonathan Wright <jonathan@almalinux.org> - 2.10.1-1
- Update to 2.10.1 rhbz#2139245
* Tue Aug 02 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.10.0-1 * Tue Aug 02 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.10.0-1
- Update to 2.10.0. - Update to 2.10.0.

View File

@ -1 +1 @@
SHA512 (pybind11-2.10.0.tar.gz) = 93112ce530a0652b2b4458a137b4a35f2fd8607f82ad96698ef422128d0b53e16e1d06c239ee4643b821acafae09c74eb0f72bc4ee5584aa9fcdaff4d79980d9 SHA512 (pybind11-2.10.1.tar.gz) = 040f109ec870516acdaebc5133ccbba9e3ed7ff93214a66997cf4b8366c209322f3c902c283040826c7e585c3ea2259caf62d90d0b475bfa33d21e459dd54df1