#% global with_system_zlib 1
#% global with_system_jpeg 1
#% global with_system_png 1

# %global with_system_icu 1
#%global with_system_v8 1
#% global with_system_vpx 1

%global chrome_sandbox %{_prefix}/lib/chrome_sandbox

Name:           chromium
Summary:        Google's opens source browser project
Summary(ja):    Googleのオープンソースウェブブラウザ
#'
Version:        52.0.2743.82
Release:        1%{?_dist_release}
License:        BSD-3-Clause, LGPL-2.1+
Group:          Applications/Internet
Source0:        %{name}-%{version}-vine.tar.xz
# Script used to create the %{name}-%{version}-vine.tar.xz archive from 
# a official tarball: 
# http://gsdview.appspot.com/chromium-browser-official/chromium-XX.X.XXXX.XXX.tar.xz
Source3:        pack_chromium_source-vine.sh
# Patch template which adds vendor to user agent
##!!Source20:       chromium-vendor.patch.in
Source20:       chromium-vendor-vine.patch.in
# Set default prefs
##!!Source30:       master_preferences
Source30:       master_preferences.vine
##!!Source31:       default_bookmarks.html
#Source31:       default_bookmarks.html.vine
Source99:       chrome-wrapper
##!!Source100:      chromium-browser.sh
Source100:      chromium-browser-vine.sh
##!!Source101:      chromium-browser.desktop
Source101:      chromium-browser-vine.desktop
Source102:      chromium-browser.xml
Source103:      chromium.default

## Start Patches
# Vine
Patch100:		chromium-44.0.2403.125-no-ffmpegsumo.patch
Patch101:		chromium-42.0.2311.90-disable-GoogleApiKeysInfoBar-vine.patch
Patch102:		chromium-49.0.2623.108-remove-webui_test_resources.patch
Patch103:		chromium-51.0.2704.63-revert-exception.patch


BuildRequires:  pciutils-devel
BuildRequires:  mesa-libGLU-devel
BuildRequires:  alsa-lib-devel
BuildRequires:  pulseaudio-libs-devel
BuildRequires:  bison
BuildRequires:  cups-devel
BuildRequires:  desktop-file-utils
BuildRequires:  flex
BuildRequires:  freetype2-devel
BuildRequires:  gperf
BuildRequires:  hunspell-devel
##!!BuildRequires:  libbz2-devel 
%{?with_system_bzip2:BuildRequires:  bzip2-devel}
%{?with_system_libevent:BuildRequires:  libevent-devel}
##!!BuildRequires:  libexpat-devel
BuildRequires:  expat-devel
BuildRequires:  libgcrypt-devel
%{?with_system_jpeg:BuildRequires:  libjpeg-devel}
%{?with_system_png:BuildRequires:  libpng-devel}
BuildRequires:  libstdc++-devel >= 4.4
BuildRequires:  libatomic
%{?with_system_vpx:BuildRequires:  libvpx-devel >= 0.9.5}
%{?with_system_libxslt:BuildRequires:  libxslt-devel}
BuildRequires:  libzip-devel
##!!BuildRequires:  lzma
#BuildRequires:  xz
##!!BuildRequires:  mozilla-nspr-devel
BuildRequires:  nspr-devel
##!!BuildRequires:  mozilla-nss-devel
BuildRequires:  nss-devel
BuildRequires:  krb5-devel
BuildRequires:  openssl-devel
BuildRequires:  pam-devel
##!!BuildRequires:  pkg-config
#BuildRequires:  subversion
##!!BuildRequires:  perl(Switch)
BuildRequires:  perl
BuildRequires:  cairo-devel >= 1.6
BuildRequires:  dbus-devel
BuildRequires:  dbus-glib-devel
##!!BuildRequires:  gconf2-devel
BuildRequires:  GConf2-devel
BuildRequires:  glib2-devel
BuildRequires:  gtk2-devel
%{?with_system_libxml:BuildRequires:  libxml2-devel}
BuildRequires:  python
##!!BuildRequires:  python-xml
BuildRequires:  python-pyxml
%{?with_system_sqlite:BuildRequires:  sqlite3-devel}
##!!BuildRequires:  update-desktop-files
%{?with_system_v8:BuildRequires:  v8-devel}
##!!BuildRequires:  wdiff
%{?with_system_zlib:BuildRequires:  zlib-devel}
##!!BuildRequires:  libpulse-devel
BuildRequires:  pulseaudio-libs-devel
##!!BuildRequires:  libelf-devel
BuildRequires:  elfutils-libelf-devel
BuildRequires:  libgnome-keyring-devel
BuildRequires:  python-devel
#BuildRequires:  glew-devel
%{?with_system_icu:BuildRequires:  libicu-devel >= 4.0}
BuildRequires:  eudev-libudev-devel
BuildRequires:  libcap-devel
BuildRequires:  gnutls-devel

