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