Introduce epoch to pybind11-devel to sort newer than python3.11-pybind11-devel

Resolves: RHEL-38108
This commit is contained in:
Miro Hrončok 2024-07-24 17:58:15 +02:00
parent 4d8ebe02ee
commit b9e7b4f929

View File

@ -17,7 +17,7 @@
Name: pybind11
Version: 2.6.2
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Seamless operability between C++11 and Python
License: BSD
URL: https://github.com/pybind/pybind11
@ -65,8 +65,11 @@ 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 = %{version}-%{release}
Provides: %{name}-static = 1:%{version}-%{release}
Obsoletes: python39-%{name}-devel < %{version}-%{release}
# For dir ownership
Requires: cmake
@ -80,7 +83,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} = %{version}-%{release}
Requires: %{name}-devel%{?_isa} = 1:%{version}-%{release}
%description -n python2-%{name}
%{base_description}
@ -93,7 +96,7 @@ This package contains the Python 2 files.
Summary: %{summary}
%{?python_provide:%python_provide python3-pybind11}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Requires: %{name}-devel%{?_isa} = 1:%{version}-%{release}
%if !%{python2_enabled}
# Take care of upgrade path
@ -181,6 +184,10 @@ 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