From: Jason Dillaman Date: Tue, 29 Sep 2015 18:30:43 +0000 (-0400) Subject: ceph.spec.in: add new tracepoint probe shared libraries X-Git-Tag: v0.94.6~44^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb7c0f501918b75dee97052faeafb1d6db61bd0a;p=ceph.git ceph.spec.in: add new tracepoint probe shared libraries Signed-off-by: Jason Dillaman (cherry picked from commit f4feee2f9dcd7b94476701b66d1f0bdf6fb6e0c2) Conflicts: ceph.spec.in: trivial resolution --- diff --git a/ceph.spec.in b/ceph.spec.in index 3b21533ca6df..08b4ddb985cf 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -8,6 +8,11 @@ %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d} +# LTTng-UST enabled on Fedora, RHEL 6, and SLES 12 +%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version} == 1315 +%global _with_lttng 1 +%endif + Name: ceph Version: @VERSION@ Release: @RPM_RELEASE@%{?dist} @@ -111,14 +116,16 @@ BuildRequires: gperftools-devel Requires: python-flask %endif # lttng and babeltrace for rbd-replay-prep -%if 0%{?fedora} || 0%{?rhel} == 6 +%if 0%{?_with_lttng} +%if 0%{?fedora} || 0%{?rhel} BuildRequires: lttng-ust-devel BuildRequires: libbabeltrace-devel %endif -%if 0%{?suse_version} == 1315 +%if 0%{?suse_version} BuildRequires: lttng-ust-devel BuildRequires: babeltrace-devel %endif +%endif %description Ceph is a massively scalable, open-source, distributed @@ -623,6 +630,10 @@ fi %{_libdir}/rados-classes/libcls_version.so* %dir %{_libdir}/ceph/erasure-code %{_libdir}/ceph/erasure-code/libec_*.so* +%if 0%{?_with_lttng} +%{_libdir}/libos_tp.so* +%{_libdir}/libosd_tp.so* +%endif %{_udevrulesdir}/60-ceph-partuuid-workaround.rules %{_udevrulesdir}/95-ceph-osd.rules %config %{_sysconfdir}/bash_completion.d/ceph @@ -672,7 +683,7 @@ fi %{_bindir}/rbd %{_bindir}/rbd-replay %{_bindir}/rbd-replay-many -%if 0%{?fedora} || 0%{?rhel} == 6 +%if 0%{?_with_lttng} %{_bindir}/rbd-replay-prep %endif %{_bindir}/ceph-post-file @@ -778,6 +789,9 @@ fi %files -n librados2 %defattr(-,root,root,-) %{_libdir}/librados.so.* +%if 0%{?_with_lttng} +%{_libdir}/librados_tp.so.* +%endif %post -n librados2 /sbin/ldconfig @@ -798,6 +812,9 @@ fi %{_includedir}/rados/rados_types.hpp %{_includedir}/rados/memory.h %{_libdir}/librados.so +%if 0%{?_with_lttng} +%{_libdir}/librados_tp.so +%endif ################################################################################# %files -n python-rados @@ -827,6 +844,9 @@ fi %files -n librbd1 %defattr(-,root,root,-) %{_libdir}/librbd.so.* +%if 0%{?_with_lttng} +%{_libdir}/librbd_tp.so.* +%endif %post -n librbd1 /sbin/ldconfig @@ -844,6 +864,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %{_includedir}/rbd/librbd.hpp %{_includedir}/rbd/features.h %{_libdir}/librbd.so +%if 0%{?_with_lttng} +%{_libdir}/librbd_tp.so +%endif ################################################################################# %files -n python-rbd