From: Jakub Bogusz Date: Wed, 30 Jan 2019 19:50:40 +0000 (+0100) Subject: - BR: libicu-devel, added tests bcond X-Git-Tag: auto/th/mozjs68-68.7.0-1~10 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fmozjs68.git;a=commitdiff_plain;h=b7eba45 - BR: libicu-devel, added tests bcond --- diff --git a/mozjs60.spec b/mozjs60.spec index 872f24e..7bda75d 100644 --- a/mozjs60.spec +++ b/mozjs60.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without tests # tests build + Summary: SpiderMonkey 60 - JavaScript implementation Summary(pl.UTF-8): SpiderMonkey 60 - implementacja języka JavaScript Name: mozjs60 @@ -11,7 +15,10 @@ Patch0: copy-headers.patch Patch1: system-virtualenv.patch Patch2: include-configure-script.patch URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey -BuildRequires: autoconf2_13 +BuildRequires: autoconf2_13 >= 2.13 +# "TestWrappingOperations.cpp:27:1: error: non-constant condition for static assertion" with -fwrapv on gcc 6 +%{?with_tests:BuildRequires: gcc-c++ >= 6:7} +BuildRequires: libicu-devel >= 59.1 BuildRequires: libstdc++-devel >= 6:4.4 BuildRequires: nspr-devel >= 4.9.2 BuildRequires: perl-base >= 1:5.6 @@ -70,15 +77,16 @@ cd obj %define configuredir ".." %configure2_13 \ + --enable-gcgenerational \ + --disable-jemalloc \ --enable-readline \ - --enable-threadsafe \ --enable-shared-js \ - --enable-gcgenerational \ - --with-system-nspr \ - --with-system-icu \ - --with-system-zlib \ + %{!?with_tests:--disable-tests} \ + --enable-threadsafe \ --with-intl-api \ - --disable-jemalloc + --with-system-icu \ + --with-system-nspr \ + --with-system-zlib %{__make} \ HOST_OPTIMIZE_FLAGS= \ @@ -87,8 +95,6 @@ cd obj MOZ_PGO_OPTIMIZE_FLAGS= \ MOZILLA_VERSION=%{version} -cd ../../.. - %install rm -rf $RPM_BUILD_ROOT