Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
http-testing
>
nginx
> nginx.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nginx.spec of Package nginx (Revision 74)
Currently displaying revision
74
,
show latest
%define nginx_user nginx %define nginx_group %{nginx_user} %define nginx_home %{_localstatedir}/lib/nginx %define nginx_home_tmp %{nginx_home}/tmp %define nginx_logdir %{_localstatedir}/log/nginx %define nginx_confdir %{_sysconfdir}/nginx %define nginx_datadir %{_datadir}/nginx %define nginx_webroot %{nginx_datadir}/html %define rtmp_ext nginx-rtmp-module %define rtmp_ext_version 1.0.8 %define rtmp %{rtmp_ext}-%{rtmp_ext_version} %define rtmp_nover %{rtmp_ext} %define with_rtmp_ext 1 %define sticky_module_version 1.1 Name: nginx Version: 1.5.10 Release: 1ixhuge2 Summary: Robust, small and high performance http and reverse proxy server - heavy module extended pack incl. a few fixes to make them apply cleanly together. RPM Tag Ãxhuge from now. Group: System Environment/Daemons License: BSD URL: http://nginx.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pcre-devel zlib-devel openssl-devel perl(ExtUtils::Embed) BuildRequires: GeoIP-devel libaio-devel pam-devel Requires: pcre zlib openssl pam Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires(pre): shadow-utils Requires(post): chkconfig Requires(preun): chkconfig initscripts Requires(postun): initscripts Provides: webserver Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz Source1: %{name}.init Source2: %{name}.logrotate Source3: virtual.conf Source4: ssl.conf Source5: nginx-upstream-fair.tgz Source6: upstream-fair.conf Source7: %{name}.sysconfig Source8: ngx_slowfs_cache-1.5.tar.gz Source9: Nginx-limit-traffic-rate-module.tar.gz Source10: proxy.conf Source11: nginx_upstream_check_module-master.tar.gz Source12: nginx_tcp_proxy_module-0.4.5.tar.gz Source13: nginx-upstream-carp-read-only.tar.gz Source14: %{rtmp}.tar.gz Source15: nginx-upload-module-2.2.zip Source16: mod_zip-master.tar.gz Source17: nginx-upload-progress-module-0.9.0.zip Source18: ngx_http_auth_pam_module-1.2.tar.gz Source20: GeoIPCountryWhois.csv Source21: nginx-http-rdns.tar.gz Source100: index.html Source101: poweredby.png Source102: nginx-logo.png Source103: 50x.html Source104: 404.html # removes -Werror in upstream build scripts. -Werror conflicts with # -D_FORTIFY_SOURCE=2 causing warnings to turn into errors. Patch0: nginx-auto-cc-gcc.patch # configuration patch to match all the Fedora paths for logs, pid files # etc. Patch1: nginx-conf-0.7.x.patch Patch2: check_1.2.6+.patch Patch3: nginx-memset_zero.patch Patch4: tcp-proxymod.patch #Patch5: SPDY_v3.patch #Patch6: nginx-1.5.x_proxy_protocol_patch_v2.patch Patch7: nginx-1.3.9-upload.patch # syslog patch, use syslog instead of nginx logfiles #Patch2: nginx-syslog.patch #Patch3: nginx-unix-sockets.diff #Patch4: nginx-versiontilt.patch %description Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server written by Igor Sysoev. Following third party modules added: * nginx-upstream-fair * mod_zip * ngx_http_auth_pam_module * nginx-upload-progress-module * nginx-upload-module * nginx-rtmp-module * nginx-upstream-check * nginx-tcp-proxy * nginx-slowfs-cache * nginx-limit-traffic-rate * nginx-upstream-carp-read-only %prep %setup -q %patch0 -p0 %patch1 -p0 %patch2 -p1 %patch4 -p1 %patch5 -p1 %{__tar} zxvf %{SOURCE5} %{__tar} zxvf %{SOURCE9} %{__tar} zxvf %{SOURCE11} %{__tar} zxvf %{SOURCE12} %{__tar} zxvf %{SOURCE13} %{__tar} zxvf %{SOURCE14} unzip %{SOURCE15} %{__tar} zxvf %{SOURCE16} unzip %{SOURCE17} %{__tar} zxvf %{SOURCE18} %patch7 -p0 %build export DESTDIR=%{buildroot} ./configure \ --user=%{nginx_user} \ --group=%{nginx_group} \ --prefix=%{nginx_datadir} \ --sbin-path=%{_sbindir}/%{name} \ --conf-path=%{nginx_confdir}/%{name}.conf \ --error-log-path=%{nginx_logdir}/error.log \ --http-log-path=%{nginx_logdir}/access.log \ --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ --pid-path=%{_localstatedir}/run/%{name}.pid \ --lock-path=%{_localstatedir}/lock/subsys/%{name} \ --with-http_secure_link_module \ --with-http_random_index_module \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_gzip_static_module \ --with-http_degradation_module \ --with-http_stub_status_module \ --with-http_mp4_module \ --with-debug \ --with-ipv6 \ --with-http_spdy_module \ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ --with-ld-opt="-Wl,--as-needed -Wl,--strip-all" \ --with-pcre \ --with-pcre-jit \ --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \ --add-module=%{_builddir}/nginx-%{version}/nginx_upstream_check_module-master \ --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ --add-module=%{_builddir}/nginx-%{version}/nginx_tcp_proxy_module-0.4.5 \ --add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module-master \ --add-module=%{_builddir}/nginx-%{version}/mod_zip-master \ --add-module=%{_builddir}/nginx-%{version}/nginx-upload-module-2.2 \ --add-module=%{_builddir}/nginx-%{version}/ngx_http_auth_pam_module-1.2 \ --with-file-aio make %{?_smp_mflags} mv nginx-upstream-fair/README nginx-upstream-fair/README.nginx_upstream_fair mv nginx-upload-module-2.2/Changelog nginx-upload-module-2.2/Changelog.nginx_upload_module mv nginx-upload-module-2.2/example.php nginx-upload-module-2.2/example.php.nginx_upload_module mv mod_zip-master/CHANGES mod_zip-master/CHANGES.mod_zip mv mod_zip-master/README.markdown mod_zip-master/README.mod_zip mv mod_zip-master/t/nginx.conf mod_zip-master/t/nginx.conf.mod_zip mv nginx-upload-progress-module-master/CHANGES nginx-upload-progress-module-master/CHANGES.nginx_upload_progress mv nginx-upload-progress-module-master/README nginx-upload-progress-module-master/README.nginx_upload_progress mv ngx_http_auth_pam_module-1.2/ChangeLog ngx_http_auth_pam_module-1.2/ChangeLog.ngx_http_auth_pam_module-1.2 mv ngx_http_auth_pam_module-1.2/README ngx_http_auth_pam_module-1.2/README.ngx_http_auth_pam_module-1.2 #mv nginx-http-rdns/README.md nginx-http-rdns//README-nginx-http-rdns %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALLDIRS=vendor find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \; find %{buildroot} -type f -empty -exec rm -f {} \; find %{buildroot} -type f -exec chmod 0644 {} \; find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \; chmod 0755 %{buildroot}%{_sbindir}/nginx %{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -p -D -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d %{__install} -p -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE6} %{SOURCE10} %{buildroot}%{nginx_confdir}/conf.d %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp} %{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir} %{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot} %{__install} -p -m 0644 %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{buildroot}%{nginx_webroot} # convert to UTF-8 all files that give warnings. for textfile in CHANGES do mv $textfile $textfile.old iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old rm -f $textfile.old done %clean rm -rf %{buildroot} %pre %{_sbindir}/useradd -c "Nginx user" -s /bin/false -r -d %{nginx_home} %{nginx_user} 2>/dev/null || : %post /sbin/chkconfig --add %{name} %preun if [ $1 = 0 ]; then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %postun if [ $1 -ge 1 ]; then /sbin/service %{name} condrestart > /dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc LICENSE CHANGES README %doc nginx-upstream-fair/README.nginx_upstream_fair %doc nginx-upload-module-2.2/Changelog.nginx_upload_module nginx-upload-module-2.2/upload.html.nginx_upload_module %doc nginx-upload-module-2.2/example.php.nginx_upload_module nginx-upload-module-2.2/nginx.conf.nginx_upload_module %doc mod_zip-master/CHANGES.mod_zip mod_zip-master/README.mod_zip mod_zip-master/t/nginx.conf.mod_zip %doc nginx-upload-progress-module-master/CHANGES.nginx_upload_progress_module nginx-upload-progress-module-master/README.nginx_upload_progress_module %doc ngx_http_auth_pam_module-1.2/ChangeLog.ngx_http_auth_pam_module-1.2 ngx_http_auth_pam_module-1.2/README.ngx_http_auth_pam_module-1.2 %doc nginx-rtmp-module-master/README.nginx_rtmp_module nginx-rtmp-module-master/stat.xsl %doc nginx-http-rdns/README.nginx-http-rdns %{nginx_datadir}/ %{_sbindir}/%{name} # %{_mandir}/man3/%{name}.3pm.gz %{_initrddir}/%{name} %dir %{nginx_confdir} %dir %{nginx_confdir}/conf.d %config(noreplace) %{nginx_confdir}/conf.d/*.conf %config(noreplace) %{nginx_confdir}/win-utf %config(noreplace) %{nginx_confdir}/%{name}.conf.default %config(noreplace) %{nginx_confdir}/mime.types.default %config(noreplace) %{nginx_confdir}/fastcgi_params %config(noreplace) %{nginx_confdir}/fastcgi_params.default %config(noreplace) %{nginx_confdir}/fastcgi.conf %config(noreplace) %{nginx_confdir}/fastcgi.conf.default %config(noreplace) %{nginx_confdir}/scgi_params %config(noreplace) %{nginx_confdir}/scgi_params.default %config(noreplace) %{nginx_confdir}/uwsgi_params %config(noreplace) %{nginx_confdir}/uwsgi_params.default %config(noreplace) %{nginx_confdir}/koi-win %config(noreplace) %{nginx_confdir}/koi-utf %config(noreplace) %{nginx_confdir}/%{name}.conf %config(noreplace) %{nginx_confdir}/mime.types %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} #%dir %{perl_vendorarch}/auto/%{name} #%{perl_vendorarch}/%{name}.pm #%{perl_vendorarch}/auto/%{name}/%{name}.so %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home} %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp} %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir} %changelog * Sun Jan 19 2014 Juergen Gotteswinter <jg@internetx.de> - 1.5.8-ixhuge2 * added nginx-http-rdns module * Wed Jan 07 2014 Juergen Gotteswinter <jg@internetx.de> - 1.5.8-1 - patched to SPDYv3 - version bump to 1.5.8 latest mainline - changed releasetag to clearify the presence of spdy3 patch - added proxy protocol patch to play well together with haproxy * Wed Dec 07 2013 Juergen Gotteswinter <jg@internetx.de> - 1.5.7-2 - added nginx tcp proxy module * Wed Nov 20 2013 Juergen Gotteswinter <jg@internetx.de> - 1.5.7-1 - https://bugzilla.redhat.com/show_bug.cgi?id=1032266 * Tue Oct 08 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.3-1 - update nginx to 1.4.3 - update rtmp module to 1.0.5 * Sun Aug 04 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.2-2 - update rtmp module to 1.0.2 * Wed Jul 17 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.2-1 - update nginx to 1.4.2 * Sat Jun 29 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.1-4 - update rtmp module to 1.0.1 * Sat May 25 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.1-3 - update rtmp module to 0.9.20 * Mon May 13 2013 Carsten Schoene <cs@linux-administrator.com> - 1.4.1-2 - update rtmp module to 0.9.19 * Fri May 10 2013 Juergen Gotteswinter <jg@internetx.de> - 1.4.1-1 - version bump to latest stable 1.4.1 * Fri Apr 26 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.7-2 - update rtmp module to 0.9.18 * Sun Apr 14 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.7-4 - update nginx to 1.2.7 - update rtmp module to 0.9.14 * Mon Mar 04 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.7-3 - update rtmp module to 0.9.11 * Thu Feb 28 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.7-2 - update rtmp module to 0.9.8 * Tue Feb 12 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.7-1 - update nginx to 1.2.7 - update rtmp module to 0.9.7 * Fri Jan 25 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.6-4 - update rtmp module to 0.9.1 * Wed Jan 16 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.6-3 - update rtmp module to 0.9.0 * Sat Jan 12 2013 Carsten Schoene <cs@linux-administrator.com> - 1.2.6-2 - added rtmp 0.8.7 module * Tue Dec 11 2012 Carsten Schoene <cs@linux-administrator.com> - 1.2.6-1 - update to release 1.2.6 * Tue Nov 13 2012 Carsten Schoene <cs@linux-administrator.com> - 1.2.5-1 - update to release 1.2.5 * Mon Oct 04 2010 Juergen Gotteswinter <jg at internetx.de> 0.8.52-1 - update to latest stable branch * Wed Nov 17 2009 Juergen Gotteswinter <jg at internetx.de> 0.7.64-1 - version bump to 0.7.64 * Wed Oct 28 2009 Juergen Gotteswinter <jg at internetx.de> 0.7.63-1 - version bump to 0.7.63 * Fri Oct 23 2009 Juergen Gotteswinter <jg at internetx.de> 0.7.62-3 - included nginx-socket-patch for unix socket support