]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: fix babeltrace handling on SUSE
authorNathan Cutler <ncutler@suse.com>
Fri, 10 Jul 2015 08:12:22 +0000 (10:12 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 10:24:18 +0000 (11:24 +0100)
Since we BuildRequire: babeltrace-devel, autoconf will see that babeltrace
is available during the build, and make will build/install the rbd-replay-prep
utility.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 80f3c95b60f49f782c3d4c03974fadf66b6d03f5)

ceph.spec.in

index 6b57c26154a3fddd05ae5150e8d54317f4ae9f7f..bb39d934c80c44be5cfb8b81aba3ee749655baef 100644 (file)
@@ -370,10 +370,14 @@ Group:            System Environment/Libraries
 License:       LGPL-2.0
 Requires:      ceph-common
 Requires:      xmlstarlet
-%if (0%{?fedora} || 0%{?rhel} == 6)
+%if 0%{?fedora} || 0%{?rhel} == 6
 BuildRequires: lttng-ust-devel
 BuildRequires: libbabeltrace-devel
 %endif
+%if 0%(?suse_version)
+BuildRequires: lttng-ust-devel
+BuildRequires: babeltrace-devel
+%endif
 %description -n ceph-test
 This package contains Ceph benchmarks and test tools.
 
@@ -1086,7 +1090,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_mandir}/man8/rbd-replay-prep.8*
 %{_bindir}/rbd-replay
 %{_bindir}/rbd-replay-many
-%if (0%{?fedora} || 0%{?rhel} == 6)
+%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version}
 %{_bindir}/rbd-replay-prep
 %endif