diff --git a/nginx.spec b/nginx.spec index 2dfe15f..a5b26cd 100644 --- a/nginx.spec +++ b/nginx.spec @@ -102,7 +102,7 @@ tar -xf %{SOURCE10} %build %global optflags %{optflags} -fno-strict-aliasing -%setup_compile_flags +%set_build_flags ./configure \ --user=%{nginx_user} \ --group=%{nginx_group} \ @@ -144,10 +144,10 @@ tar -xf %{SOURCE10} # this is only passed to perl module being built and only overrides the # default '-O' flag which anyways lowers optimizations (which we don't # want) -%make OPTIMIZE="-fno-PIE" +%make_build OPTIMIZE="-fno-PIE" %install -%makeinstall_std INSTALLDIRS=vendor +%make_install INSTALLDIRS=vendor find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;