BuildRequires:  ninja

##Vine Linux
#BuildRequires:  libpaper-devel
BuildRequires:  libXScrnSaver-devel
BuildRequires:  libXtst-devel
BuildRequires:  libXdamage-devel
BuildRequires:  libXt-devel
#%ifarch x86_64
#Requires:  nspluginwrapper
#%endif

##!!Requires:       alsa
Requires:       alsa-lib
Requires:       pulseaudio-libs
Requires:       xdg-utils
## %{?with_system_v8:Requires:       v8}

BuildRoot:      %{_tmppath}/%{name}-%{version}-root

Obsoletes: chromium < %{version}-%{release}


%description
Chromium is the open-source project behind Google Chrome. 
We invite you to join us in our effort to help build a safer, faster, 
and more stable way for all Internet users to experience the web, 
and to create a powerful platform for developing a new generation of 
web applications.

%description -l ja
Chromium は Google Chrome の後方にあるオープンソースプロジェクトです。
ウェブを体験しているすべてのインターネットユーザに対して
より安全で、より速くて、より安定した方法を築き上げるのを補助するでしょう。
そして、ウェブアプリケーションの新しい世代を発展させ、
強力なプラットホームを作成するために、
私たちの取り組みにぜひ参加してください。


%prep
#%setup -q
[ -d %{name}-%{version} ] && %__rm -rf %{name}-%{version}
xz -dc %{SOURCE0} | %__tar -xf - || exit 1
%setup -D -T -n %{name}-%{version}

#%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1

# Make sure that the requires legal files can be found
%__cp -a src/AUTHORS src/LICENSE . || exit 1

export PATH="$PATH":`pwd`/src/depot_tools

%build
# '
for i in src/build/common.gypi; do
		%__sed -i "s|'-march=pentium4',||g" $i
		%__sed -i "s|'-mfpmath=sse',||g" $i
		%__sed -i "s|'-O<(debug_optimize)',||g" $i
		%__sed -i "s|'-fno-exceptions',|$PARSED_OPT_FLAGS|g" $i
		%__sed -i "s|'-Werror'|'-Wno-error'|g" $i
done

pushd src

export GYP_GENERATORS='ninja'

myconf=" 
    -Dwerror= 
    -Dlinux_dump_symbols=0 
    -Dlinux_sandbox_path=%{chrome_sandbox} 
    -Dlinux_sandbox_chrome_path=%{_libdir}/chromium/chromium 
    -Dlinux_use_gold_flags=0 
    -Dlinux_use_bundled_binutils=0
    -Dlinux_use_bundled_gold=0
    -Dlinux_use_gold_binary=0 
    -Dremove_webcore_debug_symbols=1 
    -Duse_sysroot=0
    -Duse_system_bzip2=0 
    -Duse_system_flac=0 
    -Duse_system_harfbuzz=0 
    -Duse_system_icu=0
    -Dicu_use_data_file_flag=1
    -Duse_system_libevent=0
    -Duse_system_libexif=0 
    -Duse_system_libjpeg=0 
    -Duse_system_libmtp=0 
    -Duse_system_libpng=0 
    -Duse_system_libusb=0 
    -Duse_system_libvpx=0 
    -Duse_system_libwebp=0 
    -Duse_system_libxml=0 
    -Duse_system_libxslt=0 
    -Duse_system_libyuv=0 
    -Duse_system_minizip=0 
    -Duse_system_nss=0 
    -Duse_system_nspr=0 
    -Duse_openssl=1 
    -Duse_system_opus=0 
    -Duse_system_protobuf=0 
    -Duse_system_re2=0 
    -Duse_system_speex=0 
    -Duse_system_v8=0 
    -Dandroid_webview_build=0
    -Dv8_use_external_startup_data=1
    -Duse_system_xdg_utils=0 
    -Duse_system_yasm=0 
    -Duse_system_zlib=0 
    -Duse_system_ffmpeg=0
    -Duse_ffmpeg=1
    -Duse_system_vpx=0 
    -Duse_system_sqlite=0 
    -Dlinux_fpic=1 
    -Ddisable_sse2=1 
    -Djavascript_engine=v8 
    -Ddisable_nacl=1 
    -Dproprietary_codecs=1 
    -Dclang=0 
    -Dtoolkit_uses_gtk=0 
    -Dpython_ver=2.7 
    -Duse_pulseaudio=1 
    -Dlinux_link_libpci=0 
    -Dlinux_link_gnome_keyring=0
    -Dlinux_link_gsettings=0 
    -Dlinux_link_libgps=0 "

%ifarch %{ix86}
     myconf+=" -Dtarget_arch=ia32 "
%endif
%ifarch x86_64
     myconf+=" -Dtarget_arch=x64 
               -Dsystem_libdir=lib64 "
%endif

