google-perftools exists only on selected architectures
This commit is contained in:
parent
3ec8b86533
commit
1a0610ff9e
14
redis.spec
14
redis.spec
@ -1,9 +1,14 @@
|
|||||||
# Check for status of man pages
|
# Check for status of man pages
|
||||||
# http://code.google.com/p/redis/issues/detail?id=202
|
# 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
|
Name: redis
|
||||||
Version: 2.2.5
|
Version: 2.2.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A persistent key-value database
|
Summary: A persistent key-value database
|
||||||
|
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
@ -17,8 +22,10 @@ Patch0: %{name}-2.2.2-redis.conf.patch
|
|||||||
|
|
||||||
%if !0%{?el5}
|
%if !0%{?el5}
|
||||||
BuildRequires: tcl >= 8.5
|
BuildRequires: tcl >= 8.5
|
||||||
|
%if 0%{?with_perftools}
|
||||||
BuildRequires: google-perftools-devel
|
BuildRequires: google-perftools-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: logrotate
|
Requires: logrotate
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
@ -44,7 +51,9 @@ make %{?_smp_mflags} \
|
|||||||
DEBUG="" \
|
DEBUG="" \
|
||||||
CFLAGS='%{optflags} -std=c99' \
|
CFLAGS='%{optflags} -std=c99' \
|
||||||
%if !0%{?el5}
|
%if !0%{?el5}
|
||||||
|
%if 0%{?with_perftools}
|
||||||
USE_TCMALLOC=yes \
|
USE_TCMALLOC=yes \
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
all
|
all
|
||||||
|
|
||||||
@ -99,6 +108,9 @@ fi
|
|||||||
%{_initrddir}/%{name}
|
%{_initrddir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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@sewell.ch> - 2.2.5-1
|
* Sat Apr 23 2011 Silas Sewell <silas@sewell.ch> - 2.2.5-1
|
||||||
- Update to redis 2.2.5
|
- Update to redis 2.2.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user