2 # - see this page for deciding switching branch: http://upstream-tracker.org/versions/v8.html
4 # - readline not working in d8 (at least arrows)
7 %bcond_without verbose # verbose build (V=1)
9 Summary: JavaScript Engine by Google
10 Summary(pl.UTF-8): Silnik JavaScript firmy Google
15 Group: Development/Languages
16 # Source0Download: http://gsdview.appspot.com/chromium-browser-official/?marker=v8-3.15.11.17.tar.bz2
17 #Source0: http://commondatastorage.googleapis.com/chromium-browser-official/%{name}-%{version}.tar.bz2
18 Source0: %{name}-%{version}.tar.bz2
19 # Source0-md5: a08c74de1f8d71d309077cb7a640583f
20 Patch0: %{name}-cstdio.patch
21 Patch1: %{name}-strndup.patch
22 Patch3: %{name}-dynlink.patch
23 URL: http://code.google.com/p/v8/
24 BuildRequires: libstdc++-devel >= 5:4.0
25 BuildRequires: python >= 1:2.5
26 BuildRequires: readline-devel
27 BuildRequires: sed >= 4.0
28 Requires: %{name}-libs = %{version}-%{release}
29 ExclusiveArch: %{ix86} %{x8664} arm mips
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define sover %(echo %{version} | cut -d. -f1-2)
35 V8 is Google's open source JavaScript engine. V8 is written in C++ and
36 is used in Google Chrome, the open source browser from Google. V8
37 implements ECMAScript as specified in ECMA-262, 3rd edition.
39 This package contains the V8 developer shell.
41 %description -l pl.UTF-8
42 V8 to mający otwarte źródła silnik JavaScriptu firmy Google. V8 jest
43 napisany w C++ i wykorzystywany w mającej otwarte źródła przeglądarce
44 Google Chrome. V8 implementuje ECMAScript zgodnie ze specyfikacją
47 Ten pakiet zawiera powłokę programistyczną V8.
50 Summary: V8 JavaScript Engine shared library
51 Summary(pl.UTF-8): Biblioteka współdzielona silnika JavaScriptu V8
56 V8 is Google's open source JavaScript engine. V8 is written in C++ and
57 is used in Google Chrome, the open source browser from Google. V8
58 implements ECMAScript as specified in ECMA-262, 3rd edition.
60 This package contains the shared library.
62 %description libs -l pl.UTF-8
63 V8 to mający otwarte źródła silnik JavaScriptu firmy Google. V8 jest
64 napisany w C++ i wykorzystywany w mającej otwarte źródła przeglądarce
65 Google Chrome. V8 implementuje ECMAScript zgodnie ze specyfikacją
68 Ten pakiet zawiera bibliotekę współdzieloną.
71 Summary: Development headers for V8 JavaScript engine
72 Summary(pl.UTF-8): Pliki nagłówkowe silnika JavaScriptu V8
73 Group: Development/Libraries
74 Requires: %{name}-libs = %{version}-%{release}
75 Requires: libstdc++-devel
78 Development headers for V8 JavaScript engine.
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe silnika JavaScriptu V8.
90 ln -s %{_bindir}/gyp build/gyp/gyp
93 # -Wno-unused-local-typedefs is gcc 4.8 workaround: http://code.google.com/p/v8/issues/detail?id=2149
95 component=shared_library \
96 soname_version=%{sover} \
100 LINK="%{__cxx} -fuse-ld=gold" \
101 CFLAGS="%{rpmcflags}" \
102 CXXFLAGS="%{rpmcxxflags} -Wno-unused-local-typedefs" \
103 LDFLAGS="%{rpmldflags}" \
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
110 install -p out/native/lib.target/libv8.so.%{sover} $RPM_BUILD_ROOT%{_libdir}/libv8.so.%{version}
111 ln -sf libv8.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libv8.so.%{sover}
112 ln -sf libv8.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libv8.so
113 cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}
115 install -p out/native/d8 $RPM_BUILD_ROOT%{_bindir}
118 rm -rf $RPM_BUILD_ROOT
120 %post libs -p /sbin/ldconfig
121 %postun libs -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog LICENSE LICENSE.strongtalk LICENSE.valgrind
126 %attr(755,root,root) %{_bindir}/d8
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libv8.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libv8.so.%{sover}
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libv8.so