Changes of Revision 268
[-] | Changed | nginx.spec |
x 1
2 %define ajpmodule_version 0.3 3 %define with_ldap_auth 0 4 %define with_ajp_module 1 5 +%define with_pagespeed 0 6 7 Name: nginx 8 Version: 1.13.7 9
10 Source11: nginx_upstream_check_module-master.tar.gz 11 Source12: openssl-%{openssl_version}.tar.gz 12 Source13: nginx-munin.tar.gz 13 +%if 0%{?with_pagespeed} == 1 14 Source14: ngx_pagespeed-%{nps_version}.zip 15 Source15: %{psol_version}.tar.gz 16 +%endif 17 Source16: ngx_cache_purge-%{ngxpurge_version}.tar.gz 18 Source17: naxsi-git.tar.gz 19 Source18: changelog 20
21 Source103: 50x.html 22 Source104: 404.html 23 Source105: ssl-ciphersample 24 +%if 0%{?with_pagespeed} == 1 25 Source106: pagespeed.conf 26 +%endif 27 Source108: blockips.conf 28 29 Patch0: nginx-auto-cc-gcc.patch 30
31 ./config 32 33 %if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 34 - 35 +%if 0%{?with_pagespeed} == 1 36 cd %{_builddir}/nginx-%{version}/ 37 %{__unzip} -o %{SOURCE14} 38 if [ $? -ne 0 ]; then 39 exit $? 40 fi 41 42 -cd ngx_pagespeed-%{nps_version} 43 +%if 0%{?with_pagespeed} == 1 44 %{__tar} xzf %{SOURCE15} 45 if [ $? -ne 0 ]; then 46 exit $? 47 fi 48 +%endif 49 chmod -Rf a+rX,u+w,g-w,o-w . 50 51 %endif 52
53 --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ 54 --add-module=%{_builddir}/nginx-%{version}/ngx_cache_purge-2.3 \ 55 %if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 56 +%if 0%{?with_pagespeed} == 1 57 --add-module=%{_builddir}/nginx-%{version}/ngx_pagespeed-%{nps_version} \ 58 --with-threads \ 59 %endif 60 +%endif 61 %if 0%{with_rtmp_ext} 62 --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ 63 %endif 64 |