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