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