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