Compare commits

...

36 Commits

Author SHA1 Message Date
Miro Hrončok b7f2a59a69 Bootstrap for Python 3.11 on riscv64 2022-09-20 14:14:00 +02:00
Susi Lehtola 2b72092c1c Update patch 2022-08-02 21:12:15 +00:00
Susi Lehtola b3e877be7c Update to 2.10.0 with initial support for Python 3.11 2022-08-02 20:59:25 +00:00
Fedora Release Engineering bdc21ac026 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 15:42:55 +00:00
Python Maint ddbec059ea Rebuilt for Python 3.11 2022-06-14 17:26:42 +02:00
Python Maint 5beefc8f6e Bootstrap for Python 3.11 2022-06-13 15:14:48 +02:00
Susi Lehtola cd5fcc46d2 Update to 2.9.2. 2022-04-02 23:01:14 +00:00
Susi Lehtola 333c4725c8 Test failure fixed upstream 2022-02-09 16:56:46 +00:00
Susi Lehtola f3aef2af07 Update to 2.9.1. 2022-02-08 21:33:05 +00:00
Fedora Release Engineering e91370796b - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 09:44:41 +00:00
Susi Lehtola fcea12a730 Update to 2.9.0. 2021-12-30 01:16:48 +00:00
Susi Lehtola 752195cd0b Update patch 2021-11-26 18:42:22 +00:00
Susi Lehtola 81143c0397 Update to 2.8.1. 2021-11-26 18:35:50 +00:00
Susi Lehtola 87021bf84d Update to 2.7.1. 2021-08-04 22:36:03 +00:00
Susi Lehtola aeff80ce47 Update to 2.7.1. 2021-08-04 22:35:33 +00:00
Fedora Release Engineering 3a8b19fab1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 04:21:51 +00:00
Susi Lehtola c0e8e28375 Update to 2.7.0. 2021-07-17 16:52:52 +00:00
Python Maint 166fbf4884 Rebuilt for Python 3.10 2021-06-04 19:10:33 +02:00
Python Maint 40b5943f21 Bootstrap for Python 3.10 2021-06-04 10:02:33 +02:00
Miro Hrončok 69ba4e866e Use -DCMAKE_BUILD_TYPE=Debug to workaround a segfault in tests 2021-01-29 15:30:02 +01:00
Susi Lehtola a290a8fa8c Update to 2.6.2. 2021-01-27 16:13:05 +01:00
Fedora Release Engineering 7e56d3aee6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 08:49:46 +00:00
Tom Stellard 47b294e620 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 04:30:15 +00:00
Susi Lehtola 9ba40cff8a Add binary 2020-12-06 12:17:51 +01:00
Susi Lehtola 36c26547c0 Remove unexpanded macro 2020-12-06 12:07:01 +01:00
Susi Lehtola e082612e40 README has changed name 2020-12-06 12:04:07 +01:00
Susi Lehtola b44cc03f88 Update patch name in spec 2020-11-12 13:26:53 +01:00
Susi Lehtola 3185818b61 Update patch and remove entry for failed build in changelog. 2020-11-12 13:23:32 +01:00
Susi Lehtola c720d2901d Update to 2.6.1. 2020-11-12 13:18:18 +01:00
Susi Lehtola 86e53fb97b Update to 2.6.0. 2020-11-09 15:25:48 +01:00
Merlin Mathesius 9eb1dfbfb1 Drop Python 2 support for ELN and RHEL9+
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2020-08-12 15:10:19 -05:00
Susi Lehtola 9d6666c521 Fix typo 2020-08-05 13:25:06 +02:00
Susi Lehtola d4013f86a3 Adapt to new CMake macros. 2020-08-05 13:08:03 +02:00
Fedora Release Engineering b27c91b62c - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 07:16:18 +00:00
Fedora Release Engineering 1485579f4f - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 23:15:31 +00:00
Miro Hrončok c588499176 Replace Python version glob with macro (needed for Python 3.10+)
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
2020-07-13 21:04:27 +02:00
5 changed files with 128 additions and 40 deletions

10
.gitignore vendored
View File

@ -9,3 +9,13 @@
/pybind11-2.4.2.tar.gz
/pybind11-2.4.3.tar.gz
/pybind11-2.5.0.tar.gz
/pybind11-2.6.0.tar.gz
/pybind11-2.6.1.tar.gz
/pybind11-2.6.2.tar.gz
/pybind11-2.7.0.tar.gz
/pybind11-2.7.1.tar.gz
/v2.8.1.tar.gz
/pybind11-2.9.0.tar.gz
/pybind11-2.9.1.tar.gz
/pybind11-2.9.2.tar.gz
/pybind11-2.10.0.tar.gz

View File

@ -0,0 +1,24 @@
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'

View File

@ -1,16 +0,0 @@
diff -up pybind11-2.5.0/pybind11/__init__.py.hpath pybind11-2.5.0/pybind11/__init__.py
--- pybind11-2.5.0/pybind11/__init__.py.hpath 2020-04-01 08:30:49.562640795 +0200
+++ pybind11-2.5.0/pybind11/__init__.py 2020-04-01 08:31:53.176754407 +0200
@@ -2,11 +2,4 @@ from ._version import version_info, __ve
def get_include(user=False):
- import os
- d = os.path.dirname(__file__)
- if os.path.exists(os.path.join(d, "include")):
- # Package is installed
- return os.path.join(d, "include")
- else:
- # Package is from a source directory
- return os.path.join(os.path.dirname(d), "include")
+ return '/usr/include/pybind11'

