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
cf0b7ee1 9Release: 2
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
30BuildRequires: python-virtualenv >= 1.9.1-4
31BuildRequires: readline-devel
32BuildRequires: rpm-perlprov
33BuildRequires: rpmbuild(macros) >= 1.294
34BuildRequires: zlib-devel >= 1.2.3
2dd63900 35Requires: nspr >= 4.19
eb785fac
JK
36Requires: zlib >= 1.2.3
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40JavaScript Reference Implementation (codename SpiderMonkey). The
41package contains JavaScript runtime (compiler, interpreter,
42decompiler, garbage collector, atom manager, standard classes) and
43small "shell" program that can be used interactively and with .js
44files to run scripts.
45
46%description -l pl.UTF-8
47Wzorcowa implementacja JavaScriptu (o nazwie kodowej SpiderMonkey).
48Pakiet zawiera środowisko uruchomieniowe (kompilator, interpreter,
49dekompilator, odśmiecacz, standardowe klasy) i niewielką powłokę,
50która może być używana interaktywnie lub z plikami .js do uruchamiania
51skryptów.
52
53%package devel
54Summary: Header files for JavaScript reference library
55Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki JavaScript
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
58Requires: libstdc++-devel
2dd63900 59Requires: nspr-devel >= 4.19
eb785fac
JK
60
61%description devel
62Header files for JavaScript reference library.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe do biblioteki JavaScript.
66
67%prep
7e2c7f10 68%setup -q -n firefox-%{version}
eb785fac
JK
69%patch0 -p1
70%patch1 -p1
71%patch2 -p1
9ffe2780 72%patch3 -p1
4e515346 73%patch4 -p1
eb785fac
JK
74
75%build
76export PYTHON="%{__python}"
77export AUTOCONF="%{_bindir}/autoconf2_13"
78export SHELL="/bin/sh"
79cd js/src
9ffe2780 80mkdir -p obj
eb785fac
JK
81cd obj
82
83%define configuredir ".."
84%configure2_13 \
b7eba453
JB
85 --enable-gcgenerational \
86 --disable-jemalloc \
eb785fac 87 --enable-readline \
eb785fac 88 --enable-shared-js \
b7eba453
JB
89 %{!?with_tests:--disable-tests} \
90 --enable-threadsafe \
eb785fac 91 --with-intl-api \
b7eba453
JB
92 --with-system-icu \
93 --with-system-nspr \
94 --with-system-zlib
eb785fac
JK
95
96%{__make} \
97 HOST_OPTIMIZE_FLAGS= \
98 MODULE_OPTIMIZE_FLAGS= \
99 MOZ_OPTIMIZE_FLAGS="-freorder-blocks" \
100 MOZ_PGO_OPTIMIZE_FLAGS= \
101 MOZILLA_VERSION=%{version}
102
eb785fac
JK
103%install
104rm -rf $RPM_BUILD_ROOT
105
106cd js/src/obj
107
108%{__make} -C js/src install \
109 DESTDIR=$RPM_BUILD_ROOT \
110 MOZILLA_VERSION=%{version}
111
112%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.ajs
113
114%clean
115rm -rf $RPM_BUILD_ROOT
116
117%post -p /sbin/ldconfig
118%postun -p /sbin/ldconfig
119
120%files
121%defattr(644,root,root,755)
122%doc js/src/README.html
01a33564
JR
123%attr(755,root,root) %{_bindir}/js68
124%attr(755,root,root) %{_libdir}/libmozjs-68.so
eb785fac
JK
125
126%files devel
127%defattr(644,root,root,755)
01a33564
JR
128%attr(755,root,root) %{_bindir}/js68-config
129%{_includedir}/mozjs-68
130%{_pkgconfigdir}/mozjs-68.pc
This page took 0.127067 seconds and 4 git commands to generate.