summaryrefslogtreecommitdiff
path: root/ceph.spec.in
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-04-26 18:12:24 -0700
committerSage Weil <sage@inktank.com>2013-04-26 18:12:24 -0700
commit3cc106453f79a0a0c332b164e282a35234a85659 (patch)
tree479bcfc2a789da52f84476c1968c5056f8f61457 /ceph.spec.in
parente4c13afab3d0b62dbbe3f03c625e72b18a99ea8f (diff)
parent50e58b9f49382d690f5a22af80f6981f1c12d4c3 (diff)
downloadceph-3cc106453f79a0a0c332b164e282a35234a85659.tar.gz
Merge remote-tracking branch 'gh/next'
Diffstat (limited to 'ceph.spec.in')
-rw-r--r--ceph.spec.in18
1 files changed, 4 insertions, 14 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 023258cbe61..934ecf19b8d 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -1,9 +1,4 @@
%bcond_with ocf
-# it seems there is no usable tcmalloc rpm for x86_64; parts of
-# google-perftools don't compile on x86_64, and apparently the
-# decision was to not build the package at all, even if tcmalloc
-# itself would have worked just fine.
-%bcond_with tcmalloc
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
@@ -53,11 +48,14 @@ BuildRequires: leveldb-devel > 1.2
%if ! 0%{?rhel}
BuildRequires: sharutils
%endif
+
%if 0%{defined suse_version}
%if 0%{?suse_version} > 1210
Requires: gptfdisk
+BuildRequires: gperftools-devel
%else
Requires: scsirastools
+BuildRequires: google-perftools-devel
%endif
Recommends: logrotate
BuildRequires: %insserv_prereq
@@ -74,12 +72,7 @@ Requires: gdisk
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
-%endif
-%if 0%{with tcmalloc}
-# use isa so this will not be satisfied by
-# google-perftools-devel.i686 on a x86_64 box
-# http://rpm.org/wiki/PackagerDocs/ArchDependencies
-BuildRequires: google-perftools-devel%{?_isa}
+BuildRequires: gperftools-devel
%endif
%description
@@ -256,8 +249,6 @@ MY_CONF_OPT="$MY_CONF_OPT --with-radosgw"
export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
-# be explicit about --with/without-tcmalloc because the
-# autoconf default differs from what's needed for rpm
%{configure} CPPFLAGS="$java_inc" \
--prefix=/usr \
--sbindir=/sbin \
@@ -272,7 +263,6 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
--enable-cephfs-java \
$MY_CONF_OPT \
%{?_with_ocf} \
- %{?with_tcmalloc:--with-tcmalloc} %{!?with_tcmalloc:--without-tcmalloc} \
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
# fix bug in specific version of libedit-devel