|
|
|
@ -4,11 +4,6 @@
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%ifarch ppc64le
|
|
|
|
|
# The tests are not LTO-compatible on power
|
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Whether to run the tests, enabled by default
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
@ -21,15 +16,18 @@
|
|
|
|
|
%global python3_enabled 1
|
|
|
|
|
|
|
|
|
|
Name: pybind11
|
|
|
|
|
Version: 2.6.2
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 2.11.1
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Seamless operability between C++11 and Python
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
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.6.1-hpath.patch
|
|
|
|
|
Patch1: pybind11-2.10.1-hpath.patch
|
|
|
|
|
|
|
|
|
|
# Adapt to changed function name in Python 3.13
|
|
|
|
|
Patch2: https://github.com/pybind/pybind11/pull/4902.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
%if %{python2_enabled}
|
|
|
|
@ -70,12 +68,8 @@ C++ code.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers for pybind11
|
|
|
|
|
# The manual epoch is set to make this the highest possible EVR
|
|
|
|
|
# of pybind11-static across Pythons in RHEL9, to fix RHEL-5571 with RHEL-38108
|
|
|
|
|
Epoch: 1
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
|
|
|
|
|
Provides: %{name}-static = 1:%{version}-%{release}
|
|
|
|
|
Obsoletes: python39-%{name}-devel < %{version}-%{release}
|
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
# For dir ownership
|
|
|
|
|
Requires: cmake
|
|
|
|
|
|
|
|
|
@ -88,7 +82,7 @@ This package contains the development headers for pybind11.
|
|
|
|
|
%package -n python2-%{name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python2-pybind11}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = 1:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{name}
|
|
|
|
|
%{base_description}
|
|
|
|
@ -101,7 +95,7 @@ This package contains the Python 2 files.
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-pybind11}
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = 1:%{version}-%{release}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%if !%{python2_enabled}
|
|
|
|
|
# Take care of upgrade path
|
|
|
|
@ -117,6 +111,7 @@ This package contains the Python 3 files.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch1 -p1 -b .hpath
|
|
|
|
|
%patch2 -p1 -b .4902
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
pys=""
|
|
|
|
@ -175,6 +170,7 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
|
|
|
|
|
%{_includedir}/pybind11/
|
|
|
|
|
%{_datadir}/cmake/pybind11/
|
|
|
|
|
%{_bindir}/pybind11-config
|
|
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
%if %{python2_enabled}
|
|
|
|
|
%files -n python2-%{name}
|
|
|
|
@ -189,26 +185,98 @@ PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 24 2024 Miro Hrončok <mhroncok@redhat.com> - 2.6.2-6
|
|
|
|
|
- Introduce epoch to pybind11-devel to sort newer than python3.11-pybind11-devel
|
|
|
|
|
- Resolves: RHEL-38108
|
|
|
|
|
|
|
|
|
|
* Tue Feb 22 2022 Tomas Orsava <torsava@redhat.com> - 2.6.2-5
|
|
|
|
|
- Add gating configuration and a simple smoke test
|
|
|
|
|
- Related: rhbz#1950291
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 2.6.2-4
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
- Manually add Provides and Obsoletes for python39-pybind11-devel
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.2-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.2-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.11.1-7
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.11.1-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.11.1-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 29 2024 Pavel Simovec <psimovec@redhat.com> - 2.11.1-5
|
|
|
|
|
- rebuilt
|
|
|
|
|
- Resolves: RHEL-34668
|
|
|
|
|
|
|
|
|
|
* Mon Apr 29 2024 Pavel Simovec <psimovec@redhat.com> - 2.11.1-4
|
|
|
|
|
- Migrate to SPDX license format
|
|
|
|
|
- Resolves: RHEL-34668
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.11.1-1
|
|
|
|
|
- Update to 2.11.1.
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.11.0-1
|
|
|
|
|
- Update to 2.11.0.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 2.10.4-3
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.10.4-2
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Mar 17 2023 Pavel Šimovec <psimovec@redhat.com> - 2.10.4-1
|
|
|
|
|
- Update to 2.10.4 rhbz#2179208
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 09 2023 Jonathan Wright <jonathan@almalinux.org> - 2.10.3-1
|
|
|
|
|
- Update to 2.10.3 rhbz#2155679
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- 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.
|
|
|
|
|