|
@@ -1,7 +1,11 @@
|
|
# build mod_wsgi
|
|
# build mod_wsgi
|
|
%bcond_with wsgi
|
|
%bcond_with wsgi
|
|
|
|
|
|
|
|
+%if "%{_dist_release}" > "vl6"
|
|
|
|
+%define nginx_user www-data
|
|
|
|
+%else
|
|
%define nginx_user nginx
|
|
%define nginx_user nginx
|
|
|
|
+%endif
|
|
%define nginx_group %{nginx_user}
|
|
%define nginx_group %{nginx_user}
|
|
%define nginx_home %{_localstatedir}/lib/nginx
|
|
%define nginx_home %{_localstatedir}/lib/nginx
|
|
%define nginx_home_tmp %{nginx_home}/tmp
|
|
%define nginx_home_tmp %{nginx_home}/tmp
|
|
@@ -14,7 +18,7 @@
|
|
Summary: Robust, small and high performance http and reverse proxy server
|
|
Summary: Robust, small and high performance http and reverse proxy server
|
|
Summary(ja): 堅牢・軽量・高性能な HTTP およびリバースプロキシサーバ
|
|
Summary(ja): 堅牢・軽量・高性能な HTTP およびリバースプロキシサーバ
|
|
Name: nginx
|
|
Name: nginx
|
|
-Version: 1.2.0
|
|
|
|
|
|
+Version: 1.2.2
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
@@ -79,6 +83,9 @@ Requires(post): chkconfig
|
|
# for /sbin/service
|
|
# for /sbin/service
|
|
Requires(preun): chkconfig, initscripts
|
|
Requires(preun): chkconfig, initscripts
|
|
Requires(postun): initscripts
|
|
Requires(postun): initscripts
|
|
|
|
+%if "%{_dist_release}" > "vl6"
|
|
|
|
+Requires(pre): www-common
|
|
|
|
+%endif
|
|
|
|
|
|
Provides: webserver
|
|
Provides: webserver
|
|
|
|
|
|
@@ -243,8 +250,8 @@ chmod 0755 %{buildroot}%{_sbindir}/nginx.*
|
|
%{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/sites.d
|
|
%{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/sites.d
|
|
%{__install} -p -m 0644 %{SOURCE3} %{buildroot}%{nginx_confdir}/sites.d/virtual.conf.template
|
|
%{__install} -p -m 0644 %{SOURCE3} %{buildroot}%{nginx_confdir}/sites.d/virtual.conf.template
|
|
%{__install} -p -m 0644 %{SOURCE4} %{buildroot}%{nginx_confdir}/conf.d/ssl.conf
|
|
%{__install} -p -m 0644 %{SOURCE4} %{buildroot}%{nginx_confdir}/conf.d/ssl.conf
|
|
-%{__install} -p -m 0644 %{SOURCE10} %{buildroot}%{nginx_confdir}/nginx.conf
|
|
|
|
-%{__install} -p -m 0644 %{SOURCE10} %{buildroot}%{nginx_confdir}/nginx.conf.default
|
|
|
|
|
|
+%{__sed} -e 's/__NGINXUSER__/%{nginx_user}/g' %{SOURCE10} > %{buildroot}%{nginx_confdir}/nginx.conf
|
|
|
|
+%{__cp} %{buildroot}%{nginx_confdir}/nginx.conf %{buildroot}%{nginx_confdir}/nginx.conf.default
|
|
%{__install} -p -m 0644 %{SOURCE11} %{buildroot}%{nginx_confdir}/sites.d/default
|
|
%{__install} -p -m 0644 %{SOURCE11} %{buildroot}%{nginx_confdir}/sites.d/default
|
|
%{__install} -p -m 0644 %{SOURCE20} %{buildroot}%{nginx_confdir}/conf.d/proxy_cache.conf
|
|
%{__install} -p -m 0644 %{SOURCE20} %{buildroot}%{nginx_confdir}/conf.d/proxy_cache.conf
|
|
%{__install} -p -d -m 0755 %{buildroot}%{nginx_home_cache}
|
|
%{__install} -p -d -m 0755 %{buildroot}%{nginx_home_cache}
|
|
@@ -280,11 +287,6 @@ done
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
-%pre
|
|
|
|
-if [ $1 == 1 ]; then
|
|
|
|
- %{_sbindir}/useradd -c "Nginx user" -s /bin/false -r -d %{nginx_home} %{nginx_user} 2>/dev/null || :
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
%post
|
|
%post
|
|
if [ $1 == 1 ]; then
|
|
if [ $1 == 1 ]; then
|
|
/sbin/chkconfig --add %{name}
|
|
/sbin/chkconfig --add %{name}
|
|
@@ -367,6 +369,14 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Jul 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-1
|
|
|
|
+- update to 1.2.2
|
|
|
|
+
|
|
|
|
+* Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
|
|
|
|
+- update to 1.2.1
|
|
|
|
+- change nginx user from nginx to www-data
|
|
|
|
+- R(pre): www-common
|
|
|
|
+
|
|
* Wed Apr 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-1
|
|
* Wed Apr 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-1
|
|
- update to 1.2.0
|
|
- update to 1.2.0
|
|
- update passenger to 3.0.12
|
|
- update passenger to 3.0.12
|