]> git.pld-linux.org Git - packages/mozjs68.git/blobdiff - mozjs60.spec
- release 2, rebuild against icu 64
[packages/mozjs68.git] / mozjs60.spec
index 872f24e82a038123f0e6a37366490ddad236f0b8..a4e1ee113b10eb6809405a523b6266d2b43daf41 100644 (file)
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_without tests   # tests build
+
 Summary:       SpiderMonkey 60 - JavaScript implementation
 Summary(pl.UTF-8):     SpiderMonkey 60 - implementacja języka JavaScript
 Name:          mozjs60
 Version:       60.1.0
-Release:       1
+Release:       2
 License:       MPL v2.0
 Group:         Libraries
 Source0:       http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-%{version}.tar.bz2
@@ -10,8 +14,12 @@ Source0:     http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs
 Patch0:                copy-headers.patch
 Patch1:                system-virtualenv.patch
 Patch2:                include-configure-script.patch
+Patch3:                x32.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
@@ -59,26 +67,28 @@ Pliki nagłówkowe do biblioteki JavaScript.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 export PYTHON="%{__python}"
 export AUTOCONF="%{_bindir}/autoconf2_13"
 export SHELL="/bin/sh"
 cd js/src
-mkdir obj
+mkdir -p obj
 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 +97,6 @@ cd obj
        MOZ_PGO_OPTIMIZE_FLAGS= \
        MOZILLA_VERSION=%{version}
 
-cd ../../..
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.101478 seconds and 4 git commands to generate.