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