Compare commits
36 Commits
master
...
f37-riscv6
Author | SHA1 | Date |
---|---|---|
Miro Hrončok | b7f2a59a69 | |
Susi Lehtola | 2b72092c1c | |
Susi Lehtola | b3e877be7c | |
Fedora Release Engineering | bdc21ac026 | |
Python Maint | ddbec059ea | |
Python Maint | 5beefc8f6e | |
Susi Lehtola | cd5fcc46d2 | |
Susi Lehtola | 333c4725c8 | |
Susi Lehtola | f3aef2af07 | |
Fedora Release Engineering | e91370796b | |
Susi Lehtola | fcea12a730 | |
Susi Lehtola | 752195cd0b | |
Susi Lehtola | 81143c0397 | |
Susi Lehtola | 87021bf84d | |
Susi Lehtola | aeff80ce47 | |
Fedora Release Engineering | 3a8b19fab1 | |
Susi Lehtola | c0e8e28375 | |
Python Maint | 166fbf4884 | |
Python Maint | 40b5943f21 | |
Miro Hrončok | 69ba4e866e | |
Susi Lehtola | a290a8fa8c | |
Fedora Release Engineering | 7e56d3aee6 | |
Tom Stellard | 47b294e620 | |
Susi Lehtola | 9ba40cff8a | |
Susi Lehtola | 36c26547c0 | |
Susi Lehtola | e082612e40 | |
Susi Lehtola | b44cc03f88 | |
Susi Lehtola | 3185818b61 | |
Susi Lehtola | c720d2901d | |
Susi Lehtola | 86e53fb97b | |
Merlin Mathesius | 9eb1dfbfb1 | |
Susi Lehtola | 9d6666c521 | |
Susi Lehtola | d4013f86a3 | |
Fedora Release Engineering | b27c91b62c | |
Fedora Release Engineering | 1485579f4f | |
Miro Hrončok | c588499176 |
|
@ -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
|
||||
|
|
|
@ -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'
|
|
@ -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'
|
116
pybind11.spec
116
pybind11.spec
|
@ -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.
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (pybind11-2.5.0.tar.gz) = 7f3a9c71916749436898d1844ef6b112baf0817a386308b5df8dec2a912ef4b6a932b94965e98f227c49fa77312f131972a6039f23b84a3daf6442a8ab0be7c2
|
||||
SHA512 (pybind11-2.10.0.tar.gz) = 93112ce530a0652b2b4458a137b4a35f2fd8607f82ad96698ef422128d0b53e16e1d06c239ee4643b821acafae09c74eb0f72bc4ee5584aa9fcdaff4d79980d9
|
||||
|
|
Loading…
Reference in New Issue