Only build with tcmalloc on selected archs (i386/ppc on el5,

and i686 only on el6) based on google-perftools availability
  in the Koji build repos.
This commit is contained in:
BJ Dierkes 2011-02-24 17:02:28 -06:00
parent db8745f47c
commit edee2cffe6
1 changed files with 25 additions and 7 deletions

View File

@ -2,16 +2,28 @@
# libmemcached is currently too old in RHEL # libmemcached is currently too old in RHEL
%bcond_with libmemcached %bcond_with libmemcached
# google-perftools is only available for i386/ppc on el5
# and i686 on el6.
# google-perftools not available in ppc64/sparc64 # google-perftools not available in ppc64/sparc64
%ifnarch ppc64 sparc64 %if 0%{?el5}
%bcond_without tcmalloc %ifarch i386 ppc
%bcond_without google_perftools
%else %else
%bcond_with tcmalloc %bcond_with google_perftools
%endif
%endif
%if 0%{?el6}
%ifarch i386 i686
%bcond_without google_perftools
%else
%bcond_with google_perftools
%endif
%endif %endif
Name: gearmand Name: gearmand
Version: 0.14 Version: 0.14
Release: 2%{?dist} Release: 3%{?dist}
Summary: A distributed job system Summary: A distributed job system
Group: System Environment/Daemons Group: System Environment/Daemons
@ -34,8 +46,9 @@ BuildRequires: libuuid-devel
BuildRequires: libmemcached-devel BuildRequires: libmemcached-devel
%endif %endif
%if %{with tcmalloc} %if %{with google_perftools}
BuildRequires: google-perftools-devel BuildRequires: google-perftools-devel
Requires: google-perftools
%endif %endif
Requires(pre): shadow-utils Requires(pre): shadow-utils
@ -76,7 +89,7 @@ Development libraries for %{name}
%build %build
# optional configure options # optional configure options
%if %{with tcmalloc} %if %{with google_perftools}
%global configure_tcmalloc --enable-tcmalloc %global configure_tcmalloc --enable-tcmalloc
%else %else
%global configure_tcmalloc --disable-tcmalloc %global configure_tcmalloc --disable-tcmalloc
@ -162,6 +175,11 @@ fi
%{_libdir}/libgearman*.so.* %{_libdir}/libgearman*.so.*
%changelog %changelog
* Thu Feb 24 2011 BJ Dierkes <wdierkes@rackspace.com> - 0.14-3
- Only build with tcmalloc on selected archs (i386/ppc on el5,
and i686 only on el6) based on google-perftools availability
in the Koji build repos.
* Fri Feb 04 2011 BJ Dierkes <wdierkes@rackspace.com> - 0.14-2 * Fri Feb 04 2011 BJ Dierkes <wdierkes@rackspace.com> - 0.14-2
- Adding support for EPEL 5/6 - Adding support for EPEL 5/6
- Added optional support for libmemcached - Added optional support for libmemcached