]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: fix pyOpenSSL requirement for RHEL 8
authorKen Dreyer <kdreyer@redhat.com>
Mon, 18 Feb 2019 22:38:17 +0000 (15:38 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 21 Feb 2019 22:03:51 +0000 (15:03 -0700)
On RHEL 7, this package is named "pyOpenSSL", but on RHEL 8, Fedora, and
SUSE, it is named "python3-pyOpenSSL".

Prior to this change, the RHEL conditional was applying to both RHEL 7
and 8, so we would fail to resolve the "pyOpenSSL" package dependency on
RHEL 8.

Update the RPM conditionals to use "pyOpenSSL" on RHEL 7 and
"python3-pyOpenSSL" on all other distributions.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
ceph.spec.in

index 7303651f349b42d4ba1e671e9b932084883709a6..230d80942f9e98ed96d0d60fcf275466f03954b3 100644 (file)
@@ -461,13 +461,16 @@ Requires:       python%{_python_buildid}-cherrypy
 Requires:       python%{_python_buildid}-jwt
 Requires:       python%{_python_buildid}-routes
 Requires:       python%{_python_buildid}-werkzeug
-Requires:       pyOpenSSL%{_python_buildid}
 %endif
 %if 0%{?suse_version}
 Requires:       python%{_python_buildid}-CherryPy
 Requires:       python%{_python_buildid}-PyJWT
 Requires:       python%{_python_buildid}-Routes
 Requires:       python%{_python_buildid}-Werkzeug
+%endif
+%if 0%{?rhel} == 7
+Requires:       pyOpenSSL
+%else
 Requires:       python%{_python_buildid}-pyOpenSSL
 %endif
 %description mgr-dashboard