%if %{?_dist_release} == "vl6"
	myconf+=" -Dgcc_version=44 "
%endif

#    -Ddisable_glibc=1 


build/linux/unbundle/replace_gyp_files.py $myconf

build/gyp_chromium build/all.gyp --depth . $myconf

ninja -v -C out/Release chrome

# Build the required SUID_SANDBOX helper
ninja -v -C out/Release chrome_sandbox

# Build the ChromeDriver test suite
ninja -v -C out/Release chromedriver
popd

%install
%{__rm} -rf %{buildroot}

%__mkdir_p %{buildroot}%{_bindir}
%__install -m 755 %{SOURCE100} %{buildroot}%{_bindir}/chromium
%ifarch x86_64
%__mkdir_p %{buildroot}%{_prefix}/lib/
%endif
# x86_64 capable systems need this
%__sed -i "s|/usr/lib/chromium|%{_libdir}/chromium|g" %{buildroot}%{_bindir}/chromium
%__mkdir_p %{buildroot}%{_libdir}/chromium/
#%__mkdir_p %{buildroot}%{_libdir}/chromium/plugins/
%__mkdir_p %{buildroot}%{_mandir}/man1/
pushd src/out/Release

# Install the file /etc/default/chromium which defines the chromium flags
mkdir -p %{buildroot}%{_sysconfdir}/default
install -m 644 %{SOURCE103} %{buildroot}%{_sysconfdir}/default/chromium


%__cp -a chrome_sandbox %{buildroot}%{_prefix}/lib/ || exit 1
%__ln_s %{_prefix}/lib/chrome_sandbox %{buildroot}/%{_libdir}/chromium/chrome-sandbox || exit 1
%__cp -a *.pak locales resources xdg-mime icudtl.dat %{buildroot}%{_libdir}/chromium/ || exit 1
%__cp -a chromedriver %{buildroot}%{_libdir}/chromium/ || exit 1

%__sed "s|xdg-mime|%{_libdir}/chromium/xdg-mime|g" xdg-settings > %{buildroot}%{_libdir}/chromium/xdg-settings || exit 1

%__cp -a chrome %{buildroot}%{_libdir}/chromium/chromium || exit 1
%__cp -a chrome.1 %{buildroot}%{_mandir}/man1/chrome.1 || exit 1
%__cp -a chrome.1 %{buildroot}%{_mandir}/man1/chromium.1 || exit 1
%__cp -a *_blob.bin %{buildroot}%{_libdir}/chromium/

popd

%__mkdir_p %{buildroot}%{_datadir}/pixmaps/
%__cp -a src/chrome/app/theme/chromium/product_logo_48.png %{buildroot}%{_datadir}/pixmaps/chromium-browser.png
for i in 22 24 48 64 128 256; do
    %__mkdir_p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps
    %__cp -a src/chrome/app/theme/chromium/product_logo_${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/chromium-browser.png || exit 1
done

%__mkdir_p %{buildroot}%{_datadir}/applications/
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE101}

%__mkdir_p %{buildroot}%{_datadir}/gnome-control-center/default-apps/
%__cp -a %{SOURCE102} %{buildroot}%{_datadir}/gnome-control-center/default-apps/

# Install the master_preferences file
%__mkdir_p %{buildroot}%{_sysconfdir}/%{name}
%__install -m 0644 %{SOURCE30} %{buildroot}%{_sysconfdir}/%{name}/$(basename %{SOURCE30} .vine)


%clean
%{__rm} -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fi 
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || :

%postun
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fi || :


%files
%defattr(-,root,root,-)
%config %{_sysconfdir}/%{name}
%config %{_sysconfdir}/default/chromium
%dir %{_datadir}/gnome-control-center
%dir %{_datadir}/gnome-control-center/default-apps
%dir %{_libdir}/chromium/
%{_bindir}/chromium
%{_libdir}/chromium/chromium
%{_libdir}/chromium/locales/
%{_libdir}/chromium/resources/
%attr(755,root,root) %{_libdir}/chromium/xdg-settings
%attr(755,root,root) %{_libdir}/chromium/xdg-mime
%{_libdir}/chromium/*.pak
%{_libdir}/chromium/*_blob.bin
%{_libdir}/chromium/icudtl.dat
%{_mandir}/man1/chrom*
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-control-center/default-apps/chromium-browser.xml
%{_datadir}/pixmaps/chromium-browser.png
%{_datadir}/icons/hicolor/*/apps/chromium-browser.png
%attr(4755,root,root) %{chrome_sandbox}
%{_libdir}/chromium/chrome-sandbox
%{_libdir}/chromium/chromedriver


%changelog
* Thu Jul 21 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 52.0.2743.82-1
- update to 52.0.2743.82

* Sat Jun 25 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.0.2704.106-1
- update to 51.0.2704.106

* Fri Jun 17 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.0.2704.103-1
- update to 51.0.2704.103

