Summary: A WebKit powered web browser
Name: chromium-browser
Version: 21.0.1180.57
-Release: 0.1
+Release: 1
License: BSD, LGPL v2+ (ffmpeg)
Group: X11/Applications/Networking
Source0: http://carme.pld-linux.org/~glen/chromium-browser/src/stable/%{name}-%{version}.tar.xz
Patch6: get-webkit_revision.patch
Patch7: dlopen_sonamed_gl.patch
Patch8: chromium_useragent.patch.in
+Patch9: chromium-ppapi.patch
# https://bugs.gentoo.org/show_bug.cgi?id=393471
# libjpeg-turbo >= 1.1.90 supports that feature
Patch11: chromium-revert-jpeg-swizzle-r2.patch
%patch6 -p1
%patch7 -p1
cd src
+%patch9 -p0
%{!?with_libjpegturbo:%patch11 -p0}
%patch15 -p1
%patch16 -p1
install -d linux_x86_newlib/x86_64-nacl/nacl/include/bits
install -d linux_x86_newlib/x86_64-nacl/nacl/include/machine
install -d linux_x86_newlib/x86_64-nacl/nacl/include/sys
+# link newlib toolchain to glibc as well, see gentoo bug #417019
+#ln -s linux_x86_newlib linux_x86
cd linux_x86_newlib/x86_64-nacl/bin
ln -s %{_bindir}/x86_64-nacl-gcc gcc
ln -s %{_bindir}/x86_64-nacl-g++ g++
-Dbuild_ffmpegsumo=%{?with_ffmpegsumo:1}%{!?with_ffmpegsumo:0} \
-Dffmpeg_branding=Chrome \
-Dproprietary_codecs=1 \
- %{!?with_nacl:-Ddisable_nacl=1} \
+%if %{with nacl}
+ %{?_:# Disable glibc Native Client toolchain, we don't need it (gentoo bug #417019).} \
+ -Ddisable_glibc=1 \
+%else
+ -Ddisable_nacl=1 \
+%endif
%{!?with_sse2:-Ddisable_sse2=1} \
%{?with_selinux:-Dselinux=1} \
%{gyp_with cups} \
%endif
cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/resources/extension/demo
+
%if %{with nacl}
# Install Native Client files on platforms that support it.
install -p nacl_helper{,_bootstrap} $RPM_BUILD_ROOT%{_libdir}/%{name}
%{_libdir}/%{name}/locales/en-US.pak
%dir %{_libdir}/%{name}/resources
%{_libdir}/%{name}/resources/inspector
-%dir %{_libdir}/%{name}/resources/extension
-%{_libdir}/%{name}/resources/extension/demo
%dir %{_libdir}/%{name}/themes
%dir %{_libdir}/%{name}/extensions
%dir %{_libdir}/%{name}/plugins
--- /dev/null
+from gentoo chromium-ppapi-r0.patch
+
+--- ppapi/ppapi_untrusted.gyp.orig 2012-06-12 10:20:16.000000000 +0200
++++ ppapi/ppapi_untrusted.gyp 2012-06-12 10:20:52.000000000 +0200
+@@ -80,7 +80,7 @@
+ ],
+ },
+ 'conditions': [
+- ['target_arch!="arm"', {
++ ['target_arch!="arm" and disable_glibc==0', {
+ 'variables': {
+ 'build_glibc': 1,
+ # NOTE: Use /lib, not /lib64 here; it is a symbolic link which