Logoj0ke.net Open Build Service > Projects > internetx:projects:http > nginx > Changes
Sign Up | Log In

Changes of Revision 56

[-] Changed nginx.spec
x
 
1
@@ -96,6 +96,7 @@
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
@@ -108,9 +109,10 @@
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
@@ -152,7 +154,9 @@
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
@@ -175,6 +179,11 @@
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