* Tue Jun 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.0.2704.84-1
- update to 51.0.2704.84

* Sat May 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.0.2704.63-1
- update to 51.0.2704.63
- add Patch103 (chromium-51.0.2704.63-revert-exception.patch)

* Sat May 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 50.0.2661.102-1
- update to 50.0.2661.102

* Tue May 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 50.0.2661.94-1
- update to 50.0.2661.94

* Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 50.0.2661.87-1
- update to 50.0.2661.87
- add BuildRequires: libatomic

* Mon Mar 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 49.0.2623.108-1
- update to 49.0.2623.108
- update Patch102 (chromium-49.0.2623.108-remove-webui_test_resources.patch)

* Sun Feb 14 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 48.0.2564.109-1
- update to 48.0.2564.109

* Sat Feb 06 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 48.0.2564.103-1
- update to 48.0.2564.103

* Thu Jan 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 48.0.2564.97-1
- update to 48.0.2564.97

* Sat Jan 23 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 48.0.2564.82-1
- update to 48.0.2564.82

* Wed Dec 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 47.0.2526.106-1
- update to 47.0.2526.106

* Tue Dec 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 47.0.2526.80-1
- update to 47.0.2526.80

* Thu Dec 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 47.0.2526.73-1
- update to 47.0.2526.73
- add Patch102 (chromium-47.0.2526.73-remove-webui_test_resources.patch)

* Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 46.0.2490.86-1
- update to 46.0.2490.86

* Fri Oct 23 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 46.0.2490.80-1
- update to 46.0.2490.80

* Mon Oct 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 46.0.2490.71-1
- update to 46.0.2490.71
- add Patch102 (chromium-46.0.2490.71-remove-webui_test_resources.patch)

* Thu Oct 08 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 45.0.2454.101-1
- update to 45.0.2454.101

* Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 45.0.2454.85-1
- update to 45.0.2454.85

* Sat Aug 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 44.0.2403.157-1
- update to 44.0.2403.157

* Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 44.0.2403.155-1
- update to 44.0.2403.155

* Sun Aug 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 44.0.2403.130-1
- update to 44.0.2403.130

* Sat Aug 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 44.0.2403.125-1
- update to 44.0.2403.125
- update Source3 (pack_chromium_source-vine.sh)
- drop Patch100

* Mon Jul 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.134-1
- update to 43.0.2357.134

* Thu Jul 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.132-1
- update to 43.0.2357.132

* Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.130-1
- update to 43.0.2357.130

* Sun Jun 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.124-1
- update to 43.0.2357.124

* Sun May 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.81-1
- update to 43.0.2357.81

* Wed May 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 43.0.2357.65-1
- update to 43.0.2357.65

* Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 42.0.2311.135-1
- update to 42.0.2311.135
- add BuildRequires: gnutls-devel
- update Patch101 (chromium-42.0.2311.90-disable-GoogleApiKeysInfoBar-vine.patch)

* Sun Sep 14 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 37.0.2062.120-1
- update to 37.0.2062.120

* Sun Sep 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 37.0.2062.103-1
- update to 37.0.2062.103

* Sun Aug 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 36.0.1985.125-1
- update to 36.0.1985.125
- remove Patch21 (chromium-gcc47.patch)
- remove Patch64 (chromium-more-codec-aliases.patch)
- remove Patch102 (chromium-35.0.1916.114-rungn.patch)
- update Source3 (pack_chromium_source-vine.sh)
- update Patch13 (chromium-36.0.1985.125-no-courgette.patch)
- update Patch90 (chromium-26.0.1368.0-glib-2.16-use-siginfo_t.patch)

* Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 35.0.1916.153-2
- change BuildRequires: eudev-libudev-devel instead of libudev-devel

* Sun Jun 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 35.0.1916.153-1
- update to 35.0.1916.153
- update Patch102 (chromium-35.0.1916.114-rungn.patch)
- update Source3 (pack_chromium_source-vine.sh)
- update Source30 (master_preferences.vine)
- update Source100 (chromium-browser-vine.sh)
- add BuildRequires: ninja

* Sat Mar 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 33.0.1750.152-1
- update to 33.0.1750.152
- update Patch13,101
- add Patch102 (chromium-33.0.1750.152-rungn.patch)

* Wed Feb 19 2014 NAKAMURA Kenta <kenta@vinelinux.org> 32.0.1700.102-2
- rebuilt with libgcrypt-1.6

* Sun Feb 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 32.0.1700.102-1
- update to 32.0.1700.102

* Sun Jan 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 32.0.1700.77-1
- update to 32.0.1700.77
- add Patch101 (chromium-disable-GoogleApiKeysInfoBar-vine.patch)

* Sat Feb 16 2013 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.1312.71-1
- update to 24.0.1312.71

* Sat Dec 29 2012 Munehiro Yamamoto <munepi@vinelinux.org> 23.0.1271.101-1
- update to 23.0.1271.101

