]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: fix python3 dependencies in centos7 32775/head
authorliushi <liu.shi@navercorp.com>
Tue, 11 Feb 2020 06:26:31 +0000 (14:26 +0800)
committerliushi <liu.shi@navercorp.com>
Tue, 11 Feb 2020 07:10:55 +0000 (15:10 +0800)
Fixes: https://tracker.ceph.com/issues/43737
Signed-off-by: liushi <liu.shi@navercorp.com>
ceph.spec.in

index 99f19066884028e0eefd241ff272dea2bbc02afd..33282647227603b317566603bfc63e21235968c2 100644 (file)
@@ -201,20 +201,31 @@ BuildRequires:  librdkafka-devel
 %if 0%{with make_check}
 BuildRequires:  jq
 BuildRequires: libuuid-devel
+%if 0%{?rhel} == 7
+BuildRequires: python%{python3_version_nodots}-bcrypt
+BuildRequires: python%{python3_version_nodots}-nose
+%else
 BuildRequires: python%{python3_pkgversion}-bcrypt
 BuildRequires: python%{python3_pkgversion}-nose
 BuildRequires: python%{python3_pkgversion}-pecan
+%endif
 BuildRequires: python%{python3_pkgversion}-requests
+%if 0%{?rhel} == 7
+BuildRequires: python%{python3_version_nodots}-six
+BuildRequires: python%{python3_version_nodots}-virtualenv
+%else
 BuildRequires: python%{python3_pkgversion}-six
 BuildRequires: python%{python3_pkgversion}-virtualenv
+%endif
 %if 0%{?rhel} < 8
+BuildRequires: python%{python3_version_nodots}-coverage
+%else
 BuildRequires: python%{python3_pkgversion}-coverage
-BuildRequires: python%{python3_pkgversion}-tox
 %endif
 %if 0%{?rhel} == 7
-BuildRequires:  pyOpenSSL%{python3_pkgversion}
+BuildRequires: python%{python3_version_nodots}-pyOpenSSL
 %else
-BuildRequires:  python%{python3_pkgversion}-pyOpenSSL
+BuildRequires: python%{python3_pkgversion}-pyOpenSSL
 %endif
 BuildRequires: socat
 %endif
@@ -291,12 +302,21 @@ BuildRequires:    xmlsec1-nss
 %endif
 BuildRequires: xmlsec1-openssl
 BuildRequires: xmlsec1-openssl-devel
+%if 0%{?rhel} == 7
+BuildRequires: python%{python3_version_nodots}-jwt
+BuildRequires: python%{python3_version_nodots}-scipy
+%else
 BuildRequires: python%{python3_pkgversion}-cherrypy
 BuildRequires: python%{python3_pkgversion}-jwt
 BuildRequires: python%{python3_pkgversion}-routes
 BuildRequires: python%{python3_pkgversion}-scipy
 BuildRequires: python%{python3_pkgversion}-werkzeug
-BuildRequires:  python%{python3_pkgversion}-pyOpenSSL
+%endif
+%if 0%{?rhel} == 7
+BuildRequires: python%{python3_version_nodots}-pyOpenSSL
+%else
+BuildRequires: python%{python3_pkgversion}-pyOpenSSL
+%endif
 %endif
 %if 0%{?suse_version}
 BuildRequires: libxmlsec1-1