]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: fix boost-random build dependency for SLE/openSUSE
authorNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2015 08:42:39 +0000 (10:42 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2015 10:33:26 +0000 (12:33 +0200)
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 <ncutler@suse.com>
ceph.spec.in

index 0930c6adf4914f06f8f19e25c12c5cda924b388b..ae710b7f2f188a77cb3afb659679ae7691d9c82e 100644 (file)
@@ -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