* Mon Oct 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 22.0.1229.94-1
- update to 22.0.1229.94

* Sun Sep  2 2012 Munehiro Yamamoto <munepi@vinelinux.org> 21.0.1180.89-1
- updated to 21.0.1180.89

* Sun Aug 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 21.0.1180.84-1
- updated to 21.0.1180.84

* Fri Aug 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 21.0.1180.78-1
- updated to 21.0.1180.78
- dropped Requires: nspluginwrapper

* Thu Jun 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 20.0.1132.54-1
- updated to 20.0.1132.54

* Sun Jun 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.57-1
- updated to 19.0.1084.57

* Sat Jun  2 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.53-1
- updated to 19.0.1084.53

* Tue May 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.50-1
- updated to 19.0.1084.50

* Tue May  8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.169-1
- updated to 18.0.1025.169

* Sat Apr 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.166-1
- updated to 18.0.1025.166

* Sat Apr 14 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.163-1
- updated to 18.0.1025.163

* Tue Apr  3 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.148-1
- updated to 18.0.1025.148

* Wed Mar 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.145-1
- updated to 18.0.1025.145

* Sun Mar 25 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.140-1
- updated to 18.0.1025.140

* Thu Mar 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.130-1
- updated to 18.0.1025.130

* Tue Mar 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 18.0.1025.114-1
- updated to 18.0.1025.114

* Tue Mar 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.81-1
- updated to 17.0.963.81

* Fri Mar  9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.78-1
- updated to 17.0.963.78

* Sat Mar  3 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.65-1
- updated to 17.0.963.65

* Wed Feb 29 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.60-1
- updated to 17.0.963.60

* Fri Feb 17 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.57-1
- updated to 17.0.963.57

* Sun Feb 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.54-1
- updated to 17.0.963.54

* Sat Feb 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.52-1
- updated to 17.0.963.52

* Sat Feb  4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.77-1
- updated to 16.0.912.77

* Sun Jan  8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.75-1
- updated to 16.0.912.75

* Fri Dec 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.63-1
- updated to 16.0.912.63

* Thu Dec  1 2011 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.57-1
- updated to 16.0.912.57

* Sat Oct 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 15.0.874.116-1
- updated to 15.0.874.116

* Wed Oct 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.204-1
- updated to 14.0.835.204
- added BuildRequires: dbus-glib-devel

* Sat Sep 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.186-1
- updated to 14.0.835.186

* Sun Sep 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.163-1
- updated to 14.0.835.163

* Tue Sep 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.157-1
- updated to 14.0.835.157

* Sat Aug 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.102-1
- updated to 14.0.835.102

* Sat Aug 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.89-1
- updated to 14.0.835.89
- added Obsoletes: chromium-unstable < %{version}-%{release}

* Wed Aug 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 14.0.835.35-1
- updated to 14.0.835.35
- added BuildRequires: pulseaudio-libs-devel, Requires: pulseaudio-libs
- changed to Name: chromium14
  - Provides:  chromium-unstable = %%{version}
  - Conflicts: chromium-stable

* Wed Aug 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 13.0.782.107-1
- changed to Name: chromium
- updated to 13.0.782.107

* Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 13.0.782.88-1
- updated to 13.0.782.88
- added BuildRequires: libzip-devel
- added Provides: chromium-unstable = %%{version}
- added Conflicts: chromium-stable

* Thu Jun 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 12.0.742.93-1
- fix user-agent string (chromium-vendor-vine.patch.in)
  - move vendor string (Vine/12.0.742.91-1vl6) to the end.

* Sat Jun 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.93-1
- updated to 12.0.742.93
- fixed icon field of chromium-browser-vine.desktop

* Wed Jun 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.91-1
- updated to 12.0.742.91

* Sun Jun 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.77-1
- updated to 12.0.742.77

* Sat May 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.63-1
- updated to 12.0.742.63

* Sat May 07 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.42-1
- updated to 12.0.742.42

* Sat Apr 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 12.0.742.6-1
- updated to 12.0.742.6
- dropped/upstreamed patches
- updated our no-tests patch (chromium-12.0.742.6-no-tests.patch)

* Wed Apr 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.50-1
- updated to 11.0.696.50
- dropped some Patches for MeeGo Netbook

* Tue Apr 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.35-1
- updated to 11.0.696.35

* Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.29-1
- updated to 11.0.696.29
- dropped "--no-first-run" in command line options of chromium-browser-vine.sh

* Thu Mar 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.22-1
- updated to 11.0.696.22
- improved chromium-browser-vine.sh
  - merged from chromium-browser-vine.desktop of 11.0.696.17-1

* Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.20-1
- updated to 11.0.696.20
- improved chromium-browser-vine.desktop

* Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.17-1
- updated to 11.0.696.17

