diff options
author | Owen Synge <osynge@suse.com> | 2015-05-29 13:34:39 +0200 |
---|---|---|
committer | Owen Synge <osynge@suse.com> | 2015-06-03 15:57:16 +0200 |
commit | d8abde3338b0c7df373b762e35099ad5123866bf (patch) | |
tree | f68d6b07d2b4bd2545a538de91a695469b294e8f /ceph.spec.in | |
parent | Add rpm conditionals : tests (diff) | |
download | ceph-d8abde3338b0c7df373b762e35099ad5123866bf.tar.xz ceph-d8abde3338b0c7df373b762e35099ad5123866bf.zip |
Add rpm conditionals : tcmalloc
Extracted conditionals from SUSE rpm spec file to forward port.
Original work done by Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Owen Synge <osynge@suse.com>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r-- | ceph.spec.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index 4f91080f384..5738f2a6331 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1,6 +1,7 @@ %bcond_with ocf %bcond_without cephfs_java %bcond_with tests +%bcond_without tcmalloc %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())")} @@ -111,7 +112,9 @@ BuildRequires: sharutils BuildRequires: git %if 0%{?suse_version} > 1210 Requires: gptfdisk +%if 0%{with tcmalloc} BuildRequires: gperftools-devel +%endif %else Requires: scsirastools BuildRequires: google-perftools-devel @@ -133,6 +136,7 @@ Requires(preun): chkconfig Requires(preun): initscripts BuildRequires: gperftools-devel %endif +%endif %description Ceph is a massively scalable, open-source, distributed @@ -504,6 +508,7 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` %endif $MY_CONF_OPT \ %{?_with_ocf} \ + %{?_with_tcmalloc} \ CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" # fix bug in specific version of libedit-devel |