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