* Sat Mar 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.15-1
- updated to 11.0.696.15
  - ready for Vine Linux 6 release
- dropped BuildRequires: v8-devel, libicu-devel

* Wed Mar 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.0.696.5-1
- updated to 11.0.696.5 with v8 3.2.0
- added BuildRequires: pam-devel

* Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 10.0.651.0-2
- rebuilt with libevent-2.0.10

* Sat Jan 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 10.0.651.0-1
- updated to 10.0.651.0 with v8 3.0.12
- added BuildRequires: 
  - libpaper-devel
  - python-devel
- added built header file: libavutil/avconfig.h %%prep
- unexport MOZ_PLUGIN_PATH in chromium-browser-vine.sh

* Sun Dec 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 10.0.622.0-1
- updated to 10.0.622.0
- added BuildRequires: libXt-devel

* Sat Dec 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 10.0.605.0-1
- updated to 10.0.605.0
- added BuildRequires: 
  - libXdamage-devel
  - hunspell-devel

* Sat Dec 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 9.0.598.0-1
- updated to 9.0.598

* Fri Nov 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 9.0.593.0-1
- updated to 9.0.593

* Thu Nov 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 9.0.582.0-1
- updated to 9.0.582
- added Requires: xdg-utils

* Thu Nov 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 9.0.578.0-1
- updated to 9.0.578

* Sat Oct 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 9.0.569.0-1
- updated to 9.0.569

  * Mon Oct 25 2010 tittiatcoke@gmail.com
  - Update to 9.0.564 build
    * Added specific patches for MeeGo.
    * We are now using shared libraries for Chromium
    * Spec-file cleanup (Thanks to prusnak)

* Sat Oct 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 8.0.556.0-1
- updated to snapshot 8.0.556

* Sun Oct 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 8.0.551.0-1
- updated to snapshot 8.0.551

* Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 7.0.527.0-1
- updated to snapshot 7.0.527

* Thu Sep 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 7.0.519.0-1
- updated to snapshot 7.0.519

* Fri Sep 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 7.0.513.0-1
- updated to snapshot 7.0.513
  - updated chromium-vendor-vine.patch.in

* Sat Aug 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 7.0.507.0-1
- updated to snapshot 7.0.507

* Wed Aug 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 7.0.498.0-1
- updated to snapshot 7.0.498

* Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 6.0.493.0-1
- updated to snapshot 6.0.493
- used with_system_icu (for vl6)
  - added BuildRequires: libicu-devel

* Thu Jul 22 2010 IWAI, Masaharu <iwai@alib.jp> 6.0.454.0-2vl5
- build for Vine Linux 5.x
  - add BuildRequires: gnome-keyring-devel

* Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 6.0.454.0-1
- updated to snapshot 6.0.454
- added BuildRequires: 
  - sqlite3-devel
  - gnutls-devel
  - libgnome-keyring-devel

* Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 6.0.431.0-1
- updated to snapshot 6.0.431.0 r49253
- added BuildRequires: cups-devel

* Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 6.0.405.0-1
- updated to snapshot 6.0.405.0 r47263

* Fri Apr 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.378.0-2
- unused with_system_icu (for vl6)
  - used icu-4.2.1-chromium.5.0.353.0.svn41449 (for vl6)

* Wed Apr 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.378.0-1
- updated to snapshot 5.0.378.0 r44472
  - used with_system_icu (for vl6)
  - added icu-4.2.1-chromium.5.0.353.0.svn41449.tar.bz2 (for vl5)

* Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.372.0-1
- updated to snapshot 5.0.372.0 r43947
- added BuildRequires: glew-devel
- changed Group tag to Applications/Internet
- added Summary(ja) and %%description -l ja 

* Mon Apr 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.365.0-1
- updated to snapshot 5.0.365.0 r42966
- merged 5.0.353.0-4vl5
 * Fri Apr  2 2010 IWAI, Masaharu <iwai@alib.jp> 5.0.353.0-4vl5
 - build on Vine Linux 5.1
   - add BuildRequires: libstdc++34 libstdc++34-devel for Vine5

* Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.364.0-1
- updated to snapshot 5.0.364.0 r42779

* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.359.0-1
- updated to snapshot 5.0.359.0 r42116
- dropped chromium-20100122-ubuntu-html5-video-mimetypes.patch

* Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.353.0-4
- fixed master_preferences.vine, little

* Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.353.0-3
- fixed to install master_preferences
- dropped chromium-5.0.353-no-ffmpeg-vine.patch

* Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.353.0-2
- applied chromium-5.0.353-no-ffmpeg-vine.patch

* Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.353.0-1
- updated to snapshot 5.0.353.0 r41449
  * Wed Mar 10 2010 bgmerrell@novell.com
  - Add master_preferences source file and install it to /etc/chromium.
  - Create a new patch (chromium-master-prefs-path.patch) which tells
    chromium to look in /etc/chromium for the master_preferences file
    (instead of looking in the default directory, which is the same
    directory as the 'chrome' binary).

