]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: move distro-conditional make check deps
authorNathan Cutler <ncutler@suse.com>
Wed, 24 Jan 2018 05:44:37 +0000 (06:44 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 26 Jan 2018 06:42:18 +0000 (07:42 +0100)
These were in the wrong section.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index aa729377f1943adc74fecd4e033cdf24df856fea..bdc9e4cca0e3ffcd0c0d3a545df9c089cc6c8714 100644 (file)
@@ -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}