Browse Source

nginx-1.2.4-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6903 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 11 years ago
parent
commit
72dc9e33cc
1 changed files with 16 additions and 1 deletions
  1. 16 1
      n/nginx/nginx-vl.spec

+ 16 - 1
n/nginx/nginx-vl.spec

@@ -1,6 +1,9 @@
 # build mod_wsgi
 %bcond_with wsgi
 
+# build http_geoip_module
+%bcond_without geoip
+
 %if "%{_dist_release}" > "vl6"
 %define nginx_user      www-data
 %else
@@ -19,7 +22,7 @@ Summary:        Robust, small and high performance http and reverse proxy server
 Summary(ja):    堅牢・軽量・高性能な HTTP およびリバースプロキシサーバ
 Name:           nginx
 Version:        1.2.4
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 
 Group:          System Environment/Daemons   
 # BSD License (two clause)
@@ -71,6 +74,9 @@ BuildRequires:      perl(ExtUtils::Embed)
 BuildRequires:	    libxml2-devel
 BuildRequires:	    libxslt-devel
 BuildRequires:	    curl-devel
+%if %{with geoip}
+BuildRequires:	    GeoIP-devel
+%endif
 
 %if "%{?_dist_release}" == "vl4"
 Requires:	    perl >= 5.8.6
@@ -167,6 +173,9 @@ export DESTDIR=%{buildroot}
     --with-http_secure_link_module \
     --with-http_stub_status_module \
     --with-http_perl_module \
+%if %{with geoip}
+    --with-http_geoip_module \
+%endif
     --with-mail \
     --with-mail_ssl_module \
     --add-module=ngx-fancyindex-%{ngx_fancyindex_version} \
@@ -215,6 +224,9 @@ mv objs/nginx objs/nginx.passenger
     --with-http_secure_link_module \
     --with-http_stub_status_module \
     --with-http_perl_module \
+%if %{with geoip}
+    --with-http_geoip_module \
+%endif
     --with-mail \
     --with-mail_ssl_module \
     --add-module=ngx-fancyindex-%{ngx_fancyindex_version} \
@@ -369,6 +381,9 @@ fi
 
 
 %changelog
+* Tue Oct 09 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.4-2
+- added http_geoip_module.
+
 * Tue Sep 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-1
 - update to 1.2.4