[redis] google-perftools exists only on selected architectures

Dan Horák sharkcz at fedoraproject.org
Fri May 6 10:09:13 UTC 2011


commit 1a0610ff9e3b77ff6dedb18930bddc5e58208797
Author: Dan Horák <dan at danny.cz>
Date:   Fri May 6 12:08:43 2011 +0200

    google-perftools exists only on selected architectures

 redis.spec |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/redis.spec b/redis.spec
index a201896..5fd9e05 100644
--- a/redis.spec
+++ b/redis.spec
@@ -1,9 +1,14 @@
 # Check for status of man pages
 # http://code.google.com/p/redis/issues/detail?id=202
 
+%ifarch %{ix86} x86_64 ppc
+# available only on selected architectures
+%global with_perftools 1
+%endif
+
 Name:             redis
 Version:          2.2.5
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          A persistent key-value database
 
 Group:            Applications/Databases
@@ -17,8 +22,10 @@ Patch0:           %{name}-2.2.2-redis.conf.patch
 
 %if !0%{?el5}
 BuildRequires:    tcl >= 8.5
+%if 0%{?with_perftools}
 BuildRequires:    google-perftools-devel
 %endif
+%endif
 
 Requires:         logrotate
 Requires(post):   chkconfig
@@ -44,8 +51,10 @@ make %{?_smp_mflags} \
   DEBUG="" \
   CFLAGS='%{optflags} -std=c99' \
 %if !0%{?el5}
+%if 0%{?with_perftools}
   USE_TCMALLOC=yes \
 %endif
+%endif
   all
 
 %check
@@ -99,6 +108,9 @@ fi
 %{_initrddir}/%{name}
 
 %changelog
+* Fri May 06 2011 Dan Horák <dan[at]danny.cz> - 2.2.5-2
+- google-perftools exists only on selected architectures
+
 * Sat Apr 23 2011 Silas Sewell <silas at sewell.ch> - 2.2.5-1
 - Update to redis 2.2.5
 


More information about the scm-commits mailing list