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