Hello community, here is the log from the commit of package nginx-module-brotli for openSUSE:Factory checked in at 2018-07-25 16:11:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nginx-module-brotli (Old) and /work/SRC/openSUSE:Factory/.nginx-module-brotli.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nginx-module-brotli" Wed Jul 25 16:11:02 2018 rev:2 rq:625072 version:0.0.0+git08092016.MACRO Changes: -------- --- /work/SRC/openSUSE:Factory/nginx-module-brotli/nginx-module-brotli.changes 2018-07-10 16:15:04.309569719 +0200 +++ /work/SRC/openSUSE:Factory/.nginx-module-brotli.new/nginx-module-brotli.changes 2018-07-25 16:11:06.833686573 +0200 @@ -1,0 +2,6 @@ +Tue Jul 24 08:25:06 UTC 2018 - mroste...@suse.de + +- Adjust configure parameters for binary compatibility with nginx + binary package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nginx-module-brotli.spec ++++++ --- /var/tmp/diff_new_pack.cJH9mb/_old 2018-07-25 16:11:07.449687790 +0200 +++ /var/tmp/diff_new_pack.cJH9mb/_new 2018-07-25 16:11:07.449687790 +0200 @@ -16,6 +16,18 @@ # +%if 0%{?suse_version} != 1315 || 0%{?is_opensuse} +%bcond_without libatomic +%else +%bcond_with libatomic +%endif + +%if 0%{?suse_version} > 1220 +%bcond_without pcre_jit +%else +%bcond_with pcre_jit +%endif + %define commit 12529813a9f8475718370a19007c7905601a62ad %define shortcommit %(c=%{commit}; echo ${c:0:7}) %define project_name ngx_brotli @@ -26,14 +38,18 @@ Release: 0 Summary: NGINX module for Brotli compression # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses -License: BSD-2-Clause # FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" +License: BSD-2-Clause Group: Productivity/Networking/Web/Proxy Url: https://github.com/google/%{project_name} Source: https://github.com/google/%{project_name}/archive/%{commit}.tar.gz#/ngx_brotli.tar.gz Patch0: update-brotli-v1.patch BuildRequires: libbrotli-devel BuildRequires: nginx-source +BuildRequires: pcre-devel +%if %{with libatomic} +BuildRequires: libatomic-ops-devel +%endif Requires: nginx = %(rpm -q nginx-source | rev | cut -d. --complement -f1 | cut -d"-" -f2 | rev) %description @@ -59,10 +75,28 @@ # configure macro cannot be used, because this configure script doesn't # accept some options provided by the macro (like i.e. --host). ./configure \ - --with-compat \ - --without-http_rewrite_module \ + --user=nginx --group=nginx \ + --without-select_module \ + --without-poll_module \ --without-http_gzip_module \ - --add-dynamic-module=../%{project_name} + --with-threads \ + --with-file-aio \ + --with-ipv6 \ + --with-pcre \ + %if %{with pcre_jit} + --with-pcre-jit \ + %endif + %if %{with libatomic} + --with-libatomic \ + %endif + --with-compat \ + --add-dynamic-module=../%{project_name} \ +%if 0%{?suse_version} > 1220 + --with-cc-opt="%{optflags} -fPIC -D_GNU_SOURCE -std=gnu99 -fstack-protector" \ + --with-ld-opt="-Wl,-z,relro,-z,now -pie" +%else + --with-cc-opt="%{optflags}" +%endif make modules %install