[packages/mozjs60] - BR: libicu-devel, added tests bcond

qboosh qboosh at pld-linux.org
Wed Jan 30 20:45:27 CET 2019


commit b7eba4536010919a501c1f3e01680eb8f61dff92
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 30 20:50:40 2019 +0100

    - BR: libicu-devel, added tests bcond

 mozjs60.spec | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)
---
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
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozjs60.git/commitdiff/b7eba4536010919a501c1f3e01680eb8f61dff92



More information about the pld-cvs-commit mailing list