- BR: libicu-devel, added tests bcond
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Jan 2019 19:50:40 +0000 (20:50 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Jan 2019 19:50:40 +0000 (20:50 +0100)
mozjs60.spec

index 872f24e82a038123f0e6a37366490ddad236f0b8..7bda75d04a2810ac79fa7f66512afcf4732cc28f 100644 (file)
@@ -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
 
This page took 0.054576 seconds and 4 git commands to generate.