From: Nathan Cutler Date: Tue, 29 Sep 2015 08:42:39 +0000 (+0200) Subject: ceph.spec.in: fix boost-random build dependency for SLE/openSUSE X-Git-Tag: v9.1.0~26^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c84722a9a695bad3380bfebe750d1c1ee0abd5df;p=ceph.git ceph.spec.in: fix boost-random build dependency for SLE/openSUSE In Fedora, RHEL and CentOS there is a package called boost-random. In SLE/openSUSE, there is no such package. Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index 0930c6adf491..ae710b7f2f18 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -92,7 +92,6 @@ BuildRequires: /usr/share/selinux/devel/policyhelp %endif BuildRequires: gcc-c++ BuildRequires: boost-devel -BuildRequires: boost-random BuildRequires: cmake BuildRequires: cryptsetup BuildRequires: gdbm @@ -166,6 +165,10 @@ Requires(preun): initscripts BuildRequires: gperftools-devel Requires: python-flask %endif +# boost +%if 0%{?fedora} || 0%{?rhel} +BuildRequires: boost-random +%endif # lttng and babeltrace for rbd-replay-prep %if 0%{?fedora} || 0%{?rhel} == 6 BuildRequires: lttng-ust-devel