Skip to content

Commit

Permalink
build/ops: rpm: move distro-conditional make check deps
Browse files Browse the repository at this point in the history
These were in the wrong section.

Signed-off-by: Nathan Cutler <[email protected]>
  • Loading branch information
smithfarm committed Jan 26, 2018
1 parent 5ec2364 commit e9e62cb
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit e9e62cb

Please sign in to comment.