瀏覽代碼

修改:解压ngx_brotli的方式

呉真 5 年之前
父節點
當前提交
0bf5f3c430
共有 1 個文件被更改,包括 5 次插入7 次删除
  1. 5 7
      nginx-module-brotli.spec

+ 5 - 7
nginx-module-brotli.spec

@@ -26,14 +26,14 @@ Epoch: %{epoch}
 %endif
 
 %define main_version 1.17.6
-%define main_release 1%{?dist}.ngx
+%define main_release 2%{?dist}.ngx
 
 %define bdir %{_builddir}/%{name}-%{main_version}
 
 Summary: nginx Brotli dynamic modules
 Name: nginx-module-brotli
 Version: 1.17.6
-Release: 1%{?dist}.ngx
+Release: 2%{?dist}.ngx
 Vendor: Nginx, Inc.
 URL: http://nginx.org/
 Group: %{_group}
@@ -50,7 +50,7 @@ License: 2-clause BSD-like license
 BuildRoot: %{_tmppath}/%{name}-%{main_version}-%{main_release}-root
 BuildRequires: zlib-devel
 BuildRequires: pcre-devel
-Requires: nginx == %{?epoch:%{epoch}:}1.17.6-1%{?dist}.ngx
+Requires: nginx == %{?epoch:%{epoch}:}1.17.6-2%{?dist}.ngx
 
 %description
 nginx Brotli dynamic modules.
@@ -63,14 +63,12 @@ nginx Brotli dynamic modules.
 %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 MODULE_CONFIGURE_ARGS $(echo "--add-dynamic-module=./ngx_brotli/")
+%define MODULE_CONFIGURE_ARGS $(echo "--add-dynamic-module=./ngx_brotli-1.0.7-1/")
 
 %prep
 %setup -qcTn %{name}-%{main_version}
 tar --strip-components=1 -zxf %{SOURCE0}
-mkdir ngx_brotli
-cd ngx_brotli
-tar --strip-components=1 -zxf %{SOURCE1}
+tar -zxf %{SOURCE1}