Hello community, here is the log from the commit of package nginx-module-vts for openSUSE:Factory checked in at 2018-07-25 16:12:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nginx-module-vts (Old) and /work/SRC/openSUSE:Factory/.nginx-module-vts.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nginx-module-vts" Wed Jul 25 16:12:21 2018 rev:2 rq:625086 version:0.1.16 Changes: -------- --- /work/SRC/openSUSE:Factory/nginx-module-vts/nginx-module-vts.changes 2018-07-10 16:14:37.685611090 +0200 +++ /work/SRC/openSUSE:Factory/.nginx-module-vts.new/nginx-module-vts.changes 2018-07-25 16:12:34.305859156 +0200 @@ -1,0 +2,6 @@ +Tue Jul 24 09:12:58 UTC 2018 - [email protected] + +- Adjust configure parameters for binary compatibility with nginx + binary package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nginx-module-vts.spec ++++++ --- /var/tmp/diff_new_pack.ZmeGaa/_old 2018-07-25 16:12:36.737863944 +0200 +++ /var/tmp/diff_new_pack.ZmeGaa/_new 2018-07-25 16:12:36.741863953 +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 project_name nginx-module-vts %define nginx_moduledir %{_libdir}/nginx/modules @@ -28,6 +40,10 @@ Url: https://github.com/vozlt/%{project_name} Source: https://github.com/vozlt/%{project_name}/archive/v%{version}.tar.gz#/%{project_name}-%{version}.tar.gz 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 @@ -46,10 +62,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
