# TODO
# - /etc/sysconfig/nginx file
# - missing perl build/install requires
+# - add njs: https://nginx.org/en/docs/njs/
#
# Conditional build for nginx:
# Features
%define ssl_version 1.0.2
%define rtmp_version 1.2.1
%define vts_version 0.1.18
-%define modsecurity_version 2.9.2
+%define modsecurity_version 2.9.3
Summary: High perfomance HTTP and reverse proxy server
Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
# nginx lines:
# - stable: production quality with stable API
# - mainline: production quality but API can change
Name: nginx
-Version: 1.15.9
+Version: 1.16.1
Release: 3
License: BSD-like
Group: Networking/Daemons/HTTP
Source0: http://nginx.org/download/%{name}-%{version}.tar.gz
-# Source0-md5: 00dde20d4d2cc65bdaf8950a5bd3e14b
+# Source0-md5: 45a80f75336c980d240987badc3dcf60
Source1: http://nginx.net/favicon.ico
# Source1-md5: 2aaf2115c752cbdbfb8a2f0b3c3189ab
Source2: proxy.conf
Source17: %{name}-mime.types.sh
Source18: %{name}.service
Source22: http://www.modsecurity.org/tarball/%{modsecurity_version}/modsecurity-%{modsecurity_version}.tar.gz
-# Source22-md5: 4d9454efb19269c4288ae408ea438b76
+# Source22-md5: 215a96d679a5b0fadcf13b5d09b35422
Source101: https://github.com/arut/nginx-rtmp-module/archive/v%{rtmp_version}/%{name}-rtmp-module-%{rtmp_version}.tar.gz
# Source101-md5: 639ac2b78103adaccbcfe484a92acf44
Source102: https://github.com/vozlt/nginx-module-vts/archive/v%{vts_version}.tar.gz
%if %{with mail}
load_module mail
%endif
-%{?with_vts:load_module vts}
+%{?with_vts:load_module http_vhost_traffic_status}
%if %{with stream}
load_module stream
%endif
%if %{with vts}
%files mod_vts
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_vts.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_vhost_traffic_status.conf
%attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_vhost_traffic_status_module.so
%endif