* Sun Feb 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.335.0-1
- updated to snapshot 5.0.335.0 r39556

* Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.330.0-2
- applied chromium-20100122-ubuntu-html5-video-mimetypes.patch from Gentoo

* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.330.0-1
- updated to snapshot 5.0.330.0 r39074

* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.329.0-5
- use_system_ffmpeg

* Tue Feb 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.329.0-4
- added Requires:  nspluginwrapper
- fixed a symbolic link of plugins directory with nspluginwrapper

* Tue Feb 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.329.0-3
- replaced %%{SOUECE20} to chromium-vendor-vine.patch.in

* Tue Feb 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.329.0-2
- added BuildRequires: mesa-libGLU-devel
- added BuildRequires: libstdc++34 libstdc++34-devel for vl5

* Tue Feb 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 5.0.329.0-1
- built based on chromium-5.0.329.0-167.1.src.rpm of OpenSuse

  * Sun Nov 29 2009 - tittiatcoke@gmail.com - 4.0.260.0
  - Update to 4.0.260
  * Fri Nov 27 2009 - tittiatcoke@gmail.com - 4.0.259.0
  - Update to 4.0.259
  * Thu Nov 26 2009 - tittiatcoke@gmail.com - 4.0.258.0
  - Update to 4.0.258
  * Tue Nov 24 2009 - tittatcoke@gmai.com - 4.0.257.0
  - In order to complete prevent the wrong v8 version to be used, the Chromium build has been
    changed to having an built-in v8 
  * Tue Nov 24 2009 - dbuck@example.com - 4.0.257.0
  - Re-base patches.  Fixed a few patch errors.  Rename some patches to better correspond with function.  Removed some patches.
  - Minor SPEC changes.  I changed the v8 requirement to be exact, instead of greater than a specific version.
  * Sat Oct 24 2009 - Pavol Rusnak <prusnak@suse.cz> - 4.0.223.5
  - don't create desktop files in wrapper, fix LD_LIBRARY_PATH (chromium-fix-wrapper.patch)
  * Tue Oct 20 2009 - Raymond Wooninck >tittiatcoke@gmail.com> - 4.0.223.5
  - update to newer svn snapshot
    + Obsoletes fwrite patch (included upstream)
  * Fri Oct 16 2009 - Raymond Wooninck <tittiatcoke@gmail.com> - 4.0.223.2
  - update to newer svn snapshot
    + Requires newer version of v8
  * Thu Oct 15 2009 - Pavol Rusnak <prusnak@suse.cz> - 4.0.222.6
  - do not force SSE on x86 (drop-sse.patch)
  * Tue Oct 13 2009 - Raymond Wooninck <tittiatcoke@gmail.com> - 4.0.222.6
  - Update to newer svn snapshot
  - Fixed spec file in order to build
  - Included patch to build with system zlib
  * Mon Oct 12 2009 - Pavol Rusnak <prusnak@suse.cz> 4.0.222.2
  - package renamed to chromium
  - cleaned up spec file
  * Tue Oct 6 2009 - dbuck <dbuck@example.com> - 4.0.222.2
  - v8 is now built as a separate package, and is required
  - included many patches to use system libraries: v8, icu, libxml2, libxslt, libjpeg, libpng, libevent, bzip2, zlib, nspr, nss
  * Sun Oct 1 2009 - dbuck <dbuck@example.com> - 4.0.221.1
  - included a newer DEP than is in svn, native_client@823.  So things should compile cleanly now
  * Sun Aug 31 2009 - dbuck <dbuck@example.com> - 4.0.204.0
  - initial build

#% changelog
* Sun Jan 24 2010 prusnak@suse.cz
- added vendor to user agent (chromium-vendor.patch.in)
* Sun Nov 29 2009 prusnak@suse.cz
- added --enable-sync to wrapper to enable bookmark sync
* Sun Nov 29 2009 tittiatcoke@gmail.com  
- Update to 4.0.260
* Fri Nov 27 2009 tittiatcoke@gmail.com  
- Update to 4.0.259
* Thu Nov 26 2009 tittiatcoke@gmail.com  
- Update to 4.0.258
* Tue Nov 24 2009 tittatcoke@gmai.com  
- In order to complete prevent the wrong v8 version to be used,
  the Chromium build has been changed to having an built-in v8
