Use the newly bumped epoch in subpackage requires

Resolves: RHEL-50628

Signed-off-by: Brian Stinson <bstinson@redhat.com>
This commit is contained in:
Brian Stinson 2024-07-26 09:45:47 -05:00
parent a5d24b273d
commit a1b1457081

View File

@ -59,7 +59,7 @@
Name: openmpi%{?_cc_name_suffix}
Epoch: 2
Version: 5.0.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Open Message Passing Interface
License: BSD and MIT and Romio
URL: http://www.open-mpi.org/
@ -164,7 +164,7 @@ researchers. For more information, see http://www.open-mpi.org/ .
%package devel
Summary: Development files for openmpi
Requires: %{name} = %{version}-%{release}, gcc-gfortran
Requires: %{name} = %{epoch}:%{version}-%{release}, gcc-gfortran
Provides: mpi-devel
%if !0%{?el7}
Requires: rpm-mpi-hooks
@ -187,7 +187,7 @@ HTML documentation for openmpi.
%if %{with java}
%package java
Summary: Java library
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: java-headless
%description java
@ -195,7 +195,7 @@ Java library.
%package java-devel
Summary: Java development files for openmpi
Requires: %{name}-java = %{version}-%{release}
Requires: %{name}-java = %{epoch}:%{version}-%{release}
Requires: java-devel
%description java-devel
@ -210,7 +210,7 @@ Contains development wrapper for compiling Java with openmpi.
%package -n python2-openmpi
Summary: OpenMPI support for Python 2
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: python(abi) = %{python2_version}
%description -n python2-openmpi
@ -219,7 +219,7 @@ OpenMPI support for Python 2.
%package -n python%{python3_pkgversion}-openmpi
Summary: OpenMPI support for Python 3
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: python(abi) = %{python3_version}
%description -n python%{python3_pkgversion}-openmpi
@ -445,6 +445,9 @@ make check || ( cat test/*/test-suite.log && exit $fail )
%changelog
* Fri Jul 26 2024 Brian Stinson <bstinson@redhat.com> - 5.0.2-5
- After bumping the epoch, we need to change the subpackage requires to use it
* Thu Jul 25 2024 Brian Stinson <bstinson@redhat.com> - 2:5.0.2-4
- Bump the epoch to support upgrade path from previous versions of RHEL