Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > f5a2d348875a82e92e9aab3aebacb9c1 > files > 46

chromium-browser-stable-78.0.3904.87-1.mga7.src.rpm

# eu-strip crashes on chrome binary from this build
%define _enable_debug_packages %{nil}
%global debug_package          %{nil}
%global __debug_install_post   %{nil}

%global use_clang 0
%global	system_icu 0
%global system_openjpeg 1
%global system_libtiff 1
%global system_libvpx 0
# system libevent causes the renderer to get stuck
%global system_libevent 0

%if %{system_icu}
%define gn_icu icu
%endif
%if %{system_libvpx}
%define gn_libvpx libvpx
%endif
%if %{system_libevent}
%define gn_libevent libevent
%endif
%if %{use_clang}
%define gn_clang is_clang=true
%else
%define gn_clang is_clang=false
%endif

%define crname chromium-browser
%define _crdir %{_libdir}/%{crname}
%define __requires_exclude_from ^%{_crdir}/libwidevinecdmadapter.so$

# eol 'fix' corrupts some .bin
%define dont_fix_eol 1

# 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 AIzaSyDhhIHB_kQZodiWr8yDAm8E3GwEyiXmuDU
%define    google_default_client_id 1039996407057-q599ngv7i6ni4sbkd2fsns30246r9s9v.apps.googleusercontent.com
%define    google_default_client_secret mRHXPjlS4cLpp1beCiXoYbLZ

Name:		chromium-browser-stable
Version:	78.0.3904.87
Release:	%mkrel 1
Summary:	A fast webkit-based web browser
Group:		Networking/WWW
License:	BSD, LGPL
URL:		http://www.chromium.org/Home
#		http://omahaproxy.appspot.com/
#		http://googlechromereleases.blogspot.com/
Source0:	http://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz
Source1:	chromium-wrapper
Source2:	chromium-browser.desktop
Source4:	widevine_cdm_version.h.in
# from gentoo: compiler setup
Patch1:		chromium-compiler-r4.patch
# fix googleisms in man page
Patch2:		chromium-mageia.patch
# (cjw) Recognize mimetypes for matroska (.mkv) and AVI (.avi) formats (video/x-matroska and audio/x-matroska, video/x-msvideo) + handle A52 "AC3" and DTS compressed audio.
Patch6:		chromium-55-extra-media.patch
# (cjw) [1/2] Recognize mimetypes for WMV (.wmv), FLV (.flv) and MPEG (.mpg) videos
Patch7:		chromium-40-wmvflvmpg.patch
# (cjw) [2/2] Handle more video codecs.
Patch8:		chromium-40-sorenson-spark.patch
# (cjw) disable external components -- this stops chromium from downloading hotword stuff, for example
Patch10:	chromium-45-no-external-components.patch
# (debian) disable third party cookies by default
Patch11:	chromium-third-party-cookies-off-by-default.patch
# (cjw) fix build error due to android-specific code
Patch19:	chromium-50-codec-warnings.patch
# (cjw) remove assertion on "chromium" branding in combination with enabled "proprietary codecs"
Patch22:	chromium-54-proprietary-codecs-assert.patch
# (cjw) disable werror for a compilation warning that causes the build to fail
Patch23:	chromium-53-bignum-werror-fix.patch
# (cjw) add -Wno-error=depecated-declarations because ffmpeg deprecations cause the build to fail
Patch24:	chromium-53-ffmpeg-no-deprecation-errors.patch
# (cjw) link several libraries directly instead of loading them using dlopen()
Patch27:	chromium-53-link-libgio-libpci-libudev-libbrlapi.patch
# (cjw) add missing unbundle gn files (1)
Patch28:	chromium-53-gn-system-icu-jsoncpp.patch
# (cjw) add missing unbundle gn files (2)
Patch29:	chromium-53-gn-system-opus.patch
%if %{system_libtiff}
# (cjw) build pdfium with system libtiff
Patch30:	chromium-52-pdfium-system-libtiff-libpng.patch
%endif
%if %{system_openjpeg}
# (cjw) fix pdfium build with system openjpeg
Patch31:	chromium-74-pdfium-system-libopenjpeg2.patch
%endif
# (cjw) fix build with current glib...
Patch36:	chromium-58-glib.patch
# (cjw) use system nodejs to fix build
Patch37:	chromium-58-system-nodejs.patch
# (cjw) redefined macro
Patch40:	chromium-59-gcc5.patch
# (cjw) fix coding errors resulting in gcc 7 warning
Patch54:	chromium-62-gcc7.patch
# (cjw) fix gcc errors and warnings
Patch177:	chromium-64-gcc7.patch
# (cjw) fix even more gcc warnings
Patch179:	chromium-65-gcc7.patch
# (cjw) fix yet mmore gcc warnings
Patch182:	chromium-66-gcc7.patch
# (cjw) try to get widevine binary plugin to work (must be taken from a chrome download bundle), v2
Patch183:	chromium-67-widevine.patch
# (cjw) fix a few more gcc warnings
Patch184:	chromium-67-gcc7.patch
# (cjw) more gcc warnings
Patch186:	chromium-68-gcc7.patch
# (cjw) moore gcc warnings
Patch188:	chromium-68-gcc8.patch
# (cjw) and more gcc warnings
Patch189:	chromium-69-gcc7.patch
# (cjw) fix gn bootstrapping with gcc
Patch190:	chromium-69-gn-bootstrap.patch
# (cjw) moooore gcc warnings
Patch192:	chromium-70-gcc8.patch
# (cjw) build fixes for 64-bit arm
Patch193:	chromium-70-aarch64.patch
# (joequant) fix crash on cinnamon
Patch194:       chromium-69-cinnamon.patch
# (cjw) gn bootstrap fix
Patch195:	chromium-72-gn-bootstrap.patch
# (cjw) yet more gcc warnings
Patch196:	chromium-72-gcc8.patch
# (cjw) use system closure compiler
Patch197:	chromium-72-system-closure-compiler.patch
# (cjw) fix i586 build
Patch198:	chromium-72-i586.patch
# (cjw) some more gcc warnings
Patch199:	chromium-73-gcc8.patch
# (cjw) gcc warnings
Patch200:	chromium-74-gcc8.patch
# (cjw) gcc warnings
Patch201:	chromium-75-gcc8.patch
# (cjw) fixes for gcc warnings that do not work with clang
%if !%{use_clang}
Patch203:	chromium-75-gcc-only.patch
%endif
# (cjw) gcc warnings
Patch205:	chromium-76-gcc8.patch
# (cjw) system zlib build fix
Patch206:	SOURCES/chromium-77-system-zlib.patch
# (cjw) gcc warnings
Patch207:	chromium-77-gcc9.patch
# (cjw) fix build with system icu
Patch209:	chromium-77-system-icu.patch
# (cjw) fixes for gcc warnings that do not work with clang
%if !%{use_clang}
Patch211:	chromium-77-gcc-only.patch
%endif
# (cjw) force use of python2, since python3 does not work
Patch215:	chromium-77-python2.patch
# (cjw) gcc warnings
Patch216:	chromium-78-gcc.patch


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
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	icu
BuildRequires:	ninja
BuildRequires:	python2
BuildRequires:	yasm
BuildRequires:	bzip2-devel
#BuildRequires:	closure-compiler
BuildRequires:	cups-devel
BuildRequires:	elfutils-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	glib2-devel
BuildRequires:	gtk3-devel
BuildRequires:	libatomic-devel
%if %{system_libevent}
BuildRequires:	libevent-devel
%endif
BuildRequires:	libmesagl-devel
BuildRequires:	libpam-devel
BuildRequires:	libpulseaudio-devel
BuildRequires:	mesaglesv2-devel
%if %mgaver >= 6
BuildRequires:	nodejs
%endif
BuildRequires:	osmesa-devel
#BuildRequires:	protobuf-devel
BuildRequires:	snappy-devel
BuildRequires:	perl(Switch)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnutls)
%if %mgaver >= 7
BuildRequires:	pkgconfig(harfbuzz)
%endif
%if %{system_icu}
BuildRequires:	pkgconfig(icu-i18n)
%endif
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpng)
%if %{system_libtiff}
BuildRequires:	pkgconfig(libtiff-4)
%endif
BuildRequires:	pkgconfig(libusb-1.0)
%if %mgaver >= 7
BuildRequires:	pkgconfig(libvpx)
%endif
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(speech-dispatcher)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
%if %{use_clang}
BuildRequires:	clang
%endif

