From c84722a9a695bad3380bfebe750d1c1ee0abd5df Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 29 Sep 2015 10:42:39 +0200 Subject: [PATCH] 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 --- ceph.spec.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 0930c6adf4914..ae710b7f2f188 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 -- 2.39.5