]> git.pld-linux.org Git - packages/mozjs68.git/blame - mozjs60.spec
- BR: libicu-devel, added tests bcond
[packages/mozjs68.git] / mozjs60.spec
CommitLineData
b7eba453
JB
1#
2# Conditional build:
3%bcond_without tests # tests build
4
eb785fac
JK
5Summary: SpiderMonkey 60 - JavaScript implementation
6Summary(pl.UTF-8): SpiderMonkey 60 - implementacja języka JavaScript
7Name: mozjs60
8Version: 60.1.0
9Release: 1
10License: MPL v2.0
11Group: Libraries
12Source0: http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-%{version}.tar.bz2
13# Source0-md5: 202f71313e53d9b92e7c578107541539
14Patch0: copy-headers.patch
15Patch1: system-virtualenv.patch
16Patch2: include-configure-script.patch
17URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
b7eba453
JB
18BuildRequires: autoconf2_13 >= 2.13
19# "TestWrappingOperations.cpp:27:1: error: non-constant condition for static assertion" with -fwrapv on gcc 6
20%{?with_tests:BuildRequires: gcc-c++ >= 6:7}
21BuildRequires: libicu-devel >= 59.1
eb785fac
JK
22BuildRequires: libstdc++-devel >= 6:4.4
23BuildRequires: nspr-devel >= 4.9.2
24BuildRequires: perl-base >= 1:5.6
25BuildRequires: pkgconfig
26BuildRequires: python >= 1:2.5
27BuildRequires: python-virtualenv >= 1.9.1-4
28BuildRequires: readline-devel
29BuildRequires: rpm-perlprov
30BuildRequires: rpmbuild(macros) >= 1.294
31BuildRequires: zlib-devel >= 1.2.3
32Requires: nspr >= 4.9.2
33Requires: zlib >= 1.2.3
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37JavaScript Reference Implementation (codename SpiderMonkey). The
38package contains JavaScript runtime (compiler, interpreter,
39decompiler, garbage collector, atom manager, standard classes) and
40small "shell" program that can be used interactively and with .js
41files to run scripts.
42
43%description -l pl.UTF-8
44Wzorcowa implementacja JavaScriptu (o nazwie kodowej SpiderMonkey).
45Pakiet zawiera środowisko uruchomieniowe (kompilator, interpreter,
46dekompilator, odśmiecacz, standardowe klasy) i niewielką powłokę,
47która może być używana interaktywnie lub z plikami .js do uruchamiania
48skryptów.
49
50%package devel
51Summary: Header files for JavaScript reference library
52Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki JavaScript
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Requires: libstdc++-devel
56Requires: nspr-devel >= 4.9.2
57
58%description devel
59Header files for JavaScript reference library.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe do biblioteki JavaScript.
63
64%prep
65%setup -q -n mozjs-%{version}
66%patch0 -p1
67%patch1 -p1
68%patch2 -p1
69
70%build
71export PYTHON="%{__python}"
72export AUTOCONF="%{_bindir}/autoconf2_13"
73export SHELL="/bin/sh"
74cd js/src
75mkdir obj
76cd obj
77
78%define configuredir ".."
79%configure2_13 \
b7eba453
JB
80 --enable-gcgenerational \
81 --disable-jemalloc \
eb785fac 82 --enable-readline \
eb785fac 83 --enable-shared-js \
b7eba453
JB
84 %{!?with_tests:--disable-tests} \
85 --enable-threadsafe \
eb785fac 86 --with-intl-api \
b7eba453
JB
87 --with-system-icu \
88 --with-system-nspr \
89 --with-system-zlib
eb785fac
JK
90
91%{__make} \
92 HOST_OPTIMIZE_FLAGS= \
93 MODULE_OPTIMIZE_FLAGS= \
94 MOZ_OPTIMIZE_FLAGS="-freorder-blocks" \
95 MOZ_PGO_OPTIMIZE_FLAGS= \
96 MOZILLA_VERSION=%{version}
97
eb785fac
JK
98%install
99rm -rf $RPM_BUILD_ROOT
100
101cd js/src/obj
102
103%{__make} -C js/src install \
104 DESTDIR=$RPM_BUILD_ROOT \
105 MOZILLA_VERSION=%{version}
106
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.ajs
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%post -p /sbin/ldconfig
113%postun -p /sbin/ldconfig
114
115%files
116%defattr(644,root,root,755)
117%doc js/src/README.html
118%attr(755,root,root) %{_bindir}/js60
119%attr(755,root,root) %{_libdir}/libmozjs-60.so
120
121%files devel
122%defattr(644,root,root,755)
123%attr(755,root,root) %{_bindir}/js60-config
124%{_includedir}/mozjs-60
125%{_pkgconfigdir}/mozjs-60.pc
This page took 0.085568 seconds and 4 git commands to generate.