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