|
@@ -20,6 +20,7 @@ Requires(pre): shadow-utils
|
|
Requires: openssl >= 1.0.2
|
|
Requires: openssl >= 1.0.2
|
|
Requires: procps-ng
|
|
Requires: procps-ng
|
|
BuildRequires: openssl-devel >= 1.0.2
|
|
BuildRequires: openssl-devel >= 1.0.2
|
|
|
|
+BuildRequires: perl-IPC-Cmd
|
|
%define dist .el7
|
|
%define dist .el7
|
|
%endif
|
|
%endif
|
|
|
|
|
|
@@ -47,6 +48,7 @@ Epoch: %{epoch}
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
Requires: procps-ng
|
|
Requires: procps-ng
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
|
|
+BuildRequires: gcc
|
|
%define _debugsource_template %{nil}
|
|
%define _debugsource_template %{nil}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
@@ -70,9 +72,9 @@ Requires(pre): shadow-utils
|
|
|
|
|
|
# end of distribution specific definitions
|
|
# end of distribution specific definitions
|
|
|
|
|
|
-%define openssl_version 1.1.1t
|
|
|
|
|
|
+%define openssl_version 3.0.8-quic1
|
|
|
|
|
|
-%define base_version 1.23.4
|
|
|
|
|
|
+%define base_version 1.25.0
|
|
%define base_release 1%{?dist}.ngx
|
|
%define base_release 1%{?dist}.ngx
|
|
|
|
|
|
%define bdir %{_builddir}/%{name}-%{base_version}
|
|
%define bdir %{_builddir}/%{name}-%{base_version}
|
|
@@ -80,7 +82,7 @@ Requires(pre): shadow-utils
|
|
%define WITH_CC_OPT $(echo %{optflags} $(pcre2-config --cflags)) -fPIC
|
|
%define WITH_CC_OPT $(echo %{optflags} $(pcre2-config --cflags)) -fPIC
|
|
%define WITH_LD_OPT -Wl,-z,relro -Wl,-z,now -pie
|
|
%define WITH_LD_OPT -Wl,-z,relro -Wl,-z,now -pie
|
|
|
|
|
|
-%define BASE_CONFIGURE_ARGS $(echo "--prefix=%{_sysconfdir}/nginx --sbin-path=%{_sbindir}/nginx --modules-path=%{_libdir}/nginx/modules --conf-path=%{_sysconfdir}/nginx/nginx.conf --error-log-path=%{_localstatedir}/log/nginx/error.log --http-log-path=%{_localstatedir}/log/nginx/access.log --pid-path=%{_localstatedir}/run/nginx.pid --lock-path=%{_localstatedir}/run/nginx.lock --http-client-body-temp-path=%{_localstatedir}/cache/nginx/client_temp --http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp --http-fastcgi-temp-path=%{_localstatedir}/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=%{_localstatedir}/cache/nginx/uwsgi_temp --http-scgi-temp-path=%{_localstatedir}/cache/nginx/scgi_temp --user=%{nginx_user} --group=%{nginx_group} --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module")
|
|
|
|
|
|
+%define BASE_CONFIGURE_ARGS $(echo "--prefix=%{_sysconfdir}/nginx --sbin-path=%{_sbindir}/nginx --modules-path=%{_libdir}/nginx/modules --conf-path=%{_sysconfdir}/nginx/nginx.conf --error-log-path=%{_localstatedir}/log/nginx/error.log --http-log-path=%{_localstatedir}/log/nginx/access.log --pid-path=%{_localstatedir}/run/nginx.pid --lock-path=%{_localstatedir}/run/nginx.lock --http-client-body-temp-path=%{_localstatedir}/cache/nginx/client_temp --http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp --http-fastcgi-temp-path=%{_localstatedir}/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=%{_localstatedir}/cache/nginx/uwsgi_temp --http-scgi-temp-path=%{_localstatedir}/cache/nginx/scgi_temp --user=%{nginx_user} --group=%{nginx_group} --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module $( if [ 0%{?rhel} -eq 7 ] || [ 0%{?suse_version} -eq 1315 ]; then continue; else echo "--with-http_v3_module"; fi; ) --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module")
|
|
|
|
|
|
Summary: High performance web server
|
|
Summary: High performance web server
|
|
Name: nginx
|
|
Name: nginx
|
|
@@ -100,7 +102,7 @@ Source6: nginx.suse.logrotate
|
|
Source7: nginx-debug.service
|
|
Source7: nginx-debug.service
|
|
Source8: nginx.copyright
|
|
Source8: nginx.copyright
|
|
Source9: nginx.check-reload.sh
|
|
Source9: nginx.check-reload.sh
|
|
-Source10: https://www.openssl.org/source/openssl-%{openssl_version}.tar.gz
|
|
|
|
|
|
+Source10: https://github.com/quictls/openssl/archive/refs/tags/openssl-%{openssl_version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -109,6 +111,7 @@ License: 2-clause BSD-like license
|
|
BuildRoot: %{_tmppath}/%{name}-%{base_version}-%{base_release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{base_version}-%{base_release}-root
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: pcre2-devel
|
|
BuildRequires: pcre2-devel
|
|
|
|
+BuildRequires: perl
|
|
|
|
|
|
Provides: webserver
|
|
Provides: webserver
|
|
Provides: nginx-r%{base_version}
|
|
Provides: nginx-r%{base_version}
|
|
@@ -127,7 +130,7 @@ tar -zxf %{SOURCE10}
|
|
|
|
|
|
%build
|
|
%build
|
|
./configure %{BASE_CONFIGURE_ARGS} \
|
|
./configure %{BASE_CONFIGURE_ARGS} \
|
|
- --with-openssl=./openssl-%{openssl_version}/ \
|
|
|
|
|
|
+ --with-openssl=./openssl-openssl-%{openssl_version}/ \
|
|
--with-cc-opt="%{WITH_CC_OPT}" \
|
|
--with-cc-opt="%{WITH_CC_OPT}" \
|
|
--with-ld-opt="%{WITH_LD_OPT}" \
|
|
--with-ld-opt="%{WITH_LD_OPT}" \
|
|
--with-debug
|
|
--with-debug
|
|
@@ -135,7 +138,7 @@ make %{?_smp_mflags}
|
|
%{__mv} %{bdir}/objs/nginx \
|
|
%{__mv} %{bdir}/objs/nginx \
|
|
%{bdir}/objs/nginx-debug
|
|
%{bdir}/objs/nginx-debug
|
|
./configure %{BASE_CONFIGURE_ARGS} \
|
|
./configure %{BASE_CONFIGURE_ARGS} \
|
|
- --with-openssl=./openssl-%{openssl_version}/ \
|
|
|
|
|
|
+ --with-openssl=./openssl-openssl-%{openssl_version}/ \
|
|
--with-cc-opt="%{WITH_CC_OPT}" \
|
|
--with-cc-opt="%{WITH_CC_OPT}" \
|
|
--with-ld-opt="%{WITH_LD_OPT}"
|
|
--with-ld-opt="%{WITH_LD_OPT}"
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
@@ -312,6 +315,9 @@ if [ $1 -ge 1 ]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue May 23 2023 Nginx Packaging <nginx-packaging@f5.com> - 1.25.0-1%{?dist}.ngx
|
|
|
|
+- 1.25.0-1
|
|
|
|
+
|
|
* Tue Mar 28 2023 Nginx Packaging <nginx-packaging@f5.com> - 1.23.4-1%{?dist}.ngx
|
|
* Tue Mar 28 2023 Nginx Packaging <nginx-packaging@f5.com> - 1.23.4-1%{?dist}.ngx
|
|
- 1.23.4-1
|
|
- 1.23.4-1
|
|
|
|
|