Changes of Revision 56
[-] | Changed | nginx.spec |
x 1
2 3 %patch5 -p0 4 5 +%if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 6 7 cd %{_builddir}/nginx-%{version}/ 8 %{__unzip} -o %{SOURCE14} 9
10 if [ $? -ne 0 ]; then 11 exit $? 12 fi 13 -pwd && sleep 5s 14 chmod -Rf a+rX,u+w,g-w,o-w . 15 -pwd && sleep 5s 16 + 17 +%endif 18 + 19 20 %build 21 export DESTDIR=%{buildroot} 22
23 --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ 24 %endif 25 --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ 26 +%if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 27 --add-module=%{_builddir}/nginx-%{version}/ngx_pagespeed-release-%{nps_version}-beta \ 28 +%endif 29 --with-file-aio \ 30 --with-poll_module 31 make %{?_smp_mflags} 32
33 %{__install} -p -D -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/%{name} 34 %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d 35 %{__install} -p -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE6} %{SOURCE106} %{buildroot}%{nginx_confdir}/conf.d 36 + 37 +%if 0%{?rhel_version} == 700 || 0%{?centos_version} == 700 38 +%{__install} -p -m 0644 %{SOURCE106} %{buildroot}%{nginx_confdir}/conf.d 39 +%endif 40 + 41 %{__install} -p -m 0644 %{SOURCE105} %{buildroot}%{nginx_confdir} 42 %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp} 43 %{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir} 44 |