]>
Commit | Line | Data |
---|---|---|
d671350a ER |
1 | # NOTES |
2 | # - see this page for deciding switching branch: http://upstream-tracker.org/versions/v8.html | |
f852d988 | 3 | # TODO |
4d92292d | 4 | # - readline not working in d8 (at least arrows) |
2264b152 ER |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without verbose # verbose build (V=1) | |
8 | ||
855c3a42 JB |
9 | Summary: JavaScript Engine by Google |
10 | Summary(pl.UTF-8): Silnik JavaScript firmy Google | |
b8bbb50f | 11 | Name: v8 |
2cc5e706 | 12 | Version: 3.15.11.18 |
8620f99e | 13 | Release: 1 |
855c3a42 | 14 | License: BSD |
2264b152 | 15 | Group: Development/Languages |
60c4bab2 | 16 | # Source0Download: http://gsdview.appspot.com/chromium-browser-official/?marker=v8-3.15.11.17.tar.bz2 |
2cc5e706 ER |
17 | #Source0: http://commondatastorage.googleapis.com/chromium-browser-official/%{name}-%{version}.tar.bz2 |
18 | Source0: %{name}-%{version}.tar.bz2 | |
19 | # Source0-md5: a08c74de1f8d71d309077cb7a640583f | |
855c3a42 JB |
20 | Patch0: %{name}-cstdio.patch |
21 | Patch1: %{name}-strndup.patch | |
855c3a42 JB |
22 | Patch3: %{name}-dynlink.patch |
23 | URL: http://code.google.com/p/v8/ | |
2a373d08 | 24 | BuildRequires: gyp |
982929a0 | 25 | BuildRequires: libstdc++-devel >= 5:4.0 |
e111b3e4 | 26 | BuildRequires: python >= 1:2.5 |
7594b47f | 27 | BuildRequires: readline-devel |
855c3a42 | 28 | BuildRequires: sed >= 4.0 |
c9aae908 | 29 | Requires: %{name}-libs = %{version}-%{release} |
60c4bab2 | 30 | ExclusiveArch: %{ix86} %{x8664} arm mips |
b8bbb50f AM |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
035f4755 | 33 | %define sover %(echo %{version} | cut -d. -f1-2) |
855c3a42 | 34 | |
b8bbb50f AM |
35 | %description |
36 | V8 is Google's open source JavaScript engine. V8 is written in C++ and | |
37 | is used in Google Chrome, the open source browser from Google. V8 | |
38 | implements ECMAScript as specified in ECMA-262, 3rd edition. | |
39 | ||
855c3a42 JB |
40 | This package contains the V8 developer shell. |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | V8 to mający otwarte źródła silnik JavaScriptu firmy Google. V8 jest | |
44 | napisany w C++ i wykorzystywany w mającej otwarte źródła przeglądarce | |
45 | Google Chrome. V8 implementuje ECMAScript zgodnie ze specyfikacją | |
46 | ECMA-262, edycja 3. | |
47 | ||
48 | Ten pakiet zawiera powłokę programistyczną V8. | |
37bf3af8 ER |
49 | |
50 | %package libs | |
51 | Summary: V8 JavaScript Engine shared library | |
855c3a42 | 52 | Summary(pl.UTF-8): Biblioteka współdzielona silnika JavaScriptu V8 |
37bf3af8 ER |
53 | Group: Libraries |
54 | Conflicts: v8 < 2.0.0 | |
55 | ||
56 | %description libs | |
57 | V8 is Google's open source JavaScript engine. V8 is written in C++ and | |
58 | is used in Google Chrome, the open source browser from Google. V8 | |
59 | implements ECMAScript as specified in ECMA-262, 3rd edition. | |
60 | ||
61 | This package contains the shared library. | |
62 | ||
855c3a42 JB |
63 | %description libs -l pl.UTF-8 |
64 | V8 to mający otwarte źródła silnik JavaScriptu firmy Google. V8 jest | |
65 | napisany w C++ i wykorzystywany w mającej otwarte źródła przeglądarce | |
66 | Google Chrome. V8 implementuje ECMAScript zgodnie ze specyfikacją | |
67 | ECMA-262, edycja 3. | |
68 | ||
69 | Ten pakiet zawiera bibliotekę współdzieloną. | |
70 | ||
b8bbb50f | 71 | %package devel |
855c3a42 JB |
72 | Summary: Development headers for V8 JavaScript engine |
73 | Summary(pl.UTF-8): Pliki nagłówkowe silnika JavaScriptu V8 | |
b8bbb50f | 74 | Group: Development/Libraries |
37bf3af8 | 75 | Requires: %{name}-libs = %{version}-%{release} |
855c3a42 | 76 | Requires: libstdc++-devel |
b8bbb50f AM |
77 | |
78 | %description devel | |
855c3a42 JB |
79 | Development headers for V8 JavaScript engine. |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe silnika JavaScriptu V8. | |
b8bbb50f AM |
83 | |
84 | %prep | |
ce2a821c | 85 | %setup -q |
855c3a42 JB |
86 | %patch0 -p1 |
87 | %patch1 -p1 | |
ffa963bd | 88 | %patch3 -p1 |
b8bbb50f | 89 | |
2cc5e706 ER |
90 | install -d build/gyp |
91 | ln -s %{_bindir}/gyp build/gyp/gyp | |
1a3015af | 92 | |
b8bbb50f | 93 | %build |
1a3015af | 94 | # -Wno-unused-local-typedefs is gcc 4.8 workaround: http://code.google.com/p/v8/issues/detail?id=2149 |
2264b152 ER |
95 | %{__make} -r native \ |
96 | component=shared_library \ | |
60c4bab2 | 97 | soname_version=%{sover} \ |
2264b152 ER |
98 | console=readline \ |
99 | CC="%{__cc}" \ | |
100 | CXX="%{__cxx}" \ | |
ec2b48cc | 101 | LINK="%{__cxx} -fuse-ld=gold" \ |
2264b152 | 102 | CFLAGS="%{rpmcflags}" \ |
1a3015af | 103 | CXXFLAGS="%{rpmcxxflags} -Wno-unused-local-typedefs" \ |
2264b152 ER |
104 | LDFLAGS="%{rpmldflags}" \ |
105 | %{?with_verbose:V=1} | |
c894b44e | 106 | |
b8bbb50f AM |
107 | %install |
108 | rm -rf $RPM_BUILD_ROOT | |
5e90f260 | 109 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}} |
855c3a42 | 110 | |
c265e165 A |
111 | install -p out/native/lib.target/libv8.so.%{sover} $RPM_BUILD_ROOT%{_libdir}/libv8.so.%{version} |
112 | ln -sf libv8.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libv8.so.%{sover} | |
113 | ln -sf libv8.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libv8.so | |
f852d988 | 114 | cp -p include/*.h $RPM_BUILD_ROOT%{_includedir} |
b8bbb50f | 115 | |
c265e165 | 116 | install -p out/native/d8 $RPM_BUILD_ROOT%{_bindir} |
b8bbb50f AM |
117 | |
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
37bf3af8 ER |
121 | %post libs -p /sbin/ldconfig |
122 | %postun libs -p /sbin/ldconfig | |
b8bbb50f AM |
123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
855c3a42 | 126 | %doc AUTHORS ChangeLog LICENSE LICENSE.strongtalk LICENSE.valgrind |
4d92292d | 127 | %attr(755,root,root) %{_bindir}/d8 |
37bf3af8 ER |
128 | |
129 | %files libs | |
982929a0 | 130 | %defattr(644,root,root,755) |
c894b44e | 131 | %attr(755,root,root) %{_libdir}/libv8.so.*.*.* |
035f4755 | 132 | %attr(755,root,root) %ghost %{_libdir}/libv8.so.%{sover} |
b8bbb50f AM |
133 | |
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
c894b44e | 136 | %attr(755,root,root) %{_libdir}/libv8.so |
855c3a42 | 137 | %{_includedir}/v8*.h |