%define crname chromium-browser %define _crdir %{_libdir}/%{crname} %define _src %{_topdir}/SOURCES %define basever 30.0.1599.66 %define patchver() ([ -f %{_sourcedir}/patch-%1-%2.diff.xz ] || exit 1; xz -dc %{_sourcedir}/patch-%1-%2.diff.xz|patch -p1); # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys # Note: these are for Mageia use ONLY. # For your own builds, please get your own set of keys. %define google_api_key AIzaSyCV9AOzytWwWCtNE8f7ZV56fP1u9yWwhVU %define google_default_client_id 1039996407057.apps.googleusercontent.com %define google_default_client_secret mLT8XooDODav1OJG5G3bY61d %define build_plf 0 %if "%distro_section" == "tainted" %global build_plf 1 %endif Name: chromium-browser-stable Version: %{basever} Release: %mkrel 1 Summary: A fast webkit-based web browser Group: Networking/WWW License: BSD, LGPL Source0: http://gsdview.appspot.com/chromium-browser-official/chromium-%{basever}.tar.xz Source1: chromium-wrapper Source2: chromium-browser.desktop Provides: %{crname} Obsoletes: chromium-browser-unstable < 26.0.1410.51 Obsoletes: chromium-browser-beta < 26.0.1410.51 Obsoletes: chromium-browser < 1:9.0.597.94 BuildRequires: bison, flex, gtk2-devel, atk-devel, libexpat-devel, gperf BuildRequires: libnspr-devel, libnss-devel, libalsa-devel BuildRequires: libglib2-devel, libbzip2-devel, libz-devel, libpng-devel BuildRequires: libjpeg-devel, libmesagl-devel, libmesaglu-devel BuildRequires: libxscrnsaver-devel, libdbus-glib-devel, libcups-devel BuildRequires: libgnome-keyring-devel libvpx-devel libxtst-devel BuildRequires: libxslt-devel libxml2-devel libxt-devel libpam-devel BuildRequires: libevent-devel libflac-devel libpulseaudio-devel BuildRequires: perl-Switch, libgnutls-devel BuildRequires: libelfutils-devel BuildRequires: udev-devel BuildRequires: speex-devel BuildRequires: minizip-devel BuildRequires: protobuf-devel BuildRequires: yasm BuildRequires: pkgconfig(libusb-1.0) BuildRequires: speech-dispatcher-devel BuildRequires: pkgconfig(libpci) ExclusiveArch: i586 x86_64 armel %description Chromium is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. This is the stable channel Chromium browser. It offers a rock solid browser which is updated with features and fixes once they have been thoroughly tested. If you want the latest features, install the chromium-browser-unstable package instead. %package -n chromium-browser Summary: A fast webkit-based web browser (transition package) Epoch: 1 Group: Networking/WWW Requires: %{name} = %{version}-%{release} %description -n chromium-browser Chromium is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. This is a transition package that installs the stable channel Chromium browser. If you prefer the dev channel browser, install the chromium-browser-unstable package instead. %prep %setup -q -n chromium-%{basever} # Hard code extra version FILE=chrome/common/chrome_version_info_posix.cc sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{product_vendor} %{product_version}"/' $FILE cmp $FILE $FILE.orig && exit 1 %build # # We need to find why even if building w -Duse_system_libpng=0, this is built with third party libpng. # We able bundle one in stable release for now and will work on beta with system libpng # export GYP_GENERATORS=make build/gyp_chromium --depth=. \ -Dlinux_sandbox_path=%{_crdir}/chrome-sandbox \ -Dlinux_sandbox_chrome_path=%{_crdir}/chrome \ -Dlinux_link_gnome_keyring=0 \ -Duse_gconf=0 \ -Dwerror='' \ -Duse_system_sqlite=0 \ -Duse_system_libxml=1 \ -Duse_system_zlib=1 \ -Duse_system_bzip2=1 \ -Duse_system_xdg_utils=1 \ -Duse_system_libpng=1 \ -Duse_system_libjpeg=1 \ -Duse_system_libevent=1 \ -Duse_system_flac=1 \ -Duse_system_vpx=0 \ -Duse_system_icu=0 \ -Duse_system_libusb=1 \ -Dlinux_use_tcmalloc=0 \ -Duse_system_minizip=1 \ -Duse_system_protobuf=1 \ -Ddisable_nacl=1 \ %if %{build_plf} -Dproprietary_codecs=1 \ -Dffmpeg_branding=Chrome \ %else -Dproprietary_codecs=0 \ %endif -Duse_system_speex=1 \ %ifarch i586 -Ddisable_sse2=1 \ -Drelease_extra_cflags="-march=i586" \ %endif -Dgoogle_api_key=%{google_api_key} \ -Dgoogle_default_client_id=%{google_default_client_id} \ -Dgoogle_default_client_secret=%{google_default_client_secret} \ # Note: DON'T use system sqlite (3.7.3) -- it breaks history search %make chrome chrome_sandbox BUILDTYPE=Release %install ls out/Release mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_crdir}/locales mkdir -p %{buildroot}%{_crdir}/themes mkdir -p %{buildroot}%{_crdir}/default_apps mkdir -p %{buildroot}%{_mandir}/man1 install -m 755 %{_sourcedir}/chromium-wrapper %{buildroot}%{_crdir}/ install -m 755 out/Release/chrome %{buildroot}%{_crdir}/ install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox install -m 644 out/Release/chrome.1 %{buildroot}%{_mandir}/man1/%{crname}.1 install -m 644 out/Release/chrome.pak %{buildroot}%{_crdir}/ install -m 755 out/Release/libffmpegsumo.so %{buildroot}%{_crdir}/ #install -m 755 out/Release/libppGoogleNaClPluginChrome.so %{buildroot}%{_crdir}/ #install -m 755 out/Release/nacl_helper_bootstrap %{buildroot}%{_crdir}/ #install -m 755 out/Release/nacl_helper %{buildroot}%{_crdir}/ #install -m 644 out/Release/nacl_irt_*.nexe %{buildroot}%{_crdir}/ install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/ install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/ install -m 644 out/Release/content_resources.pak %{buildroot}%{_crdir}/ #install -m 644 out/Release/theme_resources_standard.pak %{buildroot}%{_crdir}/ #install -m 644 out/Release/ui_resources_standard.pak %{buildroot}%{_crdir}/ install -m 644 out/Release/chrome_100_percent.pak %{buildroot}%{_crdir}/ #install -m 644 out/Release/chrome_remote_desktop.pak %{buildroot}%{_crdir}/ install -m 644 chrome/browser/resources/default_apps/* %{buildroot}%{_crdir}/default_apps/ ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname} find out/Release/resources/ -name "*.d" -exec rm {} \; cp -r out/Release/resources %{buildroot}%{_crdir} # Strip NaCl IRT #./native_client/toolchain/linux_x86_newlib/bin/x86_64-nacl-strip --strip-debug %{buildroot}%{_crdir}/nacl_irt_x86_64.nexe #./native_client/toolchain/linux_x86_newlib/bin/i686-nacl-strip --strip-debug %{buildroot}%{_crdir}/nacl_irt_x86_32.nexe # desktop file mkdir -p %{buildroot}%{_datadir}/applications install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/ # icon for i in 22 24 48 64 128 256; do mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps install -m 644 chrome/app/theme/chromium/product_logo_$i.png \ %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png done for i in 16 26 32; do mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps install -m 644 chrome/app/theme/default_100_percent/chromium/product_logo_$i.png \ %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png done %files -n chromium-browser %files %{_bindir}/%{crname} %{_crdir}/chromium-wrapper %{_crdir}/chrome %{_crdir}/chrome-sandbox %{_crdir}/chrome.pak %{_crdir}/libffmpegsumo.so #%{_crdir}/libppGoogleNaClPluginChrome.so #%{_crdir}/nacl_helper_bootstrap #%{_crdir}/nacl_helper #%{_crdir}/nacl_irt_*.nexe %{_crdir}/locales %{_crdir}/content_resources.pak #%{_crdir}/theme_resources_standard.pak #%{_crdir}/ui_resources_standard.pak #%{_crdir}/chrome_remote_desktop.pak %{_crdir}/chrome_100_percent.pak %{_crdir}/resources.pak %{_crdir}/resources %{_crdir}/themes %{_crdir}/default_apps %{_mandir}/man1/%{crname}* %{_datadir}/applications/*.desktop %{_iconsdir}/hicolor/*/apps/%{crname}.png %changelog * Wed Oct 09 2013 luigiwalser <luigiwalser> 30.0.1599.66-1.mga2 + Revision: 493828 - 30.0.1599.66 - 29.0.1547.65 - 28.0.1500.95 - add API keys (mga#9851) - 28.0.1500.71 + dmorgan <dmorgan> - New version - New version - New version ( mga #9703) - New version Enable system minizip - New version - New version - new upstream release 20.0.1132.57 (145807) * [129898] High CVE-2012-2842: Use-after-free in counter handling * [130595] High CVE-2012-2843: Use-after-free in layout height tracking * [133450] High CVE-2012-2844: Bad object access with JavaScript in PDF - use system yasm, flac and speex - New version 20.0.1132.43 - Fix build - new upstream release 18.0.1025.168 * [109574] Medium CVE-2011-3058: Bad interaction possibly leading to XSS in EUC-JP * [112317] Medium CVE-2011-3059: Out-of-bounds read in SVG text handling * [114056] Medium CVE-2011-3060: Out-of-bounds read in text fragment handling * [116398] Medium CVE-2011-3061: SPDY proxy certificate checking error * [116524] High CVE-2011-3062: Off-by-one in OpenType Sanitizer * [117417] Low CVE-2011-3063: Validate navigation requests from the renderer more carefully * [117471] High CVE-2011-3064: Use-after-free in SVG clipping * [117588] High CVE-2011-3065: Memory corruption in Skia * [117794] Medium CVE-2011-3057: Invalid read in v8 * fix black screen on Hybrid Graphics system with GPU accelerated compositing enabled (Issue: 117371) * fix CSS not applied to <content> element (Issue: 114667) * fix Regression rendering a div with background gradient and borders (Issue: 113726) * fix Canvas 2D line drawing bug with GPU acceleration (Issue: 121285) * fix Multiple crashes (Issues: 72235, 116825 and 92998) * fix Pop-up dialog is at wrong position (Issue: 116045) * fix HTML Canvas patterns are broken if you change the transformation matrix (Issue: 112165) * fix SSL interstitial error "proceed anyway" / "back to safety" buttons don't work (Issue: 119252) * [106577] Medium CVE-2011-3066: Out-of-bounds read in Skia clipping * [117583] Medium CVE-2011-3067: Cross-origin iframe replacement * [117698] High CVE-2011-3068: Use-after-free in run-in handling * [117728] High CVE-2011-3069: Use-after-free in line box handling * [118185] High CVE-2011-3070: Use-after-free in v8 bindings * [118273] High CVE-2011-3071: Use-after-free in HTMLMediaElement * [118467] Low CVE-2011-3072: Cross-origin violation parenting pop-up window * [118593] High CVE-2011-3073: Use-after-free in SVG resource handling * [119281] Medium CVE-2011-3074: Use-after-free in media handling * [119525] High CVE-2011-3075: Use-after-free applying style command * [120037] High CVE-2011-3076: Use-after-free in focus handling * [120189] Medium CVE-2011-3077: Read-after-free in script bindings * [106413] High CVE-2011-3078: Use after free in floats handling * [117110] High CVE-2012-1521: Use after free in xml parser * [117627] Medium CVE-2011-3079: IPC validation failure * [121726] Medium CVE-2011-3080: Race condition in sandbox IPC * [121899] High CVE-2011-3081: Use after free in floats handling + dams <dams> - add back some 'x-scheme-handler' to allow the app to be used as a default application in GNOME3 * Tue Mar 06 2012 tv <tv> 17.0.963.65-1.mga2 + Revision: 220614 - new release * Sat Jan 28 2012 tv <tv> 16.0.912.77-1.mga2 + Revision: 202429 - new release + dmorgan <dmorgan> - Own %%{_crdir} * Fri Jan 06 2012 tv <tv> 16.0.912.75-1.mga2 + Revision: 192710 - new release + dams <dams> - add some 'x-scheme-handler' to allow the app to be used as a default application in GNOME3 * Wed Dec 14 2011 dmorgan <dmorgan> 16.0.912.63-1.mga2 + Revision: 181433 - New version * Mon Nov 14 2011 tv <tv> 15.0.874.120-1.mga2 + Revision: 167581 - new release - only include glib.h directly - new release * Tue Oct 25 2011 dmorgan <dmorgan> 15.0.874.102-1.mga2 + Revision: 158109 - New version 15.0.874.102 * Fri Oct 07 2011 tv <tv> 14.0.835.202-1.mga2 + Revision: 152697 - new release * Sat Sep 17 2011 dmorgan <dmorgan> 14.0.835.163-1.mga2 + Revision: 144568 - Drop libpng patch, merged upstream - Fix version - New version 14.0.794.0 * Mon Sep 12 2011 fwang <fwang> 13.0.782.220-2.mga2 + Revision: 142721 - fix build with libpng1.5 - rebuild for new libpng * Mon Sep 05 2011 dmorgan <dmorgan> 13.0.782.220-1.mga2 + Revision: 138669 - Do not apply P3: Fix build - Fix typo - new upstream release 13.0.782.220 (99552) * revoking trust for SSL certificates issued by DigiNotar-controlled intermediate CAs used by the Dutch PKIoverheid program + tv <tv> - new release - new release * Wed Jun 29 2011 tv <tv> 12.0.742.112-1.mga2 + Revision: 116116 - BuildRequires: perl-Switch - new release * Thu Jun 09 2011 tv <tv> 12.0.742.91-1.mga2 + Revision: 102682 - new upstream release 12.0.742.91 (stable) * Wed May 18 2011 tv <tv> 11.0.696.68-1.mga1 + Revision: 99600 - new upstream release 11.0.696.68 (stable) - security fixes * [64046] High CVE-2011-1799: Bad casts in Chromium WebKit glue. * [80608] High CVE-2011-1800: Integer overflows in SVG filters. * Sat May 07 2011 tv <tv> 11.0.696.65-1.mga1 + Revision: 95741 - new upstream release 11.0.696.65 (stable) * Fri Apr 29 2011 tv <tv> 11.0.696.57-1.mga1 + Revision: 93388 - new upstream release 11.0.696.57 (stable) (detailed changelog at http://goo.gl/arI9m) * Fri Apr 15 2011 tv <tv> 10.0.648.205-1.mga1 + Revision: 85803 - new upstream release 10.0.648.205 (stable) (detailed changelog at http://goo.gl/wJg8b) * Wed Apr 06 2011 tv <tv> 10.0.648.204-1.mga1 + Revision: 80981 - new upstream release 10.0.648.204 (stable) - BuildRequires: libevent-devel speex-devel - fix a group * Tue Mar 22 2011 tv <tv> 10.0.648.151-1.mga1 + Revision: 75407 - new upstream release 10.0.648.151 (stable) * blacklist a small number of HTTPS certificates * Wed Mar 16 2011 tv <tv> 10.0.648.133-1.mga1 + Revision: 72787 - imported package chromium-browser-stable * Sat Mar 12 2011 Claudio Matsuoka <claudio@mandriva.com> 10.0.648.133-1mdv2011.0 + Revision: 644042 - new upstream release 10.0.648.133 (stable) * [CVE-2011-1290] fix memory corruption in style handling - check presence of patch files * Fri Mar 11 2011 Claudio Matsuoka <claudio@mandriva.com> 10.0.648.127-2 + Revision: 643848 - apply patches correctly * Wed Mar 09 2011 Claudio Matsuoka <claudio@mandriva.com> 10.0.648.127-1 + Revision: 643105 - new upstream release 10.0.648.127 (stable) * New version of V8 which greatly improves javascript performance * New settings pages that open in a tab, rather than a dialog box * Improved security with malware reporting and disabling outdated plugins by default * Password sync as part of Chrome Sync now enabled by default * GPU Accelerated Video * Background WebApps * webNavigation extension API - annoucement and security fix list: http://goo.gl/PWdBi - move chromium patch 10.0.648.114 from beta channel to stable - move chromium patch 10.0.648.82 from beta channel to stable - move chromium patch 10.0.648.127 from beta channel to stable - move chromium patch 10.0.648.126 from beta channel to stable - move chromium 10.0.648.45 from beta channel to stable - move patch from beta channel to stable - move patch from beta channel to stable * Tue Mar 01 2011 Claudio Matsuoka <claudio@mandriva.com> 9.0.597.107-1 + Revision: 641075 - new upstream release 9.0.597.107 (stable) - contains security fixes, see detais at http://goo.gl/rkTSm - add beta browser to the downgrade notice in spec description * Sat Feb 12 2011 Claudio Matsuoka <claudio@mandriva.com> 9.0.597.98-1 + Revision: 637364 - new upstream version 9.0.597.98 - add conflicts to beta channel browser - add obsoletes entry for old (canary) chromium-browser package * Thu Feb 10 2011 Claudio Matsuoka <claudio@mandriva.com> 9.0.597.94-1 + Revision: 637082 - imported package chromium-browser-stable