[3785] | 1 | # build mod_wsgi |
---|
| 2 | %bcond_with wsgi |
---|
| 3 | |
---|
[6903] | 4 | # build http_geoip_module |
---|
| 5 | %bcond_without geoip |
---|
| 6 | |
---|
[6601] | 7 | %if "%{_dist_release}" > "vl6" |
---|
| 8 | %define nginx_user www-data |
---|
| 9 | %else |
---|
[521] | 10 | %define nginx_user nginx |
---|
[6601] | 11 | %endif |
---|
[521] | 12 | %define nginx_group %{nginx_user} |
---|
| 13 | %define nginx_home %{_localstatedir}/lib/nginx |
---|
| 14 | %define nginx_home_tmp %{nginx_home}/tmp |
---|
[854] | 15 | %define nginx_home_cache %{nginx_home}/cache |
---|
[521] | 16 | %define nginx_logdir %{_localstatedir}/log/nginx |
---|
| 17 | %define nginx_confdir %{_sysconfdir}/nginx |
---|
| 18 | %define nginx_datadir %{_datadir}/nginx |
---|
| 19 | %define nginx_webroot %{nginx_datadir}/html |
---|
| 20 | |
---|
| 21 | Summary: Robust, small and high performance http and reverse proxy server |
---|
| 22 | Summary(ja): 堅牢・軽量・高性能な HTTP およびリバースプロキシサーバ |
---|
| 23 | Name: nginx |
---|
[6847] | 24 | Version: 1.2.4 |
---|
[6997] | 25 | Release: 3%{?_dist_release} |
---|
[521] | 26 | |
---|
| 27 | Group: System Environment/Daemons |
---|
| 28 | # BSD License (two clause) |
---|
| 29 | # http://www.freebsd.org/copyright/freebsd-license.html |
---|
| 30 | License: BSD |
---|
| 31 | URL: http://nginx.net/ |
---|
[854] | 32 | |
---|
| 33 | Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz |
---|
| 34 | Source1: %{name}.init |
---|
| 35 | Source2: %{name}.logrotate |
---|
| 36 | Source3: nginx-virtual.conf.template |
---|
| 37 | Source4: nginx-ssl.conf |
---|
| 38 | Source5: %{name}.sysconfig |
---|
| 39 | Source10: nginx-vine.conf |
---|
| 40 | Source11: nginx-default-vine |
---|
| 41 | Source20: proxy_cache.conf |
---|
| 42 | Source100: nginx-index.html |
---|
| 43 | Source101: poweredby-vine.png |
---|
| 44 | Source102: nginx-logo.png |
---|
| 45 | Source103: nginx-50x.html |
---|
| 46 | Source104: nginx-404.html |
---|
[1898] | 47 | %define ngx_fancyindex_version 0.3 |
---|
| 48 | Source1000: ngx-fancyindex-%{ngx_fancyindex_version}.tar.gz |
---|
[2236] | 49 | %define nginx_accept_language_module_version 02262ce |
---|
| 50 | Source1010: giom-nginx_accept_language_module-%{nginx_accept_language_module_version}.tar.gz |
---|
[6028] | 51 | %define passenger_version 3.0.12 |
---|
[3906] | 52 | Source1020: passenger-%{passenger_version}.tar.gz |
---|
| 53 | %define upstream_fair_version 2131c73 |
---|
| 54 | Source1030: gnosek-nginx-upstream-fair-%{upstream_fair_version}.tar.gz |
---|
[854] | 55 | |
---|
[3906] | 56 | %define mod_wsgi_version 6975f0ec7eeb |
---|
| 57 | Source2000: lifeeth-mod_wsgi-%{mod_wsgi_version}.tar.bz2 |
---|
| 58 | |
---|
[854] | 59 | # removes -Werror in upstream build scripts. -Werror conflicts with |
---|
| 60 | # -D_FORTIFY_SOURCE=2 causing warnings to turn into errors. |
---|
| 61 | Patch0: nginx-auto-cc-gcc.patch |
---|
| 62 | # configuration patch to match all the Vine Linux paths for logs, pid files |
---|
| 63 | # etc. |
---|
| 64 | Patch1: nginx-conf.patch |
---|
| 65 | |
---|
[521] | 66 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 67 | |
---|
| 68 | BuildRequires: pcre-devel |
---|
| 69 | BuildRequires: zlib-devel |
---|
| 70 | BuildRequires: openssl-devel |
---|
[854] | 71 | BuildRequires: gd-devel |
---|
[521] | 72 | BuildRequires: perl |
---|
| 73 | BuildRequires: perl(ExtUtils::Embed) |
---|
[1898] | 74 | BuildRequires: libxml2-devel |
---|
| 75 | BuildRequires: libxslt-devel |
---|
[3906] | 76 | BuildRequires: curl-devel |
---|
[6903] | 77 | %if %{with geoip} |
---|
| 78 | BuildRequires: GeoIP-devel |
---|
| 79 | %endif |
---|
[1898] | 80 | |
---|
[521] | 81 | %if "%{?_dist_release}" == "vl4" |
---|
| 82 | Requires: perl >= 5.8.6 |
---|
| 83 | %else |
---|
| 84 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 85 | %endif |
---|
| 86 | # for /usr/sbin/useradd |
---|
| 87 | Requires(pre): shadow-utils |
---|
| 88 | Requires(post): chkconfig |
---|
| 89 | # for /sbin/service |
---|
| 90 | Requires(preun): chkconfig, initscripts |
---|
| 91 | Requires(postun): initscripts |
---|
[6601] | 92 | %if "%{_dist_release}" > "vl6" |
---|
| 93 | Requires(pre): www-common |
---|
| 94 | %endif |
---|
[521] | 95 | |
---|
[3785] | 96 | Provides: webserver |
---|
| 97 | |
---|
[854] | 98 | Vendor: Project Vine |
---|
| 99 | Distribution: Vine Linux |
---|
| 100 | Packager: daisuke |
---|
[521] | 101 | |
---|
| 102 | %description |
---|
| 103 | Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 |
---|
| 104 | proxy server written by Igor Sysoev. |
---|
| 105 | |
---|
| 106 | %description -l ja |
---|
| 107 | Nginx [engine x/エンジンX] は Igor Sysoev により開発された以下の機能をもつ |
---|
| 108 | 堅牢・軽量・高性能なHTTPサーバかつリバースプロキシサーバです。 |
---|
| 109 | - HTTP(S) サーバ |
---|
| 110 | - HTTP(S) リバースプロキシサーバ |
---|
| 111 | - IMAP/POP3 プロキシサーバ |
---|
| 112 | |
---|
[3847] | 113 | %package passenger |
---|
| 114 | Summary: Nginx with mod_passenger support |
---|
| 115 | Summary(ja): Passenger サポート入りの Nginx |
---|
| 116 | Group: System Environment/Daemons |
---|
| 117 | BuildRequires: ruby, rubygems, rubygem-rake |
---|
| 118 | Requires: nginx |
---|
| 119 | |
---|
| 120 | %description passenger |
---|
| 121 | Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 |
---|
| 122 | This package contains nginx server with passenger support. |
---|
| 123 | |
---|
| 124 | %description -l ja passenger |
---|
| 125 | Nginx [engine x/エンジンX] は Igor Sysoev により開発された以下の機能をもつ |
---|
| 126 | 堅牢・軽量・高性能なHTTPサーバかつリバースプロキシサーバです。 |
---|
| 127 | - HTTP(S) サーバ |
---|
| 128 | - HTTP(S) リバースプロキシサーバ |
---|
| 129 | - IMAP/POP3 プロキシサーバ |
---|
| 130 | このパッケージには Passenger サポートを含んだ nginxサーバが入っています。 |
---|
| 131 | |
---|
[521] | 132 | %prep |
---|
[6028] | 133 | %setup -q -a 1000 -a 1010 -a 1020 -a 1030 %{?with_wsgi:-a 2000} |
---|
[521] | 134 | |
---|
| 135 | %patch0 -p0 |
---|
| 136 | %patch1 -p1 |
---|
| 137 | |
---|
| 138 | %build |
---|
| 139 | # nginx does not utilize a standard configure script. It has its own |
---|
| 140 | # and the standard configure options cause the nginx configure script |
---|
| 141 | # to error out. This is is also the reason for the DESTDIR environment |
---|
| 142 | # variable. The configure script(s) have been patched (Patch1 and |
---|
| 143 | # Patch2) in order to support installing into a build environment. |
---|
[3847] | 144 | |
---|
[521] | 145 | export DESTDIR=%{buildroot} |
---|
[3847] | 146 | |
---|
| 147 | ## build with passenger |
---|
[521] | 148 | ./configure \ |
---|
| 149 | --user=%{nginx_user} \ |
---|
| 150 | --group=%{nginx_group} \ |
---|
| 151 | --prefix=%{nginx_datadir} \ |
---|
| 152 | --sbin-path=%{_sbindir}/%{name} \ |
---|
| 153 | --conf-path=%{nginx_confdir}/%{name}.conf \ |
---|
| 154 | --error-log-path=%{nginx_logdir}/error.log \ |
---|
| 155 | --http-log-path=%{nginx_logdir}/access.log \ |
---|
| 156 | --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ |
---|
| 157 | --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ |
---|
| 158 | --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ |
---|
| 159 | --pid-path=%{_localstatedir}/run/%{name}.pid \ |
---|
| 160 | --lock-path=%{_localstatedir}/lock/subsys/%{name} \ |
---|
[854] | 161 | --with-file-aio \ |
---|
| 162 | --with-ipv6 \ |
---|
[521] | 163 | --with-http_ssl_module \ |
---|
| 164 | --with-http_realip_module \ |
---|
| 165 | --with-http_addition_module \ |
---|
[854] | 166 | --with-http_xslt_module \ |
---|
| 167 | --with-http_image_filter_module \ |
---|
[521] | 168 | --with-http_sub_module \ |
---|
| 169 | --with-http_dav_module \ |
---|
| 170 | --with-http_flv_module \ |
---|
| 171 | --with-http_gzip_static_module \ |
---|
[854] | 172 | --with-http_random_index_module \ |
---|
| 173 | --with-http_secure_link_module \ |
---|
[521] | 174 | --with-http_stub_status_module \ |
---|
| 175 | --with-http_perl_module \ |
---|
[6903] | 176 | %if %{with geoip} |
---|
| 177 | --with-http_geoip_module \ |
---|
| 178 | %endif |
---|
[521] | 179 | --with-mail \ |
---|
| 180 | --with-mail_ssl_module \ |
---|
[1898] | 181 | --add-module=ngx-fancyindex-%{ngx_fancyindex_version} \ |
---|
[2236] | 182 | --add-module=giom-nginx_accept_language_module-%{nginx_accept_language_module_version} \ |
---|
[3906] | 183 | --add-module=gnosek-nginx-upstream-fair-%{upstream_fair_version} \ |
---|
[3785] | 184 | %if %{with wsgi} |
---|
| 185 | --add-module=lifeeth-mod_wsgi-%{mod_wsgi_version} \ |
---|
| 186 | %endif |
---|
| 187 | --add-module=passenger-%{passenger_version}/ext/nginx \ |
---|
[3847] | 188 | %ifarch i686 |
---|
| 189 | --with-cpu-opt=pentiumpro \ |
---|
| 190 | --with-zlib-asm=pentiumpro \ |
---|
| 191 | --with-md5-asm \ |
---|
| 192 | --with-sha1-asm \ |
---|
[3785] | 193 | %endif |
---|
[3847] | 194 | --with-cc-opt="-O6 %{optflags} $(pcre-config --cflags)" |
---|
| 195 | make %{?_smp_mflags} |
---|
| 196 | mv objs/nginx objs/nginx.passenger |
---|
| 197 | |
---|
| 198 | ## build without passenger |
---|
| 199 | ./configure \ |
---|
| 200 | --user=%{nginx_user} \ |
---|
| 201 | --group=%{nginx_group} \ |
---|
| 202 | --prefix=%{nginx_datadir} \ |
---|
| 203 | --sbin-path=%{_sbindir}/%{name} \ |
---|
| 204 | --conf-path=%{nginx_confdir}/%{name}.conf \ |
---|
| 205 | --error-log-path=%{nginx_logdir}/error.log \ |
---|
| 206 | --http-log-path=%{nginx_logdir}/access.log \ |
---|
| 207 | --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ |
---|
| 208 | --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ |
---|
| 209 | --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ |
---|
| 210 | --pid-path=%{_localstatedir}/run/%{name}.pid \ |
---|
| 211 | --lock-path=%{_localstatedir}/lock/subsys/%{name} \ |
---|
| 212 | --with-file-aio \ |
---|
| 213 | --with-ipv6 \ |
---|
| 214 | --with-http_ssl_module \ |
---|
| 215 | --with-http_realip_module \ |
---|
| 216 | --with-http_addition_module \ |
---|
| 217 | --with-http_xslt_module \ |
---|
| 218 | --with-http_image_filter_module \ |
---|
| 219 | --with-http_sub_module \ |
---|
| 220 | --with-http_dav_module \ |
---|
| 221 | --with-http_flv_module \ |
---|
| 222 | --with-http_gzip_static_module \ |
---|
| 223 | --with-http_random_index_module \ |
---|
| 224 | --with-http_secure_link_module \ |
---|
| 225 | --with-http_stub_status_module \ |
---|
| 226 | --with-http_perl_module \ |
---|
[6903] | 227 | %if %{with geoip} |
---|
| 228 | --with-http_geoip_module \ |
---|
| 229 | %endif |
---|
[3847] | 230 | --with-mail \ |
---|
| 231 | --with-mail_ssl_module \ |
---|
| 232 | --add-module=ngx-fancyindex-%{ngx_fancyindex_version} \ |
---|
| 233 | --add-module=giom-nginx_accept_language_module-%{nginx_accept_language_module_version} \ |
---|
[3906] | 234 | --add-module=gnosek-nginx-upstream-fair-%{upstream_fair_version} \ |
---|
[3847] | 235 | %if %{with wsgi} |
---|
| 236 | --add-module=lifeeth-mod_wsgi-%{mod_wsgi_version} \ |
---|
| 237 | %endif |
---|
[854] | 238 | %ifarch i686 |
---|
| 239 | --with-cpu-opt=pentiumpro \ |
---|
| 240 | --with-zlib-asm=pentiumpro \ |
---|
| 241 | --with-md5-asm \ |
---|
| 242 | --with-sha1-asm \ |
---|
| 243 | %endif |
---|
| 244 | --with-cc-opt="-O6 %{optflags} $(pcre-config --cflags)" |
---|
[521] | 245 | make %{?_smp_mflags} |
---|
| 246 | |
---|
| 247 | %install |
---|
| 248 | rm -rf %{buildroot} |
---|
| 249 | make install DESTDIR=%{buildroot} INSTALLDIRS=vendor |
---|
| 250 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 251 | find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \; |
---|
| 252 | find %{buildroot} -type f -empty -exec rm -f {} \; |
---|
| 253 | find %{buildroot} -type f -exec chmod 0644 {} \; |
---|
| 254 | find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \; |
---|
[3847] | 255 | mv %{buildroot}%{_sbindir}/nginx %{buildroot}%{_sbindir}/nginx.normal |
---|
| 256 | %{__install} -m 0755 objs/nginx.passenger %{buildroot}%{_sbindir}/ |
---|
| 257 | chmod 0755 %{buildroot}%{_sbindir}/nginx.* |
---|
[521] | 258 | %{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} |
---|
| 259 | %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} |
---|
| 260 | %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/%{name} |
---|
| 261 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d |
---|
[854] | 262 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/sites.d |
---|
| 263 | %{__install} -p -m 0644 %{SOURCE3} %{buildroot}%{nginx_confdir}/sites.d/virtual.conf.template |
---|
[521] | 264 | %{__install} -p -m 0644 %{SOURCE4} %{buildroot}%{nginx_confdir}/conf.d/ssl.conf |
---|
[6601] | 265 | %{__sed} -e 's/__NGINXUSER__/%{nginx_user}/g' %{SOURCE10} > %{buildroot}%{nginx_confdir}/nginx.conf |
---|
| 266 | %{__cp} %{buildroot}%{nginx_confdir}/nginx.conf %{buildroot}%{nginx_confdir}/nginx.conf.default |
---|
[854] | 267 | %{__install} -p -m 0644 %{SOURCE11} %{buildroot}%{nginx_confdir}/sites.d/default |
---|
| 268 | %{__install} -p -m 0644 %{SOURCE20} %{buildroot}%{nginx_confdir}/conf.d/proxy_cache.conf |
---|
| 269 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_cache} |
---|
[521] | 270 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp} |
---|
| 271 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir} |
---|
| 272 | %{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot} |
---|
| 273 | %{__install} -p -m 0644 %{SOURCE100} %{buildroot}%{nginx_webroot}/index.html |
---|
| 274 | %{__install} -p -m 0644 %{SOURCE101} %{buildroot}%{nginx_webroot}/poweredby.png |
---|
| 275 | %{__install} -p -m 0644 %{SOURCE102} %{buildroot}%{nginx_webroot}/nginx-logo.png |
---|
| 276 | %{__install} -p -m 0644 %{SOURCE103} %{buildroot}%{nginx_webroot}/50x.html |
---|
| 277 | %{__install} -p -m 0644 %{SOURCE104} %{buildroot}%{nginx_webroot}/404.html |
---|
| 278 | |
---|
[3785] | 279 | %if %{with wsgi} |
---|
| 280 | %{__install} -p -m 0644 \ |
---|
| 281 | lifeeth-mod_wsgi-%{mod_wsgi_version}/conf/wsgi_vars \ |
---|
| 282 | %{buildroot}%{nginx_confdir} |
---|
| 283 | cp -f lifeeth-mod_wsgi-%{mod_wsgi_version}/README README.mod_wsgi |
---|
| 284 | %endif |
---|
| 285 | |
---|
[3906] | 286 | # upstream fair module document |
---|
| 287 | cp -f gnosek-nginx-upstream-fair-%{upstream_fair_version}/README README.upstream_fair |
---|
| 288 | |
---|
[854] | 289 | touch %{buildroot}%{nginx_confdir}/conf.d/virtual.conf |
---|
| 290 | |
---|
[521] | 291 | # convert to UTF-8 all files that give warnings. |
---|
| 292 | for textfile in CHANGES |
---|
| 293 | do |
---|
| 294 | mv $textfile $textfile.old |
---|
| 295 | iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old |
---|
| 296 | rm -f $textfile.old |
---|
| 297 | done |
---|
| 298 | |
---|
| 299 | %clean |
---|
| 300 | rm -rf %{buildroot} |
---|
| 301 | |
---|
| 302 | %post |
---|
| 303 | if [ $1 == 1 ]; then |
---|
| 304 | /sbin/chkconfig --add %{name} |
---|
| 305 | fi |
---|
[3847] | 306 | update-alternatives --install %{_sbindir}/nginx nginx %{_sbindir}/nginx.normal 20 |
---|
[521] | 307 | |
---|
[3847] | 308 | %post passenger |
---|
| 309 | update-alternatives --install %{_sbindir}/nginx nginx %{_sbindir}/nginx.passenger 30 |
---|
| 310 | |
---|
[521] | 311 | %preun |
---|
| 312 | if [ $1 = 0 ]; then |
---|
| 313 | /sbin/service %{name} stop >/dev/null 2>&1 |
---|
| 314 | /sbin/chkconfig --del %{name} |
---|
[3847] | 315 | update-alternatives --remove nginx %{_sbindir}/nginx.normal |
---|
[521] | 316 | fi |
---|
| 317 | |
---|
[3847] | 318 | %preun passenger |
---|
| 319 | if [ $1 = 0 ]; then |
---|
| 320 | update-alternatives --remove nginx %{_sbindir}/nginx.passenger |
---|
| 321 | fi |
---|
| 322 | |
---|
| 323 | |
---|
[521] | 324 | %postun |
---|
| 325 | if [ $1 == 2 ]; then |
---|
| 326 | /sbin/service %{name} upgrade || : |
---|
| 327 | fi |
---|
| 328 | |
---|
| 329 | %files |
---|
| 330 | %defattr(-,root,root,-) |
---|
[3906] | 331 | %doc LICENSE CHANGES README |
---|
| 332 | %doc README.upstream_fair |
---|
| 333 | %doc %{?with_wsgi:README.mod_wsgi} |
---|
[521] | 334 | %{nginx_datadir}/ |
---|
[3847] | 335 | %{_sbindir}/%{name}.normal |
---|
[521] | 336 | %{_mandir}/man3/%{name}.3pm.gz |
---|
| 337 | %{_initrddir}/%{name} |
---|
| 338 | %dir %{nginx_confdir} |
---|
| 339 | %dir %{nginx_confdir}/conf.d |
---|
| 340 | %config(noreplace) %{nginx_confdir}/conf.d/*.conf |
---|
[854] | 341 | %ghost %config(noreplace) %{nginx_confdir}/conf.d/virtual.conf |
---|
| 342 | %config(noreplace) %{nginx_confdir}/sites.d/* |
---|
[521] | 343 | %config(noreplace) %{nginx_confdir}/win-utf |
---|
| 344 | %config(noreplace) %{nginx_confdir}/%{name}.conf.default |
---|
| 345 | %config(noreplace) %{nginx_confdir}/mime.types.default |
---|
| 346 | %config(noreplace) %{nginx_confdir}/fastcgi_params |
---|
| 347 | %config(noreplace) %{nginx_confdir}/fastcgi_params.default |
---|
| 348 | %config(noreplace) %{nginx_confdir}/koi-win |
---|
| 349 | %config(noreplace) %{nginx_confdir}/koi-utf |
---|
| 350 | %config(noreplace) %{nginx_confdir}/%{name}.conf |
---|
| 351 | %config(noreplace) %{nginx_confdir}/mime.types |
---|
[854] | 352 | %config(noreplace) %{nginx_confdir}/fastcgi.conf |
---|
| 353 | %config(noreplace) %{nginx_confdir}/fastcgi.conf.default |
---|
[1898] | 354 | %config(noreplace) %{nginx_confdir}/scgi_params |
---|
| 355 | %config(noreplace) %{nginx_confdir}/scgi_params.default |
---|
| 356 | %config(noreplace) %{nginx_confdir}/uwsgi_params |
---|
| 357 | %config(noreplace) %{nginx_confdir}/uwsgi_params.default |
---|
[3785] | 358 | %if %{with wsgi} |
---|
| 359 | %config(noreplace) %{nginx_confdir}/wsgi_vars |
---|
| 360 | %endif |
---|
[521] | 361 | %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
---|
| 362 | %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
---|
| 363 | %dir %{perl_vendorarch}/auto/%{name} |
---|
| 364 | %{perl_vendorarch}/%{name}.pm |
---|
| 365 | %{perl_vendorarch}/auto/%{name}/%{name}.so |
---|
| 366 | %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home} |
---|
| 367 | %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp} |
---|
[854] | 368 | %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_cache} |
---|
[521] | 369 | %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir} |
---|
| 370 | |
---|
[3847] | 371 | %files passenger |
---|
| 372 | %defattr(-,root,root,-) |
---|
| 373 | %doc passenger-%{passenger_version}/doc/Users\ guide\ Nginx.* |
---|
| 374 | %doc passenger-%{passenger_version}/doc/ApplicationPool\ algorithm.txt |
---|
| 375 | %doc passenger-%{passenger_version}/doc/Architectural\ overview.* |
---|
| 376 | %doc passenger-%{passenger_version}/doc/Security\ of\ user\ switching\ support.* |
---|
| 377 | %doc passenger-%{passenger_version}/doc/template |
---|
| 378 | %doc passenger-%{passenger_version}/doc/users_guide_snippets |
---|
| 379 | %doc passenger-%{passenger_version}/doc/images |
---|
| 380 | %{_sbindir}/%{name}.passenger |
---|
[521] | 381 | |
---|
[3847] | 382 | |
---|
[521] | 383 | %changelog |
---|
[6997] | 384 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-3 |
---|
| 385 | - rebuild with pcre-8.31 |
---|
| 386 | |
---|
[6903] | 387 | * Tue Oct 09 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.4-2 |
---|
| 388 | - added http_geoip_module. |
---|
| 389 | |
---|
[6847] | 390 | * Tue Sep 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-1 |
---|
| 391 | - update to 1.2.4 |
---|
| 392 | |
---|
[6601] | 393 | * Thu Jul 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-1 |
---|
| 394 | - update to 1.2.2 |
---|
| 395 | |
---|
| 396 | * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1 |
---|
| 397 | - update to 1.2.1 |
---|
| 398 | - change nginx user from nginx to www-data |
---|
| 399 | - R(pre): www-common |
---|
| 400 | |
---|
[6028] | 401 | * Wed Apr 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-1 |
---|
| 402 | - update to 1.2.0 |
---|
| 403 | - update passenger to 3.0.12 |
---|
| 404 | - drop http_upstream_keepalive |
---|
| 405 | |
---|
[5922] | 406 | * Mon Mar 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.14-1 |
---|
| 407 | - new upstream release |
---|
| 408 | |
---|
[5741] | 409 | * Thu Feb 23 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.12-1 |
---|
| 410 | - update to 1.0.12 |
---|
| 411 | |
---|
[5388] | 412 | * Tue Jan 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.11-1 |
---|
| 413 | - update to 1.0.11 |
---|
| 414 | - update passenger to 3.0.11 |
---|
| 415 | |
---|
[5167] | 416 | * Mon Nov 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-1 |
---|
| 417 | - update to 1.0.10 |
---|
| 418 | |
---|
| 419 | * Tue Sep 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-2 |
---|
| 420 | - update passenger to 3.0.9 |
---|
| 421 | |
---|
[4684] | 422 | * Tue Aug 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1 |
---|
| 423 | - update to 1.0.6 |
---|
| 424 | |
---|
[4093] | 425 | * Thu Jun 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1 |
---|
| 426 | - update to 1.0.4 |
---|
| 427 | |
---|
[3906] | 428 | * Wed May 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-3 |
---|
| 429 | - add gnosek-nginx-upstream-fair module |
---|
| 430 | - add ngx_http_upstream_keepalive module |
---|
| 431 | |
---|
[3847] | 432 | * Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-2 |
---|
| 433 | - add nginx-passenger sub pakckage |
---|
| 434 | - use alternatives to choose nginx with or without passenger |
---|
| 435 | - add BR: ruby, rubygems, rubygem-rake |
---|
| 436 | |
---|
[3844] | 437 | * Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1 |
---|
| 438 | - update to 1.0.2 |
---|
| 439 | |
---|
[3785] | 440 | * Wed May 04 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1 |
---|
| 441 | - update to 1.0.1 |
---|
| 442 | |
---|
| 443 | * Sun May 01 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-2 |
---|
| 444 | - add bcond_with wsgi for mod_wsgi |
---|
| 445 | - add bcond_with passenger |
---|
| 446 | - you need to install rake.gem to build with this option. |
---|
| 447 | - add Provides: webserver |
---|
| 448 | |
---|
[3419] | 449 | * Tue Apr 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
| 450 | - new upstream release 1.0.0! |
---|
| 451 | |
---|
[3146] | 452 | * Sun Mar 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.54-2 |
---|
| 453 | - rebuild with perl-5.12.3 |
---|
| 454 | |
---|
[2525] | 455 | * Mon Jan 17 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.54-1 |
---|
| 456 | - update to 0.8.54 |
---|
| 457 | |
---|
[2236] | 458 | * Sun Nov 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.53-1 |
---|
| 459 | - update to 0.8.53 |
---|
| 460 | - add nginx_accept_language_module |
---|
| 461 | |
---|
[1898] | 462 | * Sat Sep 24 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.50-1 |
---|
| 463 | - update to 0.8.50 |
---|
| 464 | - update ngx-fancyindex to 0.3 |
---|
| 465 | - add BR: libxml2-devel, libxslt-devel |
---|
| 466 | - add scgi_params* and uwsgi_params* to %%files |
---|
| 467 | |
---|
[854] | 468 | * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.35-1 |
---|
| 469 | - update to 0.8.35 (development version) |
---|
| 470 | - add sites.d/ to store vitualhost settings |
---|
| 471 | - split out default server settings to sites.d/default |
---|
| 472 | - add fancyindex module |
---|
| 473 | |
---|
[521] | 474 | * Wed Dec 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.63-1 |
---|
| 475 | - new upstream release |
---|
| 476 | |
---|
| 477 | * Sun Sep 20 2009 Shu KONNO <owa@bg.wakwak.com> 0.7.62-1 |
---|
| 478 | - update to 0.7.62 (included security fix: VU#180065) |
---|
| 479 | |
---|
| 480 | * Wed Aug 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-4 |
---|
| 481 | - fix typo |
---|
| 482 | |
---|
| 483 | * Thu Aug 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-3 |
---|
| 484 | - add translated descriptions |
---|
| 485 | |
---|
| 486 | * Sat Jul 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-2 |
---|
| 487 | - update 404.html/50x.html to use powered by vine logo. |
---|
| 488 | |
---|
| 489 | * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-1 |
---|
| 490 | - initial build for Vine Linux |
---|
| 491 | - update to 0.7.61 |
---|
| 492 | |
---|
| 493 | * Sun May 17 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-2 |
---|
| 494 | - init script updates from Gena Makhomed |
---|
| 495 | - remove nginx-upstream-fair |
---|
| 496 | |
---|
| 497 | * Sat Apr 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-1 |
---|
| 498 | - update to 0.6.36 |
---|
| 499 | |
---|
| 500 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.35-3 |
---|
| 501 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 502 | |
---|
| 503 | * Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-2 |
---|
| 504 | - rebuild |
---|
| 505 | |
---|
| 506 | * Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-1 |
---|
| 507 | - update to 0.6.35 |
---|
| 508 | |
---|
| 509 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.6.34-2 |
---|
| 510 | - rebuild with new openssl |
---|
| 511 | |
---|
| 512 | * Tue Dec 30 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.34-1 |
---|
| 513 | - update to 0.6.34 |
---|
| 514 | |
---|
| 515 | * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6.33-2 |
---|
| 516 | - Fix inclusion of /usr/share/nginx tree => no unowned directories. |
---|
| 517 | |
---|
| 518 | * Sun Nov 23 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.33-1 |
---|
| 519 | - update to 0.6.33 |
---|
| 520 | |
---|
| 521 | * Tue Jul 22 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.32-1 |
---|
| 522 | - update to 0.6.32 |
---|
| 523 | - nginx now supports DESTDIR so removed the patches that enabled it |
---|
| 524 | |
---|
| 525 | * Mon May 26 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-3 |
---|
| 526 | - init script fixes |
---|
| 527 | - resolve 'listen 80 default' [#447873] |
---|
| 528 | |
---|
| 529 | * Mon May 12 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-2 |
---|
| 530 | - update to 0.6.31 |
---|
| 531 | |
---|
| 532 | * Sun May 11 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.30-2 |
---|
| 533 | - upate to new upstream stable branch 0.6 |
---|
| 534 | - added 3rd party module nginx-upstream-fair |
---|
| 535 | - added default webpages |
---|
| 536 | |
---|
| 537 | * Sun Apr 20 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-2 |
---|
| 538 | - update init script to match recommended guidelines |
---|
| 539 | - add /etc/nginx/conf.d support [#443280] |
---|
| 540 | - use /etc/sysconfig/nginx to determine nginx.conf [#442708] |
---|
| 541 | |
---|
| 542 | * Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5.35-3 |
---|
| 543 | - add Requires for versioned perl (libperl.so) |
---|
| 544 | - drop silly file Requires |
---|
| 545 | |
---|
| 546 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.35-2 |
---|
| 547 | - Autorebuild for GCC 4.3 |
---|
| 548 | |
---|
| 549 | * Sat Jan 19 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-1 |
---|
| 550 | - update to 0.5.35 |
---|
| 551 | |
---|
| 552 | * Sat Dec 15 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.34-1 |
---|
| 553 | - update to 0.5.34 |
---|
| 554 | |
---|
| 555 | * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 0.5.33-2 |
---|
| 556 | - Rebuild for deps |
---|
| 557 | |
---|
| 558 | * Sun Nov 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.33-1 |
---|
| 559 | - update to 0.5.33 |
---|
| 560 | |
---|
| 561 | * Mon Sep 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.32-1 |
---|
| 562 | - updated to 0.5.32 |
---|
| 563 | - fixed rpmlint UTF-8 complaints. |
---|
| 564 | |
---|
| 565 | * Sat Aug 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-2 |
---|
| 566 | - added --with-http_stub_status_module build option. |
---|
| 567 | - added --with-http_sub_module build option. |
---|
| 568 | - added use of pcre-config --cflags |
---|
| 569 | |
---|
| 570 | * Fri Aug 17 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-1 |
---|
| 571 | - Update to 0.5.31 |
---|
| 572 | - specify license is BSD |
---|
| 573 | |
---|
| 574 | * Sat Aug 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-2 |
---|
| 575 | - Add BuildRequires: perl-devel - fixing rawhide build |
---|
| 576 | |
---|
| 577 | * Mon Jul 30 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-1 |
---|
| 578 | - Update to 0.5.30 |
---|
| 579 | |
---|
| 580 | * Tue Jul 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.29-1 |
---|
| 581 | - Update to 0.5.29 |
---|
| 582 | |
---|
| 583 | * Wed Jul 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.28-1 |
---|
| 584 | - Update to 0.5.28 |
---|
| 585 | |
---|
| 586 | * Mon Jul 09 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.27-1 |
---|
| 587 | - Update to 0.5.27 |
---|
| 588 | |
---|
| 589 | * Mon Jun 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.26-1 |
---|
| 590 | - Update to 0.5.26 |
---|
| 591 | |
---|
| 592 | * Sat Apr 28 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.19-1 |
---|
| 593 | - Update to 0.5.19 |
---|
| 594 | |
---|
| 595 | * Mon Apr 02 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.17-1 |
---|
| 596 | - Update to 0.5.17 |
---|
| 597 | |
---|
| 598 | * Mon Mar 26 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.16-1 |
---|
| 599 | - Update to 0.5.16 |
---|
| 600 | - add ownership of /usr/share/nginx/html (#233950) |
---|
| 601 | |
---|
| 602 | * Fri Mar 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-3 |
---|
| 603 | - fixed package review bugs (#235222) given by ruben@rubenkerkhof.com |
---|
| 604 | |
---|
| 605 | * Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-2 |
---|
| 606 | - fixed package review bugs (#233522) given by kevin@tummy.com |
---|
| 607 | |
---|
| 608 | * Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-1 |
---|
| 609 | - create patches to assist with building for Fedora |
---|
| 610 | - initial packaging for Fedora |
---|