Skip to content

Commit

Permalink
Merge pull request ceph#7857 from tchaikov/wip-14844
Browse files Browse the repository at this point in the history
ceph.spec.in: enable lttng and babeltrace explicitly

thanks to ktdreyer, we have lttng and babel in EPEL-7 now.

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
tchaikov committed Mar 30, 2016
2 parents 5b49e9f + f1a4490 commit dbd9bb1
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
%bcond_with selinux
%endif

# LTTng-UST enabled on Fedora, RHEL 6+, and SLES 12
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} == 1315
%bcond_without lttng
%endif

%if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600))
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Expand Down Expand Up @@ -62,11 +66,6 @@ restorecon -R /var/log/radosgw > /dev/null 2>&1;
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
%endif

# 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

# unify libexec for all targets
%global _libexecdir %{_exec_prefix}/lib

Expand Down Expand Up @@ -186,7 +185,7 @@ BuildRequires: boost-random
BuildRequires: python-argparse
%endif
# lttng and babeltrace for rbd-replay-prep
%if 0%{?_with_lttng}
%if %{with lttng}
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: lttng-ust-devel
BuildRequires: libbabeltrace-devel
Expand Down Expand Up @@ -705,6 +704,10 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
%endif
--with-librocksdb-static=check \
--with-radosgw \
%if %{without lttng}
--without-lttng \
--without-babeltrace \
%endif
$CEPH_EXTRA_CONFIGURE_ARGS \
%{?_with_ocf} \
%{?_with_tcmalloc} \
Expand Down Expand Up @@ -861,7 +864,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ceph/erasure-code/libec_*.so*
%dir %{_libdir}/ceph/compressor
%{_libdir}/ceph/compressor/libceph_*.so*
%if 0%{?_with_lttng}
%if %{with lttng}
%{_libdir}/libos_tp.so*
%{_libdir}/libosd_tp.so*
%endif
Expand Down Expand Up @@ -980,7 +983,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/rbd-replay
%{_bindir}/rbd-replay-many
%{_bindir}/rbdmap
%if 0%{?_with_lttng}
%if %{with lttng}
%{_bindir}/rbd-replay-prep
%endif
%{_bindir}/ceph-post-file
Expand Down Expand Up @@ -1230,7 +1233,7 @@ fi
%files -n librados2
%defattr(-,root,root,-)
%{_libdir}/librados.so.*
%if 0%{?_with_lttng}
%if %{with lttng}
%{_libdir}/librados_tp.so.*
%endif

Expand All @@ -1254,7 +1257,7 @@ fi
%{_includedir}/rados/rados_types.hpp
%{_includedir}/rados/memory.h
%{_libdir}/librados.so
%if 0%{?_with_lttng}
%if %{with lttng}
%{_libdir}/librados_tp.so
%endif
%{_bindir}/librados-config
Expand Down Expand Up @@ -1289,7 +1292,7 @@ fi
%files -n librbd1
%defattr(-,root,root,-)
%{_libdir}/librbd.so.*
%if 0%{?_with_lttng}
%if %{with lttng}
%{_libdir}/librbd_tp.so.*
%endif

Expand All @@ -1309,7 +1312,7 @@ 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}
%if %{with lttng}
%{_libdir}/librbd_tp.so
%endif

Expand Down

0 comments on commit dbd9bb1

Please sign in to comment.