From 669abfd1c46260d18b30ff37c667700a6ab191be Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Thu, 19 Apr 2012 16:35:35 +0100 Subject: [PATCH] Update to 1.0.15 and perform hardened build --- nginx.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nginx.spec b/nginx.spec index 3485a75..61611ac 100644 --- a/nginx.spec +++ b/nginx.spec @@ -1,3 +1,4 @@ +%global _hardened_build 1 %global nginx_user nginx %global nginx_group %{nginx_user} %global nginx_home %{_localstatedir}/lib/nginx @@ -9,7 +10,7 @@ Name: nginx Epoch: 1 -Version: 1.0.14 +Version: 1.0.15 Release: 1%{?dist} Summary: A high performance web server and reverse proxy server @@ -34,7 +35,7 @@ Source104: 50x.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 +#Patch0: nginx-auto-cc-gcc.patch BuildRequires: GeoIP-devel BuildRequires: gd-devel @@ -64,7 +65,7 @@ memory usage. %prep %setup -q -%patch0 -p0 +#%patch0 -p0 %build @@ -109,7 +110,7 @@ export DESTDIR=%{buildroot} --with-mail \ --with-mail_ssl_module \ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ - --with-ld-opt="-Wl,-E" # so the perl module finds its symbols + --with-ld-opt="$RPM_LD_FLAGS -Wl,-E" # so the perl module finds its symbols make %{?_smp_mflags} @@ -212,6 +213,11 @@ fi %changelog +* Sat Apr 14 2012 Jamie Nguyen - 1:1.0.14-1 - update to upstream release 1.0.14 - amend some %%changelog formatting