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

Changes of Revision 2

[-] Added nginx-openSUSE_11.4.spec
x
 
1
@@ -0,0 +1,184 @@
2
+#
3
+# spec file for package nginx (Version 1.0.4)
4
+#
5
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+# norootforbuild
13
+
14
+Name:           nginx
15
+Version:        1.0.4
16
+Release:        1
17
+#
18
+%define pkg_name nginx
19
+#
20
+%define ngx_prefix     %{_prefix}
21
+%define ngx_sbindir    %{_sbindir}/nginx
22
+%define ngx_conf_dir   %{_sysconfdir}/nginx
23
+%define ngx_conf_path  %{ngx_conf_dir}/nginx.conf
24
+%define ngx_error_log  /var/log/nginx/error.log
25
+%define ngx_access_log /var/log/nginx/access.log
26
+%define ngx_pid_path   /var/run/nginx.pid
27
+%define ngx_lock_path  /var/run/nginx.lock
28
+%define ngx_home       /var/lib/nginx
29
+%define ngx_tmp_http   %{ngx_home}/tmp/
30
+%define ngx_tmp_proxy  %{ngx_home}/proxy/
31
+%define ngx_tmp_fcgi   %{ngx_home}/fastcgi/
32
+%define ngx_user_group nginx
33
+#
34
+License:        BSD
35
+Group:          Productivity/Networking/Web/Proxy
36
+#
37
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
38
+BuildRequires:  openssl-devel pcre-devel pkgconfig zlib-devel dos2unix
39
+BuildRequires:  libxslt-devel gd-devel
40
+Provides:       nginx = %{version}-%{release}
41
+PreReq:         %insserv_prereq %fillup_prereq pwdutils
42
+%requires_eq    perl
43
+#
44
+Url:            http://nginx.net/
45
+Source:         http://sysoev.ru/nginx/nginx-%{version}.tar.gz
46
+Source1:        nginx.init.suse
47
+Source2:   nginx.logrotate
48
+Patch:          nginx-0.4.0-no_Werror.patch
49
+Patch1:         nginx-0.6.31-DESTDIR.patch
50
+# Patch2:         nginx-0.4.0-html.patch
51
+Patch2:        nginx-0.6.38-html.patch
52
+Patch3:         nginx-0.4.0-perl_vendor_install.patch
53
+Patch4:         nginx-0.6.31_default_config.patch
54
+#
55
+Summary:        A HTTP server and IMAP/POP3 proxy server
56
+%description
57
+nginx [engine x] is a HTTP server and IMAP/POP3 proxy server written by Igor Sysoev.
58
+It has been running on many heavily loaded Russian sites for more than two years.
59
+
60
+
61
+Authors:
62
+--------
63
+    Igor Sysoev
64
+
65
+
66
+%prep
67
+%setup -n %{pkg_name}-%{version}
68
+%patch
69
+#%patch1
70
+%patch2
71
+%patch3
72
+%patch4
73
+dos2unix contrib/geo2nginx.pl
74
+
75
+%build
76
+./configure \
77
+  --prefix=%{ngx_prefix}/ \
78
+  --sbin-path=%{ngx_sbindir} \
79
+  --conf-path=%{ngx_conf_path} \
80
+  --error-log-path=%{ngx_error_log} \
81
+  --http-log-path=%{ngx_access_log} \
82
+  --pid-path=%{ngx_pid_path} \
83
+  --lock-path=%{ngx_lock_path} \
84
+  --http-client-body-temp-path=%{ngx_tmp_http} \
85
+  --http-proxy-temp-path=%{ngx_tmp_proxy} \
86
+  --http-fastcgi-temp-path=%{ngx_tmp_fcgi} \
87
+  --user=nginx --group=nginx \
88
+  --with-rtsig_module \
89
+  --with-select_module \
90
+  --with-poll_module \
91
+  --with-ipv6 \
92
+  --with-http_ssl_module             \
93
+  --with-http_realip_module          \
94
+  --with-http_addition_module        \
95
+  --with-http_xslt_module            \
96
+  --with-http_image_filter_module    \
97
+  --with-http_sub_module             \
98
+  --with-http_dav_module             \
99
+  --with-http_flv_module             \
100
+  --with-http_gzip_static_module     \
101
+  --with-http_random_index_module    \
102
+  --with-http_secure_link_module     \
103
+  --with-http_stub_status_module     \
104
+  --with-http_perl_module            \
105
+  --with-perl=%{_bindir}/perl \
106
+  --with-mail \
107
+  --with-md5=/usr \
108
+  --with-sha1=/usr \
109
+  --with-file-aio \
110
+%if 0%{?suse_version} > 1000 || 0%{?fedora_version} > 4 || 0%{?mandriva_version} > 2006
111
+  --with-cc-opt="%{optflags} -fstack-protector"
112
+%else
113
+  --with-cc-opt="%{optflags}"
114
+%endif
115
+%{__make}
116
+
117
+%install
118
+%makeinstall
119
+%perl_process_packlist
120
+#
121
+%{__install} -d -m 0750 %{buildroot}%{ngx_home}/{,tmp,proxy,fastcgi}
122
+#
123
+%{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{pkg_name}
124
+%{__ln_s} -f %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name}
125
+%{__install} -D -m 0644 %{S:2} \
126
+    %{buildroot}/etc/logrotate.d/%{name}
127
+
128
+%post
129
+%fillup_and_insserv %{pkg_name}
130
+
131
+%preun
132
+%stop_on_removal %{pkg_name}
133
+
134
+%postun
135
+%restart_on_update %{pkg_name}
136
+%{insserv_cleanup}
137
+
138
+%clean
139
+%{__rm} -rf %{buildroot}
140
+
141
+%pre
142
+/usr/sbin/groupadd -r %{ngx_user_group} &>/dev/null ||:
143
+/usr/sbin/useradd -g %{ngx_user_group} -s /bin/false -r -c "user for %{ngx_user_group}" -d %{ngx_home} %{ngx_user_group} &>/dev/null ||:
144
+
145
+%files
146
+%defattr(-,root,root,-)
147
+%dir %{ngx_conf_dir}/
148
+%config(noreplace) %{ngx_conf_dir}/koi-utf
149
+%config(noreplace) %{ngx_conf_dir}/koi-win
150
+%config(noreplace) %{ngx_conf_dir}/fastcgi_params
151
+%config(noreplace) %{ngx_conf_dir}/fastcgi_params.default
152
+%config(noreplace) %{ngx_conf_dir}/mime.types
153
+%config(noreplace) %{ngx_conf_dir}/mime.types.default
154
+%config(noreplace) %{ngx_conf_dir}/nginx.conf
155
+%config(noreplace) %{ngx_conf_dir}/nginx.conf.default
156
+%config(noreplace) %{ngx_conf_dir}/fastcgi.conf
157
+%config(noreplace) %{ngx_conf_dir}/fastcgi.conf.default
158
+%config(noreplace) %{ngx_conf_dir}/win-utf
159
+%config(noreplace) %{ngx_conf_dir}/scgi_params        
160
+%config(noreplace) %{ngx_conf_dir}/scgi_params.default
161
+%config(noreplace) %{ngx_conf_dir}/uwsgi_params
162
+%config(noreplace) %{ngx_conf_dir}/uwsgi_params.default
163
+%config(noreplace) /etc/logrotate.d/%{name}
164
+
165
+%dir %{perl_vendorarch}/auto/nginx/
166
+%{perl_vendorarch}/auto/nginx/.packlist
167
+%{perl_vendorarch}/auto/nginx/nginx.bs
168
+%{perl_vendorarch}/auto/nginx/nginx.so
169
+%{perl_vendorarch}/nginx.pm
170
+%{ngx_sbindir}
171
+%{_mandir}/man3/nginx.3pm*
172
+/srv/www/htdocs/50x.html
173
+/srv/www/htdocs/index.html
174
+/var/adm/perl-modules/%{name}
175
+%{_sysconfdir}/init.d/%{pkg_name}
176
+%{_sbindir}/rc%{pkg_name}
177
+%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) /var/log/nginx/
178
+%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home}/
179
+%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home}/tmp/
180
+%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home}/proxy/
181
+%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home}/fastcgi/
182
+%doc CHANGES* LICENSE README
183
+%doc conf/ contrib/
184
+
185
+%changelog
186