[nginx/f18] gperftools exist only on selected arches
Dan Horák
sharkcz at fedoraproject.org
Sun Apr 28 09:03:09 UTC 2013
commit 87d0a0a4cb974ee6ea21bd2aa26f621b9d90286c
Author: Dan Horák <dan at danny.cz>
Date: Sun Apr 28 11:00:10 2013 +0200
gperftools exist only on selected arches
nginx.spec | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/nginx.spec b/nginx.spec
index 0627f27..ee90cba 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -8,10 +8,16 @@
%global nginx_logdir %{_localstatedir}/log/nginx
%global nginx_webroot %{nginx_datadir}/html
+# gperftools exist only on selected arches
+%ifarch %{ix86} x86_64 ppc ppc64 %{arm}
+%global with_gperftools 1
+%endif
+
+
Name: nginx
Epoch: 1
Version: 1.2.8
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A high performance web server and reverse proxy server
Group: System Environment/Daemons
@@ -39,7 +45,9 @@ Patch0: nginx-auto-cc-gcc.patch
BuildRequires: GeoIP-devel
BuildRequires: gd-devel
+%if 0%{?with_gperftools}
BuildRequires: gperftools-devel
+%endif
BuildRequires: libxslt-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
@@ -111,7 +119,9 @@ export DESTDIR=%{buildroot}
--with-mail \
--with-mail_ssl_module \
--with-pcre \
+%if 0%{?with_gperftools}
--with-google_perftools_module \
+%endif
--with-debug \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
--with-ld-opt="$RPM_LD_FLAGS -Wl,-E" # so the perl module finds its symbols
@@ -212,6 +222,9 @@ fi
%changelog
+* Sun Apr 28 2013 Dan Horák <dan[at]danny.cz> - 1:1.2.8-3
+- gperftools exist only on selected arches
+
* Fri Apr 26 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1:1.2.8-2
- enable google perftools module and add gperftools-devel to BR
- enable debugging (#956845)
More information about the scm-commits
mailing list