# Unused but building gn wants it to be present
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	git
ExclusiveArch:	i586 x86_64
# aarch64 does not build without fewer than default parallel jobs config
# armv5tl armv7hl

%description
Chromium is a browser that combines a minimal design with sophisticated
technology to make the web faster, safer, and easier.

For certain media playback features - AAC decoding - this package
currently assumes decoder support is available, while that is only true if
the 'tainted' variety of the libavcodec package is installed. When the 'core'
variety of libavcodec is installed, chromium may output noise for AAC audio.

%ifarch %{ix86}
The i586 build of this package does not work on machines that do not
support the SSE2 instruction set extension.
%endif

%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.

%prep
%setup -q -n chromium-%{version}
%autopatch -p1

# files we do not want from upstream source bundles
rm -r --interactive=never third_party/breakpad/breakpad/src/processor/testdata/
rm -r --interactive=never third_party/breakpad/breakpad/src/tools
rm -r --interactive=never chrome/common/extensions/docs/
rm -r --interactive=never chrome/test/data/{android,app_shim,apptest,ash,autofill,automation,automation_proxy_snapshot,banners,bookmark_html_reader,bookmarks,captive_portal,chromedriver,chrome_endure,chromeos,click_modifier,components,constrained_files,content,content_setting_bubble,devtools,diagnostics,dom_automation,dom_checker,dom_distiller,downloads,drive_first_run,dromaeo,durable,edge_database_reader,edge_profile,encoding_tests,extensions,fast_shutdown,fast_tab_close,favicon,feeds,file_select_helper,find_in_page,firefox320_profile,firefox35_profile,firefox3_nss,firefox3_nss_mac,firefox3_profile,firefox_profile,firefox_searchplugins,focus,frame_dom_access,frame_tree,ftp,fullscreen_mouselock,geolocation,google,gpu,History,image_decoding,image_search,import,indexeddb,inspector,installer,interstitial_page,login,native_messaging,navigation_interception,notifications,page_cycler,page_load_metrics,password,pdf,pepper,perf,permissions,plugin_power_saver,policy,popup_blocker,predictor,prefs,pref_service,prerender,printing,profiles,push_messaging,referrer_policy,safe_browsing,save_page,scroll,session_history,session_restore,sessions,settings,speech,ssl,subresource_filter,sunspider,sync,template_url_scraper,textinput,third_party,top_sites,translate,unit,v8_benchmark_v6,viewsource,web_app_info,webrtc,websocket,webui_test_resources.grd,whitelists,workers}
rm -r --interactive=never chrome/test/data/nacl/{pnacl_error_handling,cross_origin,irt_exception,pnacl_request_header,nonsfi,pnacl_url_loader,pnacl_hw_eh_disabled,pnacl_nmf_options,pnacl_dyncode_syscall_disabled,extension_mime_handler,ppapi_test_lib,bad,ppapi,manifest,pnacl_debug_url,extension_validation_cache,exit_status,progress_events,manifest_file,sysconf_nprocessors_onln,crash,pnacl_mime_type}
rmdir chrome/test/data/webui/{settings,extensions}/a11y
rmdir chrome/test/data/webui/settings/chromeos/app_management
rmdir chrome/test/data/webui/settings/chromeos
rmdir chrome/test/data/webui/{engagement,extensions,print_preview,settings,history,net_internals}
rm -r --interactive=never components/test/data/update_client/jebgalgnebhfojomionfpkfelancnnkf/component1.dll
rm -r --interactive=never content/test/data/
rm -r --interactive=never ppapi/native_client/tests/
rm -r --interactive=never third_party/apache-win32/
rm -r --interactive=never third_party/binutils/
rm -r --interactive=never third_party/expat/files/
rm -r --interactive=never third_party/ffmpeg/*/*
rm -r --interactive=never third_party/flac/{include,src}
%if %{system_icu}
rm -r --interactive=never third_party/icu/{android,android_small,common,patches,source,chromeos,ios}
%endif
rm -r --interactive=never third_party/jsoncpp/source
rm -r --interactive=never third_party/lcov
%if %{system_libvpx}
rm -r --interactive=never third_party/libvpx/source/{libvpx,config}
%endif
rm -r --interactive=never third_party/libjpeg/*.[ch]
rm -r --interactive=never third_party/libjpeg_turbo/*.[ch]
rm -r --interactive=never third_party/libpng/*.[ch]
rm -r --interactive=never third_party/libxslt/{linux,mac,src,win32}
rm -r --interactive=never third_party/xdg-utils/tests/
rm -r --interactive=never third_party/yasm/source/
rm -r --interactive=never third_party/zlib/{*.[ch],contrib/minizip}
rm -r --interactive=never native_client_sdk/src/tools/lib/tests/data
rm -r --interactive=never buildtools/third_party/eu-strip/bin
rm -r --interactive=never third_party/pdfium/third_party/eu-strip
rm --interactive=never third_party/pdfium/third_party/libopenjpeg20/*.[ch]
rm -r --interactive=never third_party/pdfium/third_party/libpng16
%if %{system_libtiff}
rm --interactive=never third_party/pdfium/third_party/libtiff/*.[ch]
%endif
rm -r --interactive=never third_party/pdfium/third_party/yasm/source
rm --interactive=never third_party/swiftshader/third_party/PowerVR_SDK/Utilities/Filewrap/Windows_x86_32/Filewrap.exe
rm --interactive=never native_client/tools/redirector.exe
rm --interactive=never third_party/webrtc/data/voice_engine/stereo_rtp_files/rtpplay.exe
rm -r --interactive=never third_party/llvm
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/SanOGLES-Gerbera.exe
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/SanOGLES-PVRSDK.exe
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/libGLES_CM.dll
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/bob/bob
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/glut/SanOGLES
rm --interactive=never third_party/lzma_sdk/Executable/7za.exe
rm --interactive=never third_party/lzma_sdk/7zr.exe
rm --interactive=never third_party/breakpad/symupload.exe
rm -r --interactive=never third_party/catapult/third_party/google-endpoints/setuptools
rm -r --interactive=never third_party/catapult/third_party/vinn/third_party/v8
rm --interactive=never third_party/depot_tools/ninja.exe
rm --interactive=never third_party/depot_tools/ninja-linux32
rm --interactive=never third_party/depot_tools/ninja-linux64
rm -r --interactive=never native_client/tools/hermetic_cygwin
rm -r --interactive=never base/test/data/pe_image/
rm -r --interactive=never base/test/data/file_version_info_unittest
rm -r --interactive=never chrome/chrome_cleaner/test/resources/signed_dll
rm --interactive=never third_party/crashpad/crashpad/handler/win/z7_test.dll
rm -r --interactive=never third_party/crashpad/crashpad/snapshot/elf/elf_image_reader_fuzzer_corpus
rm -r --interactive=never third_party/boringssl/src/util/ar/testdata
rm -r --interactive=never third_party/pyelftools/test/testfiles_for_unittests
rm -r --interactive=never third_party/pyelftools/test/external_tools
rm -r --interactive=never third_party/pyelftools/test/testfiles_for_readelf
rm -r --interactive=never third_party/pyelftools/examples
rm -r --interactive=never third_party/skia/platform_tools/android/bin
rm --interactive=never third_party/nasm/travis/test/tmap.o.t
rm -r --interactive=never third_party/chromite/lib/datafiles
rm -r --interactive=never components/test/data/update_client
rm -r --interactive=never build/android/tests/symbolize

rm --interactive=never third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar
rm -r --interactive=never third_party/sfntly/src/java/lib
rm --interactive=never third_party/libphonenumber/dist/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar
rm --interactive=never third_party/libphonenumber/dist/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar
rm -r --interactive=never third_party/libphonenumber/dist/java/demo/war/WEB-INF/lib
rm -r --interactive=never third_party/libphonenumber/dist/java/lib
rm --interactive=never third_party/webrtc/examples/androidapp/third_party/autobanh/lib/autobanh.jar
rm -r --interactive=never third_party/cacheinvalidation/src/example-app-build/libs
rm --interactive=never third_party/closure_compiler/compiler/compiler.jar
rm -r --interactive=never third_party/sfntly/src/cpp/ext
rm --interactive=never third_party/bazel/desugar/Desugar-runtime.jar
rm --interactive=never third_party/flatbuffers/src/android/gradle/wrapper/gradle-wrapper.jar
rm --interactive=never third_party/flatbuffers/src/samples/android/gradle/wrapper/gradle-wrapper.jar
rm --interactive=never third_party/blink/renderer/devtools/scripts/closure/compiler.jar
rm --interactive=never third_party/blink/renderer/devtools/scripts/closure/closure_runner/closure_runner.jar
rm --interactive=never third_party/blink/renderer/devtools/scripts/jsdoc_validator/jsdoc_validator.jar
rm --interactive=never third_party/gradle_wrapper/gradle/wrapper/gradle-wrapper.jar
rm --interactive=never third_party/webgl/src/conformance-suites/2.0.0/deqp/compiler.jar

%if %{system_libevent}
find base/third_party/libevent -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete
%endif

%if %{system_icu}
# Remove bundled ICU; its header files appear to get picked up instead of
# the system ones, leading to errors during the final link stage.
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q
find third_party/icu -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete
%endif

# Hard code extra version
FILE=chrome/common/channel_info_posix.cc
sed -i.orig -re 's/char\s*\*(.*)getenv\("CHROME_VERSION_EXTRA"\)/char const *\1"%{product_vendor} %{product_version}"/' $FILE
if diff -u $FILE $FILE.orig >/dev/null; then
  exit 1
fi

# version taken from: strings opt/google/chrome-unstable/chrome | grep -C 1 " (version:"
%define widevine_version 1.4.8.1008
for chrome_arch in ia32 x64; do
  mkdir -p third_party/widevine/cdm/linux/${chrome_arch}
  sed -e "s/@WIDEVINE_VERSION@/%{widevine_version}/" %{SOURCE4} > third_party/widevine/cdm/linux/${chrome_arch}/widevine_cdm_version.h
done

%build
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm %{?gn_libvpx} libpng %{?gn_icu} zlib jsoncpp opus libdrm %{?gn_libevent}
# handled by upstream regular build scripts? : freetype harfbuzz-ng
# mesa

# v NO TABS IN HERE!
%define gn_config use_sysroot=false \
                  system_libdir="%{_lib}" \
                  icu_use_data_file=true \
                  enable_nacl=false \
                  is_nacl_glibc=false \
                  binutils_path="%{_bindir}" \
                  linux_use_bundled_binutils=false \
                  custom_toolchain="//build/toolchain/linux/unbundle:default" \
                  host_toolchain="//build/toolchain/linux/unbundle:default" \
                  proprietary_codecs=true \
                  enable_ac3_eac3_audio_demuxing=true \
                  enable_mse_mpeg2ts_stream_parser=true \
                  enable_hevc_demuxing=true \
                  use_system_libjpeg=true \
                  use_system_libopenjpeg2=true \
                  use_libjpeg_turbo=false \
                  enable_widevine=true \
                  pdf_enable_xfa=true \
                  gtk_version=3 \
                  fatal_linker_warnings=false \
                  use_libpci = true \
                  use_pulseaudio=true \
                  use_allocator="none" \
                  is_debug=false \
                  %{?gn_clang} \
                  clang_use_chrome_plugins=false \
                  use_lld=false \
                  use_system_freetype=true \
                  use_system_harfbuzz=true \
                  use_system_libpng=true \
                  use_custom_libcxx=false \
                  closure_compile=false \
                  google_api_key="%{google_api_key}" \
                  google_default_client_id="%{google_default_client_id}" \
                  google_default_client_secret="%{google_default_client_secret}"


#                  enable_browser_cdms=true \

build/linux/unbundle/replace_gn_files.py --system-libraries %{system_gn_list}
third_party/libaddressinput/chromium/tools/update-strings.py

%setup_compile_flags
%if %{use_clang}
CC=clang; export CC
CXX=clang++; export CXX
%else
CC=%{__cc}; export CC
CXX=%{__cxx}; export CXX
%endif
AR=%{__ar}; export AR
NM=%{__nm}; export NM
LD="%{__cxx} -fuse-ld=gold"; export LD

# filter out -g from CFLAGS and CXXFLAGS to fix builds
CFLAGS=$(echo "$CFLAGS"|sed -e 's/-g //')
CXXFLAGS=$(echo "$CXXFLAGS"|sed -e 's/-g //')
CXXFLAGS="$CXXFLAGS -faligned-new -Wno-attributes"
%if %{use_clang}
CFLAGS="$CFLAGS -Wno-error=unused-result"
CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-declarations"
%else
CXXFLAGS="$CXXFLAGS -Wno-error=class-memaccess -Wno-error=unknown-pragmas -Wno-error=array-bounds"
%endif
%ifarch %ix86
LDFLAGS="$LDFLAGS -Wl,--no-keep-files-mapped"
%endif

%ifarch %{ix86}
CFLAGS="$CFLAGS -msse2"
CXXFLAGS="$CXXFLAGS -msse2"
%endif

python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}'

out/Release/gn gen --script-executable=/usr/bin/python2 --args='%{gn_config}' out/Release

pushd out/Release
ninja %{_smp_mflags} chrome chrome_sandbox
popd

# man page
sed -e "s/@@PACKAGE@@/chromium/" -e "s/@@MENUNAME@@/Chromium Web Browser/" chrome/app/resources/manpage.1.in >out/Release/chromium.1

%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/chromium.1 %{buildroot}%{_mandir}/man1/%{crname}.1
install -m 644 out/Release/chrome_100_percent.pak %{buildroot}%{_crdir}/
install -m 644 out/Release/chrome_200_percent.pak %{buildroot}%{_crdir}/
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/
install -m 644 out/Release/natives_blob.bin %{buildroot}%{_crdir}/
install -m 644 out/Release/snapshot_blob.bin %{buildroot}%{_crdir}/
install -m 755 out/Release/mksnapshot %{buildroot}%{_crdir}/
install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/
install -m 644 chrome/browser/resources/default_apps/* %{buildroot}%{_crdir}/default_apps/
install -m 644 out/Release/v8_context_snapshot.bin %{buildroot}%{_crdir}/
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname}

%ifarch %{ix86} x86_64
mkdir -p %{buildroot}%{_crdir}/swiftshader
install -m 755 out/Release/swiftshader/*.so %{buildroot}%{_crdir}/swiftshader/
%endif

find out/Release/resources/ -name "*.d" -exec rm {} \;
cp -r out/Release/resources %{buildroot}%{_crdir}

# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/

%if %{system_icu}
# symlink to ICU data file
ICUDATADIR=$(icuinfo | grep \"icudata.path\" | sed -re 's/^.*>(.*)<.*$/\1/')
ICUDATANAME=$(icuinfo | grep \"icudata.name\" | sed -re 's/^.*>(.*)<.*$/\1/')
ICUDATAFILE=$(realpath --relative-to=%{_crdir}/ ${ICUDATADIR}/${ICUDATANAME}.dat)
ln -s ${ICUDATAFILE} %{buildroot}%{_crdir}/icudtl.dat
%else
install -m 644 out/Release/icudtl.dat %{buildroot}%{_crdir}/
%endif

# icon
for i in 22_mono 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 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}
%dir %{_crdir}
%{_crdir}/chromium-wrapper
%{_crdir}/chrome
%attr(4755,root,root) %{_crdir}/chrome-sandbox
%{_crdir}/icudtl.dat
%{_crdir}/locales
%{_crdir}/natives_blob.bin
%{_crdir}/snapshot_blob.bin
%{_crdir}/resources.pak
%{_crdir}/resources
%{_crdir}/chrome_100_percent.pak
%{_crdir}/chrome_200_percent.pak
%{_crdir}/mksnapshot
%{_crdir}/themes
%{_crdir}/default_apps
%ifarch %{ix86} x86_64
%{_crdir}/swiftshader
%endif
%{_crdir}/v8_context_snapshot.bin
%{_mandir}/man1/%{crname}*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{crname}.png


%changelog
* Sun Nov 03 2019 cjw <cjw> 78.0.3904.87-1.mga7
+ Revision: 1457420
- 78.0.3904.87
- use bundled libvpx
- 77.0.3865.120
- 77.0.3865.90
- 77.0.3865.75
- use bundled icu library

* Sat Apr 06 2019 cjw <cjw> 73.0.3683.103-1.mga7
+ Revision: 1386406
- 73.0.3683.103
- add missing backslash in spec file that caused the google
  api key not to be configured (mga #24613)

* Fri Mar 29 2019 cjw <cjw> 73.0.3683.86-1.mga7
+ Revision: 1381094
- add linker option --no-keep-files-mapped for x86 to fix out-of-memory error
- 73.0.3683.86
- disable javascript optimization since closure-compiler is too old

* Fri Mar 08 2019 cjw <cjw> 72.0.3626.121-1.mga7
+ Revision: 1372762
- 72.0.3626.121

* Mon Feb 18 2019 cjw <cjw> 72.0.3626.109-1.mga7
+ Revision: 1368311
- 72.0.3626.109

* Mon Feb 18 2019 tv <tv> 72.0.3626.96-1.mga7
+ Revision: 1368120
- temporary disable -Werror=sign-compare
+ cjw <cjw>
- 72.0.3626.96

* Mon Dec 31 2018 tv <tv> 70.0.3538.77-2.mga7
+ Revision: 1347329
- rebuild with latest icu

* Fri Oct 26 2018 cjw <cjw> 70.0.3538.77-1.mga7
+ Revision: 1325622
- 70.0.3538.77

* Tue Oct 23 2018 cjw <cjw> 70.0.3538.67-1.mga7
+ Revision: 1324743
- disable aarch64 build for now
- fix build with harfbuzz 2.0.x
- 70.0.3538.67
- also build on aarch64
+ joequant <joequant>
- add patch to avoid cinnamon crash

* Thu Sep 06 2018 cjw <cjw> 69.0.3497.81-1.mga7
+ Revision: 1257517
- 69.0.3497.81
- package man page

* Thu Aug 23 2018 tv <tv> 68.0.3440.106-3.mga7
+ Revision: 1253512
- rebuild with latest icu

* Sat Aug 18 2018 cjw <cjw> 68.0.3440.106-1.mga7
+ Revision: 1252556
- fix i586 build
- fix build with gcc 8
- 68.0.3440.106

* Sun Jul 29 2018 cjw <cjw> 68.0.3440.75-1.mga7
+ Revision: 1245776
- 68.0.3440.75

* Wed Jun 20 2018 pterjan <pterjan> 67.0.3396.87-2.mga7
+ Revision: 1238247
- Create a new API key

* Sun Jun 17 2018 cjw <cjw> 67.0.3396.87-1.mga7
+ Revision: 1237422
- 67.0.3396.87
+ tv <tv>
- remove ref to old tarball

* Fri Jun 08 2018 cjw <cjw> 67.0.3396.79-1.mga7
+ Revision: 1235325
- 67.0.3396.79

* Thu May 31 2018 cjw <cjw> 67.0.3396.62-1.mga7.tainted
+ Revision: 1233232
- 67.0.3396.62

* Tue May 22 2018 zezinho <zezinho> 66.0.3359.170-1.mga7
+ Revision: 1231647
- new version 66.0.3359.170 and two patches from new padawan adrien guichard
+ tv <tv>
- 66.0.3359.139 (tarball from FC)
- rediff patches
- update to 64.0.3282.140
- rebuild for new libvpx
+ cjw <cjw>
- 65.0.3325.162
- add a note in the description about libavcodec from core repository
- 64.0.3282.119
+ joequant <joequant>
- rebuild with new vpx library

* Sun Dec 31 2017 cjw <cjw> 63.0.3239.108-1.mga7
+ Revision: 1188197
- 63.0.3239.108
+ wally <wally>
- rebuild for new icu

* Sun Nov 19 2017 cjw <cjw> 62.0.3202.94-1.mga7
+ Revision: 1177713
- 62.0.3202.94

* Mon Nov 13 2017 cjw <cjw> 62.0.3202.89-1.mga7
+ Revision: 1177132
- 62.0.3202.89

* Sun Oct 22 2017 cjw <cjw> 62.0.3202.62-2.mga7
+ Revision: 1173070
- i586 build fixes
- 62.0.3202.62

* Sat Sep 16 2017 cjw <cjw> 61.0.3163.91-1.mga7
+ Revision: 1154811
- 61.0.3163.91

* Mon Aug 28 2017 cjw <cjw> 60.0.3112.113-1.mga7
+ Revision: 1148415
- 60.0.3112.113

* Mon Aug 21 2017 neoclust <neoclust> 60.0.3112.101-1.mga7
+ Revision: 1142528
- New version 60.0.3112.101

* Sun Aug 20 2017 neoclust <neoclust> 60.0.3112.90-3.mga7
+ Revision: 1142128
- Rebuild against openjpeg-2.2

* Tue Aug 08 2017 cjw <cjw> 60.0.3112.90-2.mga7
+ Revision: 1138786
- fix i586 build
- 60.0.3112.90
- add -Wno-error=pointer-to-int-cast to CXXFLAGS to fix i586 build
- 60.0.3112.78

* Thu Jul 20 2017 cjw <cjw> 59.0.3071.115-1.mga7
+ Revision: 1125681
- 59.0.3071.115
- 59.0.3071.109
- 58.0.3029.110

* Tue May 02 2017 akien <akien> 57.0.2987.133-6.mga6
+ Revision: 1098274
- Rebuild for ffmpeg 3.3

* Mon Apr 10 2017 cjw <cjw> 57.0.2987.133-5.mga6
+ Revision: 1096249
- patch all in-tree typedefs of GLsizeiptr and GLintptr to match system mesa
- 57.0.2987.133
- fix local typedefs of GLintptr and GLsizeiptr to match those in mesa
- 57.0.2987.110

* Wed Mar 15 2017 mrambo3501 <mrambo3501> 56.0.2924.87-3.mga6
+ Revision: 1092686
- Rebuild for icu-58.2

* Wed Mar 01 2017 ghibo <ghibo> 56.0.2924.87-2.mga6
+ Revision: 1088356
- Rebuilt against pulseaudio 10
+ cjw <cjw>
- add build dep on gtk+3 to fix build
- 56.0.2924.87
- Patch7: add support for playback of WMV, FLV, and MPEG files

* Sat Dec 10 2016 cjw <cjw> 55.0.2883.87-1.mga6
+ Revision: 1073980
- 55.0.2883.87

* Sun Dec 04 2016 cjw <cjw> 55.0.2883.75-1.mga6
+ Revision: 1072466
- 55.0.2883.75
- patch32: report support for FLAC in HTML5 canPLayType

* Sat Nov 19 2016 cjw <cjw> 54.0.2840.100-2.mga6
+ Revision: 1068338
- fix recognition of RIFF files in patch6 that broke with rediffing for version 51

* Sun Nov 13 2016 cjw <cjw> 54.0.2840.100-1.mga6
+ Revision: 1066919
- 54.0.2840.100

* Wed Nov 09 2016 cjw <cjw> 54.0.2840.90-2.mga6
+ Revision: 1066094
- disable debug info so i586 build does not run out of memory
- add build dependency on git for gn
- configure google api key
- add missing build dependency on pkgconfig(libtiff-4)
- add missing build dependency on pkgconfig(libopenjp2)
- disable unused build dependency on libevent-devel
- 54.0.2840.90
- use gn to configure build
- do not build with system libevent, it breaks chromium

* Fri Sep 30 2016 cjw <cjw> 53.0.2785.143-1.mga6
+ Revision: 1057789
- 53.0.2785.143

* Wed Sep 14 2016 cjw <cjw> 53.0.2785.113-1.mga6
+ Revision: 1052898
- 53.0.2785.113

* Mon Sep 12 2016 cjw <cjw> 53.0.2785.101-1.mga6
+ Revision: 1051587
- 53.0.2785.101
- drop patches 20 and 23, fixed upstream
- drop patch22, needs updating but we can do without

* Fri Aug 05 2016 cjw <cjw> 52.0.2743.116-1.mga6
+ Revision: 1044626
- 52.0.2743.116

* Sun Jul 24 2016 cjw <cjw> 52.0.2743.82-1.mga6
+ Revision: 1043545
- 52.0.2743.82

* Fri Jun 17 2016 cjw <cjw> 51.0.2704.103-1.mga6
+ Revision: 1022036
- 51.0.2704.103

* Sat Jun 04 2016 cjw <cjw> 51.0.2704.79-1.mga6
+ Revision: 1020232
- 51.0.2704.79

* Fri May 27 2016 cjw <cjw> 51.0.2704.63-2.mga6
+ Revision: 1018987
- 51.0.2704.63

* Fri May 13 2016 shlomif <shlomif> 50.0.2661.102-2.mga6
+ Revision: 1015013
- Rebuild for new ICU

* Thu May 12 2016 cjw <cjw> 50.0.2661.102-1.mga6
+ Revision: 1013936
- 50.0.2661.102

* Fri Apr 29 2016 cjw <cjw> 50.0.2661.94-1.mga6
+ Revision: 1007644
- 50.0.2661.94

* Mon Apr 18 2016 cjw <cjw> 50.0.2661.75-1.mga6
+ Revision: 1003526
- 50.0.2661.75
- use icu data file again, otherwise chromium does not start
- buildrequires: liabatomic-devel
- patch17: fix build with system icu, this code is available in next upstream release
- patch18: build fixes for webrtc code with system ffmpeg

* Wed Mar 30 2016 cjw <cjw> 49.0.2623.110-1.mga6
+ Revision: 996948
- 49.0.2623.110

* Sun Mar 27 2016 cjw <cjw> 49.0.2623.108-1.mga6
+ Revision: 995749
- 49.0.2623.108

* Wed Mar 09 2016 cjw <cjw> 49.0.2623.87-1.mga6
+ Revision: 988593
- 49.0.2623.87

* Sat Feb 06 2016 cjw <cjw> 48.0.2564.103-1.mga6
+ Revision: 941349
- 48.0.2564.103

* Thu Jan 28 2016 cjw <cjw> 48.0.2564.97-1.mga6
+ Revision: 928296
- 48.0.2564.97

* Wed Jan 27 2016 cjw <cjw> 48.0.2564.82-1.mga6
+ Revision: 928215
- 48.0.2564.82
- patch15: fix one versioned icu namespace reference

* Sun Jan 17 2016 cjw <cjw> 47.0.2526.111-2.mga6
+ Revision: 924812
- add some support for using the widevine cdm from chrome
- do not build against system protobuf since it still doesn't work

* Thu Jan 14 2016 luigiwalser <luigiwalser> 47.0.2526.111-1.mga6
+ Revision: 923013
- 47.0.2526.111
- remove dependence on ICU data file
- build with system fontconfig and jsoncpp
- do not build against pre-build sysroot image
- enable hidpi and touch_ui support
- try using system protobuf again

* Fri Jan 01 2016 luigiwalser <luigiwalser> 47.0.2526.106-2.mga6
+ Revision: 917821
- rebuild for icu

* Wed Dec 16 2015 luigiwalser <luigiwalser> 47.0.2526.106-1.mga6
+ Revision: 911074
- 47.0.2526.106

* Wed Dec 09 2015 luigiwalser <luigiwalser> 47.0.2526.80-1.mga6
+ Revision: 909138
- 47.0.2526.80

* Thu Dec 03 2015 cjw <cjw> 47.0.2526.73-1.mga6
+ Revision: 907901
- patch13: fix build with system libvpx
+ luigiwalser <luigiwalser>
- 47.0.2526.73

* Sat Nov 21 2015 cjw <cjw> 46.0.2490.86-2.mga6
+ Revision: 904684
- rebuild for new libvpx

* Thu Nov 12 2015 luigiwalser <luigiwalser> 46.0.2490.86-1.mga6
+ Revision: 902972
- 46.0.2490.86
- disable eol fix as this corrupts binaries and causes crashes (omdv)

* Thu Oct 22 2015 luigiwalser <luigiwalser> 46.0.2490.80-1.mga6
+ Revision: 894332
- 46.0.2490.80

* Wed Oct 21 2015 cjw <cjw> 46.0.2490.71-1.mga6
+ Revision: 893910
- 46.0.2490.71
+ neoclust <neoclust>
- New version 46.0.2490.71

* Thu Oct 01 2015 luigiwalser <luigiwalser> 45.0.2454.101-1.mga6
+ Revision: 885573
- 45.0.2454.101
- add patch from debian via rosa to disable third party cookies

* Wed Sep 23 2015 luigiwalser <luigiwalser> 45.0.2454.99-1.mga6
+ Revision: 882436
- 45.0.2454.99

* Thu Sep 03 2015 cjw <cjw> 45.0.2454.85-1.mga6
+ Revision: 872610
- 45.0.2454.85

* Wed Aug 26 2015 joequant <joequant> 44.0.2403.125-2.mga6
+ Revision: 869448
- compile issues
- recompile with new snappy and gcc

* Wed Jul 29 2015 cjw <cjw> 44.0.2403.125-1.mga6
+ Revision: 858952
- 44.0.2403.125
- build with system snappy library
- build with system libvpx

* Sun Jul 26 2015 cjw <cjw> 44.0.2403.107-1.mga6
+ Revision: 857773
- 44.0.2403.107
- drop patch12 - fixed upstream

* Fri Jul 24 2015 cjw <cjw> 44.0.2403.89-1.mga6
+ Revision: 856987
- 44.0.2403.89
- drop patch4 (fix build with system ffmpeg) since it does not apply and is apparently not needed anymore
- patch12: do not a send "https=1" HTTP header that could result in a redirect loop making a site inaccessible

* Wed Jun 24 2015 cjw <cjw> 43.0.2357.130-1.mga6
+ Revision: 842495
- 43.0.2357.130
- patch10: do not silently download and install 'external components'

* Thu May 21 2015 cjw <cjw> 43.0.2357.65-1.mga5
+ Revision: 822479
- 43.0.2357.65
- drop patch8, fixed upstream
- patch9: remove new code that uses an internal ffmpeg header

* Fri May 01 2015 cjw <cjw> 42.0.2311.135-1.mga5
+ Revision: 820951
- 42.0.2311.135

* Sun Apr 19 2015 cjw <cjw> 42.0.2311.90-1.mga5
+ Revision: 820473
- 42.0.2311.90

* Sat Apr 04 2015 cjw <cjw> 41.0.2272.118-1.mga5
+ Revision: 819698
- 41.0.2272.118

* Mon Mar 30 2015 cjw <cjw> 41.0.2272.101-2.mga5
+ Revision: 819437
- 41.0.2272.101
- patch8: disable touch device support to fix mouse in qemu

* Sun Mar 22 2015 pterjan <pterjan> 41.0.2272.101-1.mga5
+ Revision: 819072
- Update to 41.0.2272.101

* Fri Feb 06 2015 cjw <cjw> 40.0.2214.111-1.mga5
+ Revision: 813640
- 40.0.2214.111
- small spec file cleanup:
 * drop _src and basever defines
 * sort buildrequires
 * whitespace changes in gyp defines
 * remove commented out lines

* Fri Jan 23 2015 cjw <cjw> 40.0.2214.91-1.mga5
+ Revision: 811941
- 40.0.2214.91

* Thu Dec 25 2014 cjw <cjw> 39.0.2171.95-1.mga5.tainted
+ Revision: 805968
- 39.0.2171.95

* Thu Dec 04 2014 philippem <philippem> 39.0.2171.65-4.mga5
+ Revision: 801426
- drop BR: python-pyxml

* Mon Nov 24 2014 cjw <cjw> 39.0.2171.65-3.mga5
+ Revision: 798825
- patch6: accept matroska and avi file types
- patch7: enable ac3 and dts audio codecs
- build config: switch from deprecated linux_use_tcmalloc=0 to use_allocator=none

* Thu Nov 20 2014 cjw <cjw> 39.0.2171.65-2.mga5
+ Revision: 797938
- package pdf plugin
- build with system libwebp
- fix a compilation warning introduced in the spec file

* Wed Nov 19 2014 cjw <cjw> 39.0.2171.65-1.mga5
+ Revision: 797819
- 39.0.2171.65 -- tarball generated from git because google's was not available (yet) in commondatastorage
- use system yasm and libharfbuzz
- disable SSL3 by setting minimum https protocol version to TLS1 in the wrapper script
- drop patch0,patch2,patch3: not needed anymore
+ luigiwalser <luigiwalser>
- ensure SUID root perms on chrome-sandbox binary

* Fri Nov 14 2014 akien <akien> 38.0.2125.104-3.mga5
+ Revision: 797198
- Rebuild for ffmpeg 2.4

* Tue Nov 04 2014 cjw <cjw> 38.0.2125.104-2.mga5
+ Revision: 795517
- build with system ffmpeg - no tainted version
- build with system ICU, no bundled .dat file
- build with system opus

* Sun Oct 19 2014 luigiwalser <luigiwalser> 38.0.2125.104-1.mga5.tainted
+ Revision: 789280
- remove patch 1 (fixed upstream)
- 38.0.2125.104
- 38.0.2125.101
- update patch2 from rosa

* Mon Oct 06 2014 luigiwalser <luigiwalser> 37.0.2062.120-1.mga5.tainted
+ Revision: 737113
- add patch from mga4 to fix gn build
- add patch from omdv to fix crash with gcc 4.9
- 37.0.2062.120
+ umeabot <umeabot>
- Rebuild to fix library dependencies
- Mageia 5 Mass Rebuild

* Tue Aug 12 2014 pterjan <pterjan> 36.0.1985.125-1.mga5
+ Revision: 662020
- Disable fatal linker warnings :(
- We can't use system sqlite, it breaks webdb which needs added functions
- Use systm sqlite, this is the default and else it conflicts with using nss
- Use a patch to force gold, ldflags are no longer used in the second build
- Update to 36.0.1985.125
- Fix gn build by asking to use gold instead of patching
+ luigiwalser <luigiwalser>
- enable aura interface

* Mon May 19 2014 luigiwalser <luigiwalser> 34.0.1847.137-1.mga5.tainted
+ Revision: 623977
- 34.0.1847.137
+ anssi <anssi>
- Use the PPAPI Flash Player (PepperFlash) from the Google Chrome
  installation, if present

* Thu May 08 2014 luigiwalser <luigiwalser> 34.0.1847.132-2.mga5.tainted
+ Revision: 621192
- 34.0.1847.132

* Tue Apr 15 2014 pterjan <pterjan> 34.0.1847.116-2.mga5
+ Revision: 614551
- Use embedded protobuf for now, to avoid a crash

* Fri Apr 11 2014 pterjan <pterjan> 34.0.1847.116-1.mga5
+ Revision: 613501
- Update list of files to install
- Build gn from sources
- Build with ninja
+ luigiwalser <luigiwalser>
- 34.0.1847.116

* Sat Mar 15 2014 luigiwalser <luigiwalser> 33.0.1750.152-1.mga5.tainted
+ Revision: 604045
- 33.0.1750.152

* Wed Mar 05 2014 luigiwalser <luigiwalser> 33.0.1750.146-1.mga5.tainted
+ Revision: 600273
- 33.0.1750.146

* Wed Feb 26 2014 luigiwalser <luigiwalser> 33.0.1750.117-1.mga5.tainted
+ Revision: 597400
- 33.0.1750.117

* Wed Feb 05 2014 luigiwalser <luigiwalser> 32.0.1700.102-1.mga5.tainted
+ Revision: 583630
- 32.0.1700.102

* Tue Dec 31 2013 dmorgan <dmorgan> 31.0.1650.63-2.mga4.tainted
+ Revision: 563503
- Rebuild against current protobuf

* Mon Dec 16 2013 pterjan <pterjan> 31.0.1650.63-1.mga4.tainted
+ Revision: 557936
- Add missing BuildRequires
- Use python 2.7 instead of 2.6
- Use correct libdir on 64 bits
+ luigiwalser <luigiwalser>
- 31.0.1650.63

* Tue Nov 12 2013 luigiwalser <luigiwalser> 31.0.1650.48-1.mga4.tainted
+ Revision: 550820
- 31.0.1650.48

* Fri Nov 01 2013 luigiwalser <luigiwalser> 30.0.1599.114-1.mga4.tainted
+ Revision: 548727
- 30.0.1599.114

* Mon Oct 21 2013 umeabot <umeabot> 30.0.1599.66-2.mga4.tainted
+ Revision: 540537
- Mageia 4 Mass Rebuild

* Wed Oct 09 2013 luigiwalser <luigiwalser> 30.0.1599.66-1.mga4
+ Revision: 493826
- 30.0.1599.66

* Sat Sep 07 2013 dmorgan <dmorgan> 29.0.1547.65-1.mga4.tainted
+ Revision: 475592
- New version 29.0.1547.65

* Fri Sep 06 2013 dmorgan <dmorgan> 29.0.1547.72-1.mga4.tainted
+ Revision: 475379
- New version 29.0.1547.72

* Wed Aug 14 2013 luigiwalser <luigiwalser> 28.0.1500.95-1.mga4.tainted
+ Revision: 466566
- 28.0.1500.95

* Mon Jul 29 2013 pterjan <pterjan> 28.0.1500.71-3.mga4.tainted
+ Revision: 460614
- Enable all codecs for tainted build

* Wed Jul 24 2013 pterjan <pterjan> 28.0.1500.71-2.mga4.tainted
+ Revision: 457547
- Add API keys (mga#9851)

* Mon Jul 22 2013 luigiwalser <luigiwalser> 28.0.1500.71-1.mga4
+ Revision: 457331
- fix conflict with nss 3.15 (redefinition of struct SECItemArrayStr)
- 28.0.1500.71
+ dmorgan <dmorgan>
- New version

* Tue Jun 18 2013 tv <tv> 28.0.1500.50-1.mga4
+ Revision: 444637
- new release

* Mon Jun 10 2013 dmorgan <dmorgan> 27.0.1454.1-1.mga4
+ Revision: 441875
- New version

* Mon Jun 03 2013 fwang <fwang> 26.0.1410.65-2.mga4.tainted
+ Revision: 435565
- rebuild for new libpng

* Tue Apr 30 2013 dmorgan <dmorgan> 26.0.1410.65-1.mga3.tainted
+ Revision: 411705
- New version ( mga #9703)

* Fri Mar 29 2013 dmorgan <dmorgan> 26.0.1410.51-5.mga3.tainted
+ Revision: 406432
- Obsolete unstable/beta and only provide stable on stable distro

* Fri Mar 29 2013 dmorgan <dmorgan> 26.0.1410.51-4.mga3.tainted
+ Revision: 406427
- Enable tainted build

* Thu Mar 28 2013 dmorgan <dmorgan> 26.0.1410.51-4.mga3.nonfree
+ Revision: 405996
- New version 26.0.1410.51

* Wed Mar 27 2013 dmorgan <dmorgan> 26.0.1410.49-4.mga3
+ Revision: 405749
- New version

* Sun Mar 24 2013 dmorgan <dmorgan> 25.0.1364.173-4.mga3.nonfree
+ Revision: 405124
+ rebuild (emptylog)

* Sun Mar 24 2013 dmorgan <dmorgan> 25.0.1364.173-4.mga3
+ Revision: 405113
- Add comment about why we use bundle libpng
- Disable proprietary_codecs

* Sat Mar 23 2013 dmorgan <dmorgan> 25.0.1364.173-2.mga3
+ Revision: 404604
- Install some more pak files

* Sat Mar 23 2013 dmorgan <dmorgan> 25.0.1364.173-1.mga3
+ Revision: 404595
- New version 25.0.1364.173
- New version 25.0.1364.172

* Fri Jan 11 2013 umeabot <umeabot> 21.0.1180.81-3.mga3
+ Revision: 347743
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Sep 18 2012 dams <dams> 21.0.1180.81-2.mga3
+ Revision: 295848
- add back some 'x-scheme-handler' to allow the app to be used as a default application in GNOME3

* Fri Aug 31 2012 dmorgan <dmorgan> 21.0.1180.81-1.mga3
+ Revision: 286643
- Disable system tcmalloc for now ( does not compile )
- New version 21.0.1180.81
- Remove applied patch
- New version 21.0.1180.57
+ dams <dams>
- clean specfile
- remove useless part of the description: old issue (5.x)

* Fri Jul 13 2012 dmorgan <dmorgan> 20.0.1132.57-1.mga3
+ Revision: 270472
- New version 20.0.1132.57

* Sat Jul 07 2012 dmorgan <dmorgan> 20.0.1132.47-8.mga3
+ Revision: 268645
- Really enable system flac

* Sat Jul 07 2012 dmorgan <dmorgan> 20.0.1132.47-7.mga3
+ Revision: 268633
- only build minizip now ( set flac to 0 )
- Build with system flac

* Sat Jul 07 2012 dmorgan <dmorgan> 20.0.1132.47-6.mga3
+ Revision: 268559
- Use system minizip

* Fri Jul 06 2012 dmorgan <dmorgan> 20.0.1132.47-5.mga3
+ Revision: 268540
+ rebuild (emptylog)

* Fri Jul 06 2012 dmorgan <dmorgan> 20.0.1132.47-4.mga3
+ Revision: 268497
- Use System Speex

* Fri Jul 06 2012 dmorgan <dmorgan> 20.0.1132.47-3.mga3
+ Revision: 268473
- Build with system v8

* Thu Jul 05 2012 dmorgan <dmorgan> 20.0.1132.47-2.mga3
+ Revision: 267912
- Package missing pak files ( thanks to dwalluck)

* Wed Jul 04 2012 dmorgan <dmorgan> 20.0.1132.47-1.mga3
+ Revision: 267786
- New upstream release 20.0.1132.47 (144678)
+ colin <colin>
- Rebuild against new libudev major

* Wed Jun 20 2012 tv <tv> 19.0.1084.56-1.mga3
+ Revision: 262101
- new release
- use system xdg utils
- strip debug from NaCl IRT files

* Thu May 10 2012 dmorgan <dmorgan> 18.0.1025.168-1.mga2
+ Revision: 235029
- 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

* 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