Compare commits
No commits in common. "imports/c9-beta/python3.14-pybind11-2.13.6-4.el9" and "c10s" have entirely different histories.
imports/c9
...
c10s
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
30
.gitignore
vendored
30
.gitignore
vendored
@ -1 +1,29 @@
|
||||
SOURCES/pybind11-2.13.6.tar.gz
|
||||
/v2.0.1.tar.gz
|
||||
/pybind11-2.2.1.tar.gz
|
||||
/pybind11-2.2.2.tar.gz
|
||||
/pybind11-2.2.3.tar.gz
|
||||
/pybind11-2.2.4.tar.gz
|
||||
/pybind11-2.3.0.tar.gz
|
||||
/pybind11-2.4.0.tar.gz
|
||||
/pybind11-2.4.1.tar.gz
|
||||
/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
|
||||
/pybind11-2.10.1.tar.gz
|
||||
/pybind11-2.10.3.tar.gz
|
||||
/pybind11-2.10.4.tar.gz
|
||||
/pybind11-2.11.0.tar.gz
|
||||
/pybind11-2.11.1.tar.gz
|
||||
/pybind11-2.12.0.tar.gz
|
||||
/pybind11-2.13.1.tar.gz
|
||||
/pybind11-2.13.6.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
8c7e3e8fec829ced31a495dec281153511f33c63 SOURCES/pybind11-2.13.6.tar.gz
|
||||
@ -1,173 +1,3 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.6.5)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 4;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
## END: Set by rpmautospec
|
||||
|
||||
%global python3_pkgversion 3.14
|
||||
|
||||
# While the headers are architecture independent, the package must be
|
||||
# built separately on all architectures so that the tests are run
|
||||
# properly. See also
|
||||
# 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
|
||||
|
||||
# Exclude automatic provides without python3.14 in the name
|
||||
%global __provides_exclude cmake|pkgconfig
|
||||
|
||||
# Whether to run the tests, enabled by default
|
||||
%bcond tests 1
|
||||
|
||||
Name: python%{python3_pkgversion}-pybind11
|
||||
Version: 2.13.6
|
||||
Release: %autorelease
|
||||
Summary: Seamless operability between C++11 and Python
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pybind/pybind11
|
||||
Source0: https://github.com/pybind/pybind11/archive/v%{version}/pybind11-%{version}.tar.gz
|
||||
|
||||
# Use the `/usr` prefix for the python commands
|
||||
Patch1: pybind11-2.13.6-Use_usr_prefix.patch
|
||||
# Drop cmake and ninja from build-requires
|
||||
Patch2: pybind11-2.13.6-Drop_some_build-requires.patch
|
||||
# Adjust test for different syntax in python3.14
|
||||
# Upstream commit: https://github.com/pybind/pybind11/commit/094343c
|
||||
Patch3: Adjust-test-for-python3.14.patch
|
||||
|
||||
# Needed to build the python libraries
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
# Test depdendencies are not exposed
|
||||
%if %{with tests}
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
BuildRequires: python%{python3_pkgversion}-numpy
|
||||
BuildRequires: python%{python3_pkgversion}-scipy
|
||||
%endif
|
||||
|
||||
BuildRequires: eigen3-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%global base_description \
|
||||
pybind11 is a lightweight header-only library that exposes C++ types \
|
||||
in Python and vice versa, mainly to create Python bindings of existing \
|
||||
C++ code.
|
||||
|
||||
%description
|
||||
%{base_description}
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for pybind11
|
||||
|
||||
# This package does not have namespaced file locations, so if we build the
|
||||
# pybind11-devel subpackage in any other stack as well, the files from these
|
||||
# packages will conflict. The package name is namespaced so that customers can
|
||||
# decide which to install, but the packages will conflict with each other.
|
||||
# Whenever python3.X-pybind11-devel is introduced, it needs to explicitly
|
||||
# conflict with all the previous python3.X-pybind11-devel packages as well as
|
||||
# the non-namespaced pybind11-devel package from the main Python stack.
|
||||
Conflicts: pybind11-devel < %{version}-%{release}
|
||||
Conflicts: python3.11-pybind11-devel < %{version}-%{release}
|
||||
Conflicts: python3.12-pybind11-devel < %{version}-%{release}
|
||||
|
||||
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%{base_description}
|
||||
|
||||
This package contains the development headers for pybind11.
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{name}
|
||||
Summary: %{summary}
|
||||
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{name}
|
||||
%{base_description}
|
||||
|
||||
This package contains the Python 3 files.
|
||||
|
||||
%prep
|
||||
%autosetup -n pybind11-%{version} -p1
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
# Build with CMake first to install the devel files in OS native paths
|
||||
# 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 \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
%{?with_tests:-DPYBIND11_TEST=ON} \
|
||||
%{!?with_tests:-DPYBIND11_TEST=OFF} \
|
||||
-DUSE_PYTHON_INCLUDE_DIR=FALSE \
|
||||
-DPython_EXECUTABLE=/usr/bin/python%{python3_pkgversion} \
|
||||
-DPython_INCLUDE_DIR=/usr/include/python%{python3_pkgversion}
|
||||
%cmake_build
|
||||
|
||||
# Build again with the python build system to get the python files
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files pybind11
|
||||
|
||||
# Remove the devel files in the python package
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pybind11/include/
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pybind11/share/
|
||||
sed -i '/pybind11\/include/d' %{pyproject_files}
|
||||
sed -i '/pybind11\/share/d' %{pyproject_files}
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%cmake_build --target check
|
||||
%endif
|
||||
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_includedir}/pybind11/
|
||||
%{_datadir}/cmake/pybind11/
|
||||
%{_bindir}/pybind11-config
|
||||
%{_datadir}/pkgconfig/pybind11.pc
|
||||
|
||||
%files -n python%{python3_pkgversion}-pybind11 -f %{pyproject_files}
|
||||
|
||||
|
||||
%changelog
|
||||
## START: Generated by rpmautospec
|
||||
* Tue Dec 02 2025 Lumir Balhar <lbalhar@redhat.com> - 2.13.6-4
|
||||
- Enable tests / disable bootsrap
|
||||
|
||||
* Tue Dec 02 2025 Lukáš Zachar <lzachar@redhat.com> - 2.13.6-3
|
||||
- Add gating
|
||||
|
||||
* Tue Dec 02 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.13.6-2
|
||||
- Convert from Fedora for the Python 3.14 stack in RHEL
|
||||
|
||||
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.13.6-1
|
||||
- RHEL: Rename SPEC to python3.14-pybind11.spec
|
||||
|
||||
* Wed Aug 20 2025 Cristian Le <git@lecris.dev> - 2.13.6-7
|
||||
- Refactor the build script
|
||||
- Drop the python3-python2 distinction
|
||||
@ -406,5 +236,3 @@ sed -i '/pybind11\/share/d' %{pyproject_files}
|
||||
|
||||
* Sun Feb 05 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-1
|
||||
- First release.
|
||||
|
||||
## END: Generated by rpmautospec
|
||||
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
13
plan.fmf
Normal file
13
plan.fmf
Normal file
@ -0,0 +1,13 @@
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
environment:
|
||||
pybasever: '3.14'
|
||||
|
||||
discover:
|
||||
how: shell
|
||||
tests:
|
||||
- name: smoke - import works
|
||||
test: python${pybasever} -c 'import pybind11'
|
||||
require:
|
||||
- python${pybasever}-pybind11
|
||||
148
python3.14-pybind11.spec
Normal file
148
python3.14-pybind11.spec
Normal file
@ -0,0 +1,148 @@
|
||||
%global python3_pkgversion 3.14
|
||||
|
||||
# While the headers are architecture independent, the package must be
|
||||
# built separately on all architectures so that the tests are run
|
||||
# properly. See also
|
||||
# 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
|
||||
|
||||
# Exclude automatic provides without python3.14 in the name
|
||||
%global __provides_exclude cmake|pkgconfig
|
||||
|
||||
# Whether to run the tests, enabled by default
|
||||
%bcond tests 1
|
||||
|
||||
Name: python%{python3_pkgversion}-pybind11
|
||||
Version: 2.13.6
|
||||
Release: %autorelease
|
||||
Summary: Seamless operability between C++11 and Python
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pybind/pybind11
|
||||
Source0: https://github.com/pybind/pybind11/archive/v%{version}/pybind11-%{version}.tar.gz
|
||||
|
||||
# Use the `/usr` prefix for the python commands
|
||||
Patch1: pybind11-2.13.6-Use_usr_prefix.patch
|
||||
# Drop cmake and ninja from build-requires
|
||||
Patch2: pybind11-2.13.6-Drop_some_build-requires.patch
|
||||
# Adjust test for different syntax in python3.14
|
||||
# Upstream commit: https://github.com/pybind/pybind11/commit/094343c
|
||||
Patch3: Adjust-test-for-python3.14.patch
|
||||
|
||||
# Needed to build the python libraries
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
# Test depdendencies are not exposed
|
||||
%if %{with tests}
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
BuildRequires: python%{python3_pkgversion}-numpy
|
||||
BuildRequires: python%{python3_pkgversion}-scipy
|
||||
%endif
|
||||
|
||||
BuildRequires: eigen3-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%global base_description \
|
||||
pybind11 is a lightweight header-only library that exposes C++ types \
|
||||
in Python and vice versa, mainly to create Python bindings of existing \
|
||||
C++ code.
|
||||
|
||||
%description
|
||||
%{base_description}
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for pybind11
|
||||
|
||||
# This package does not have namespaced file locations, so if we build the
|
||||
# pybind11-devel subpackage in any other stack as well, the files from these
|
||||
# packages will conflict. The package name is namespaced so that customers can
|
||||
# decide which to install, but the packages will conflict with each other.
|
||||
# Whenever python3.X-pybind11-devel is introduced, it needs to explicitly
|
||||
# conflict with all the previous python3.X-pybind11-devel packages as well as
|
||||
# the non-namespaced pybind11-devel package from the main Python stack.
|
||||
Conflicts: pybind11-devel < %{version}-%{release}
|
||||
Conflicts: python3.11-pybind11-devel < %{version}-%{release}
|
||||
Conflicts: python3.12-pybind11-devel < %{version}-%{release}
|
||||
|
||||
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%{base_description}
|
||||
|
||||
This package contains the development headers for pybind11.
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{name}
|
||||
Summary: %{summary}
|
||||
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{name}
|
||||
%{base_description}
|
||||
|
||||
This package contains the Python 3 files.
|
||||
|
||||
%prep
|
||||
%autosetup -n pybind11-%{version} -p1
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
# Build with CMake first to install the devel files in OS native paths
|
||||
# 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 \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
%{?with_tests:-DPYBIND11_TEST=ON} \
|
||||
%{!?with_tests:-DPYBIND11_TEST=OFF} \
|
||||
-DUSE_PYTHON_INCLUDE_DIR=FALSE \
|
||||
-DPython_EXECUTABLE=/usr/bin/python%{python3_pkgversion} \
|
||||
-DPython_INCLUDE_DIR=/usr/include/python%{python3_pkgversion}
|
||||
%cmake_build
|
||||
|
||||
# Build again with the python build system to get the python files
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files pybind11
|
||||
|
||||
# Remove the devel files in the python package
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pybind11/include/
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pybind11/share/
|
||||
sed -i '/pybind11\/include/d' %{pyproject_files}
|
||||
sed -i '/pybind11\/share/d' %{pyproject_files}
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%cmake_build --target check
|
||||
%endif
|
||||
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_includedir}/pybind11/
|
||||
%{_datadir}/cmake/pybind11/
|
||||
%{_bindir}/pybind11-config
|
||||
%{_datadir}/pkgconfig/pybind11.pc
|
||||
|
||||
%files -n python%{python3_pkgversion}-pybind11 -f %{pyproject_files}
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Loading…
Reference in New Issue
Block a user