Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
http
>
nginx
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 268
[-]
[+]
Changed
nginx.spec
@@ -22,6 +22,7 @@ %define ajpmodule_version 0.3 %define with_ldap_auth 0 %define with_ajp_module 1 +%define with_pagespeed 0 Name: nginx Version: 1.13.7 @@ -78,8 +79,10 @@ Source11: nginx_upstream_check_module-master.tar.gz Source12: openssl-%{openssl_version}.tar.gz Source13: nginx-munin.tar.gz +%if 0%{?with_pagespeed} == 1 Source14: ngx_pagespeed-%{nps_version}.zip Source15: %{psol_version}.tar.gz +%endif Source16: ngx_cache_purge-%{ngxpurge_version}.tar.gz Source17: naxsi-git.tar.gz Source18: changelog @@ -91,7 +94,9 @@ Source103: 50x.html Source104: 404.html Source105: ssl-ciphersample +%if 0%{?with_pagespeed} == 1 Source106: pagespeed.conf +%endif Source108: blockips.conf Patch0: nginx-auto-cc-gcc.patch @@ -128,18 +133,19 @@ ./config %if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 - +%if 0%{?with_pagespeed} == 1 cd %{_builddir}/nginx-%{version}/ %{__unzip} -o %{SOURCE14} if [ $? -ne 0 ]; then exit $? fi -cd ngx_pagespeed-%{nps_version} +%if 0%{?with_pagespeed} == 1 %{__tar} xzf %{SOURCE15} if [ $? -ne 0 ]; then exit $? fi +%endif chmod -Rf a+rX,u+w,g-w,o-w . %endif @@ -208,9 +214,11 @@ --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ --add-module=%{_builddir}/nginx-%{version}/ngx_cache_purge-2.3 \ %if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 +%if 0%{?with_pagespeed} == 1 --add-module=%{_builddir}/nginx-%{version}/ngx_pagespeed-%{nps_version} \ --with-threads \ %endif +%endif %if 0%{with_rtmp_ext} --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ %endif