View File

@ -5,9 +5,9 @@
%global debug_package %{nil}
# Whether to run the tests, enabled by default
%bcond_without tests
%bcond_with tests
%if 0%{?fedora} >= 30
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 9
%global python2_enabled 0
%else
%global python2_enabled 1
@ -15,18 +15,18 @@
%global python3_enabled 1
Name: pybind11
Version: 2.5.0
Release: 3%{?dist}
Version: 2.10.0
Release: 1.0.riscv64%{?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.5.0-hpath.patch
Patch1: pybind11-2.10.0-hpath.patch
BuildRequires: make
%if %{python2_enabled}
# Needed to build the python libraries
BuildRequires: python2-devel
@ -78,7 +78,7 @@ This package contains the development headers for pybind11.
%if %{python2_enabled}
%package -n python2-%{name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
%{?python_provide:%python_provide python2-pybind11}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description -n python2-%{name}
@ -90,7 +90,7 @@ This package contains the Python 2 files.
%if %{python3_enabled}
%package -n python3-%{name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
%{?python_provide:%python_provide python3-pybind11}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
@ -119,10 +119,12 @@ pys="$pys python3"
%endif
for py in $pys; do
mkdir $py
cd $py
%cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF}
make %{?_smp_mflags}
cd ..
# When -DCMAKE_BUILD_TYPE is set to Release, the tests in %%check might segfault.
# However, we do not ship any binaries, and therefore Debug
# build type does not affect the results.
# https://bugzilla.redhat.com/show_bug.cgi?id=1921199
%cmake -B $py -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF}
%make_build -C $py
done
%if %{python2_enabled}
@ -160,9 +162,10 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
%files devel
%license LICENSE
%doc README.md
%doc README.rst
%{_includedir}/pybind11/
%{_datadir}/cmake/pybind11/
%{_bindir}/pybind11-config
%if %{python2_enabled}
%files -n python2-%{name}
@ -173,35 +176,102 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
%if %{python3_enabled}
%files -n python3-%{name}
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}-py?.?.egg-info
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%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
* Sat Apr 02 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.9.2-1
- Update to 2.9.2.
* Tue Feb 08 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.9.1-1
- Update to 2.9.1.
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Dec 29 2021 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.9.0-1
- Update to 2.9.0.
* Fri Nov 26 2021 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.8.1-1
- Update to 2.8.1.
* Wed Aug 04 2021 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.7.1-1
- Update to 2.7.1.
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat Jul 17 2021 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.7.0-1
- Update to 2.7.0.
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.6.2-3
- Rebuilt for Python 3.10
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.6.2-2
- Bootstrap for Python 3.10
* Wed Jan 27 2021 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.6.2-1
- Update to 2.6.2.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Nov 12 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.6.1-1
- Update to 2.6.1.
* Wed Aug 12 2020 Merlin Mathesius <mmathesi@redhat.com> - 2.5.0-5
- Drop Python 2 support for ELN and RHEL9+
* Wed Aug 05 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.5.0-6
- Adapt to new CMake macros.
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-3
- Rebuilt for Python 3.9
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
- Bootstrap for Python 3.9
* Wed Apr 01 2020 Susi Lehtola - 2.5.0-1
* Wed Apr 01 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.5.0-1
- Update to 2.5.0.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Oct 15 2019 Susi Lehtola - 2.4.3-1
* Tue Oct 15 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.3-1
- Update to 2.4.3.
* Tue Oct 08 2019 Susi Lehtola - 2.4.2-2
* Tue Oct 08 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.2-2
- Fix Python 3.8 incompatibility.
* Sat Sep 28 2019 Susi Lehtola - 2.4.2-1
* Sat Sep 28 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.2-1
- Update to 2.4.2.
* Fri Sep 20 2019 Susi Lehtola - 2.4.1-1
* Fri Sep 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.1-1
- Update to 2.4.1.
* Fri Sep 20 2019 Susi Lehtola - 2.4.0-1
* Fri Sep 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.0-1
- Update to 2.4.0.
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-3
@ -210,16 +280,16 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jul 10 2019 Susi Lehtola - 2.3.0-1
* Wed Jul 10 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.0-1
- Update to 2.3.0.
* Fri May 03 2019 Susi Lehtola - 2.2.4-3
* Fri May 03 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.2.4-3
- Fix incompatibility with pytest 4.0.
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Sep 18 2018 Susi Lehtola - 2.2.4-1
* Tue Sep 18 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.2.4-1
- Remove python2 packages for Fedora >= 30.
- Update to 2.2.4.

View File

@ -1 +1 @@
SHA512 (pybind11-2.5.0.tar.gz) = 7f3a9c71916749436898d1844ef6b112baf0817a386308b5df8dec2a912ef4b6a932b94965e98f227c49fa77312f131972a6039f23b84a3daf6442a8ab0be7c2
SHA512 (pybind11-2.10.0.tar.gz) = 93112ce530a0652b2b4458a137b4a35f2fd8607f82ad96698ef422128d0b53e16e1d06c239ee4643b821acafae09c74eb0f72bc4ee5584aa9fcdaff4d79980d9