From: Nathan Cutler Date: Wed, 24 Jan 2018 05:44:37 +0000 (+0100) Subject: build/ops: rpm: move distro-conditional make check deps X-Git-Tag: v13.0.2~431^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9e62cbf81626626e1a1671f656f9db4fc221180;p=ceph.git build/ops: rpm: move distro-conditional make check deps These were in the wrong section. Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index aa729377f194..bdc9e4cca0e3 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -112,33 +112,6 @@ BuildRequires: sharutils BuildRequires: checkpolicy BuildRequires: selinux-policy-devel %endif -%if 0%{with make_check} -%if 0%{?fedora} || 0%{?rhel} -%if 0%{with python2} -BuildRequires: python-cherrypy -BuildRequires: python-pecan -BuildRequires: python-werkzeug -%else -BuildRequires: python%{python3_pkgversion}-cherrypy -BuildRequires: python%{python3_pkgversion}-pecan -BuildRequires: python%{python3_pkgversion}-werkzeug -%endif -%endif -%if 0%{?suse_version} -%if 0%{with python2} -BuildRequires: python-CherryPy -BuildRequires: python-Werkzeug -BuildRequires: python-pecan -BuildRequires: python-numpy-devel -%else -BuildRequires: python%{python3_pkgversion}-CherryPy -BuildRequires: python%{python3_pkgversion}-Werkzeug -BuildRequires: python%{python3_pkgversion}-pecan -BuildRequires: python%{python3_pkgversion}-numpy-devel -%endif -%endif -BuildRequires: socat -%endif BuildRequires: bc BuildRequires: gperf BuildRequires: cmake @@ -186,6 +159,9 @@ BuildRequires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-virtualenv %endif BuildRequires: snappy-devel +%if 0%{with make_check} +BuildRequires: socat +%endif BuildRequires: udev BuildRequires: util-linux BuildRequires: valgrind-devel @@ -255,6 +231,33 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython %endif +# distro-conditional make check dependencies +%if 0%{with make_check} +%if 0%{?fedora} || 0%{?rhel} +%if 0%{with python2} +BuildRequires: python-cherrypy +BuildRequires: python-pecan +BuildRequires: python-werkzeug +%else +BuildRequires: python%{python3_pkgversion}-cherrypy +BuildRequires: python%{python3_pkgversion}-pecan +BuildRequires: python%{python3_pkgversion}-werkzeug +%endif +%endif +%if 0%{?suse_version} +%if 0%{with python2} +BuildRequires: python-CherryPy +BuildRequires: python-Werkzeug +BuildRequires: python-pecan +BuildRequires: python-numpy-devel +%else +BuildRequires: python%{python3_pkgversion}-CherryPy +BuildRequires: python%{python3_pkgversion}-Werkzeug +BuildRequires: python%{python3_pkgversion}-pecan +BuildRequires: python%{python3_pkgversion}-numpy-devel +%endif +%endif +%endif # lttng and babeltrace for rbd-replay-prep %if %{with lttng} %if 0%{?fedora} || 0%{?rhel}