|
@@ -39,8 +39,8 @@ URL: http://nginx.org/
|
|
Group: %{_group}
|
|
Group: %{_group}
|
|
|
|
|
|
Source0: https://nginx.org/download/nginx-%{main_version}.tar.gz
|
|
Source0: https://nginx.org/download/nginx-%{main_version}.tar.gz
|
|
-Source1: ngx_brotli-1.0.7-1.tar.gz
|
|
|
|
-Source2: COPYRIGHT
|
|
|
|
|
|
+Source1: COPYRIGHT
|
|
|
|
+Source2: ngx_brotli-1.0.7.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -63,12 +63,12 @@ nginx Brotli dynamic modules.
|
|
%define WITH_LD_OPT -Wl,-z,relro -Wl,-z,now
|
|
%define WITH_LD_OPT -Wl,-z,relro -Wl,-z,now
|
|
|
|
|
|
%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 --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module")
|
|
-%define MODULE_CONFIGURE_ARGS $(echo "--add-dynamic-module=./ngx_brotli-1.0.7-1/")
|
|
|
|
|
|
+%define MODULE_CONFIGURE_ARGS $(echo "--add-dynamic-module=./ngx_brotli/")
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -qcTn %{name}-%{main_version}
|
|
%setup -qcTn %{name}-%{main_version}
|
|
tar --strip-components=1 -zxf %{SOURCE0}
|
|
tar --strip-components=1 -zxf %{SOURCE0}
|
|
-tar -zxf %{SOURCE1}
|
|
|
|
|
|
+tar -zxf %{SOURCE2}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -93,7 +93,7 @@ make %{?_smp_mflags} modules
|
|
cd %{bdir}
|
|
cd %{bdir}
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/doc/nginx-module-brotli
|
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/doc/nginx-module-brotli
|
|
-%{__install} -m 644 -p %{SOURCE2} \
|
|
|
|
|
|
+%{__install} -m 644 -p %{SOURCE1} \
|
|
$RPM_BUILD_ROOT%{_datadir}/doc/nginx-module-brotli/
|
|
$RPM_BUILD_ROOT%{_datadir}/doc/nginx-module-brotli/
|
|
|
|
|
|
|
|
|