* Tue Nov 24 2009 dbuck@example.com  
- Re-base patches.
- Fixed a few patch errors.
- Rename some patches to better correspond with function.
- Removed some patches.
- Minor SPEC changes.
- I changed the v8 requirement to be exact, instead of greater than a specific version.
* Fri Nov 13 2009 tittiatcoke@gmail.com
- update to 247.0 svn 31928
* Fri Oct 30 2009 tittiatcoke@gmail.com
- update to 229.0 svn 30454
  + Fix regression where popups and app frames lost their titlebars.
  + Makes it so that when a folder is open on the bookmark bar
    and the mouse moves over another folder, the menu for that
    folder is shown.
  + Lazily create the find bar.
  + Polish to the gmail checker sample.
  * New, crisper icons that are exactly 19x19
  * Add a loading animation at the beginning before Gmail
    responds.
  * Fix a bug where we sometimes don't update the UI after a
    logout/login cycle.
  + Refactor widget methods to support desktop notifications,
    including GTK stubs.
  + Find-in-page should not ding while deleting characters.
  + Add SSL wrapper for linux and mac.  This allows notifier to
    use chrome's SSL layer instead of OpenSSL.
  + Add three of the six extensions to PAC that Internet Explorer supports.
  + WebSocket support in chromium. (Run with --enable-web-sockets
    enables WebSocket features.)
  + Do not allow GTK File Chooser dialogs to return directories.
  + Fix the notifier SSL layer to make notifications work for
    Linux Bookmark sync.
  + linux: don't override mouse selection behavior in omnibox
* Sun Oct 25 2009 tittiatcoke@gmail.com
- Update to 224.4 svn 30027
  + First cut at new page and browser action docs based
    on new API. Deleted old stuff.
  + Add suppression for new memory leak caused by WebKit merge 49830:49844
  + Cleanup: change PIDs to base::ProcessId (or pid_t, as appropriate)
  + Minimize dependency of user scripts
  + Fixup the flip_framer eof-handling semantics now that we have
    the FIN bit in place
  + app depends on x11 because of active_window_watcher_x
  + Adding two images for the new Extension managment UI
  + Removing hard-coded Chrome Frame output path
  + Rearrange clipboard code
  + Fix crash bug when attempting to download a url with unsupported scheme,
    e.g. 'data:', by 'Alt + Click'
  + GTK: Change text for extension download UI
  + Ignore invalid urls on command line
  + Make dropped tabs animate from where they were dropped.
  + Make room for the full width of the tab placeholder.
  + Make tab dragging as smooth as glass.
  + Remove an annoying NOTIMPLEMNETED
  + Extensions: guarantee removal of BROWSER_WINDOW_READY registration
  + If we're in the middle of a drag, don't allow the user to middle
    click to close or right click for the context menu
  + "Fix" a NOTIMPLEMENTED on Linux by using the default password store
  + Remove +x bit from files that shouldn't have it
  + Fold first 3 channels of multichannel instead of 5.  Use fixed point
  + Adding new image needed for the managment UI
  + Fix a race bug where content scripts would not apply to the first page load
  + Make escape remove a bookmark if it's just been added (but not if it already existed)
  + Fix bubbles deactivating the opaque frame
  + Allow ESC to cancel ALT+SHIFT+T in Toolbar
  + ake all pepper plugins default to windowless and transparent
  + Add styles for printing
  + Implement the new extension management UI
  + Add support for to automation interface load install and load extensions
  + GTK: theme the info bar border
  + Update V8 to version 1.3.16.1
  + Introduce WebSecurityPolicy for security related methods
  + New button scheme...borders are separate from the inner contents so
    that they can be highlighted / depressed independently
  + When opening Chrome maximized with an application window already
    running, the Chrome window was not activated
  + Fix compatibility problems with FileZilla FTP Server
  + Remove the extension shelf on Linux
  + Fix the proxy host and port string to start with http:// if it does not already
  + Enable HTML5 databases for all extension renderer processes
* Sat Oct 24 2009 prusnak@opensuse.org  
- don't create desktop files in wrapper
- fix LD_LIBRARY_PATH (chromium-fix-wrapper.patch)
* Tue Oct 20 2009 tittiatcoke@gmail.com  
- update to newer svn snapshot
  + Obsoletes fwrite patch (included upstream)
* Fri Oct 16 2009 tittiatcoke@gmail.com  
- update to newer svn snapshot
  + Requires newer version of v8
* Thu Oct 15 2009 prusnak@suse.cz  
- do not force SSE on x86 (drop-sse.patch)
* Tue Oct 13 2009 tittiatcoke@gmail.com  
- Update to newer svn snapshot
- Fixed spec file in order to build
- Included patch to build with system zlib
* Mon Oct 12 2009 prusnak@suse.cz  
- package renamed to chromium
- cleaned up spec file
* Tue Oct  6 2009 dbuck@example.com  
- v8 is now built as a separate package, and is required
- included many patches to use system libraries:
    v8, icu, libxml2, libxslt, libjpeg, libpng, libevent, bzip2, zlib, nspr, nss
* Thu Oct  1 2009 dbuck@example.com  
- included a newer DEP than is in svn, native_client@823
- things should compile cleanly now
* Mon Aug 31 2009 dbuck@example.com  
- initial build