- Renamed nginx-1.6.1-default_config.patch to nginx-conf.patch.

- Renamed nginx-1.2.4-perl_vendor_install.patch to nginx-perl.patch.
- Used atosetup -p1 macro and replaced editor from perl to sed.
- Added %check section with gpg signature source_verification.
- Updated to 1.27.1
  * https://nginx.org/en/CHANGES
  * Fixed crash in ngx_http_mp4_module via specially crafted mp4 file (CVE-2024-7347).
  * Now the stream module handler is not mandatory.
  * Fixed new HTTP/2 connections might ignore graceful shutdown of old worker processes.

OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=269
This commit is contained in:
Илья Индиго 2024-08-16 02:26:21 +00:00 committed by Git OBS Bridge
parent 60e6941e1b
commit cddb5da178
2 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,10 @@
-------------------------------------------------------------------
Fri Aug 16 00:03:37 UTC 2024 - Илья Индиго <ilya@ilya.top>
Fri Aug 16 02:21:19 UTC 2024 - Илья Индиго <ilya@ilya.top>
- Renamed nginx-1.6.1-default_config.patch to nginx-conf.patch.
- Renamed nginx-1.2.4-perl_vendor_install.patch to nginx-perl.patch.
- Used atosetup -p1 macro and replaced editor from perl to sed.
- Added %check section with gpg signature source_verification.
- Updated to 1.27.1
* https://nginx.org/en/CHANGES
* Fixed crash in ngx_http_mp4_module via specially crafted mp4 file (CVE-2024-7347).

View File

@ -48,6 +48,7 @@ Patch3: %{name}-conf.patch
Patch4: %{name}-aio.patch
BuildRequires: %{name}-macros
BuildRequires: gcc-c++
BuildRequires: gpg2
BuildRequires: libatomic-ops-devel
BuildRequires: pkgconfig
BuildRequires: sysuser-shadow
@ -148,6 +149,12 @@ copydocs() {
popd
}
%check
GPGTMP=`mktemp -d`
gpg --homedir $GPGTMP -q --no-default-keyring --keyring $GPGTMP/.gpg-keyring --trust-model always --import %{SOURCE2}
gpg --homedir $GPGTMP -q --no-default-keyring --keyring $GPGTMP/.gpg-keyring --trust-model always -q --verify -- %{SOURCE1} %{SOURCE0}
rm -r $GPGTMP
%pre -f %{name}.pre
%service_add_pre %{name}.service