Parcourir la source

updated chromium

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5624 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi il y a 13 ans
Parent
commit
18335b13e0
2 fichiers modifiés avec 50 ajouts et 50 suppressions
  1. 47 47
      c/chromium/chromium17-vl.spec
  2. 3 3
      c/chromium/pack_chromium17_source-vine.sh

+ 47 - 47
c/chromium/chromium16-vl.spec → c/chromium/chromium17-vl.spec

@@ -4,33 +4,47 @@
 
 %define pkgname chromium
 
+#% define with_system_jpeg 1
+
 #% define with_system_icu 1
 #% define with_system_v8 1
+%define with_system_vpx 1
 
 #NOTE: src/third_party/ffmpeg/ffmpeg.gyp: 
-#     libvpx doesn't currently supply a pkg-config file, so we assume that
-#     -lvpx is sufficient.
-%define with_system_vpx 1
+# There's a couple key GYP variables that control how FFmpeg is built:
+#   ffmpeg_branding
+#     Controls whether we build the Chromium or Google Chrome version of
+#     FFmpeg.  The Google Chrome version contains additional codecs.
+#     Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS.
+#   use_system_ffmpeg
+#     When set to non-zero will build Chromium against the system FFmpeg
+#     headers via pkg-config.  When Chromium is launched it will assume that
+#     FFmpeg is present in the system library path.  Default value is 0.
+#   build_ffmpegsumo
+#     When set to zero will build Chromium against the patched ffmpegsumo
+#     headers, but not build ffmpegsumo itself.  Users are expected to build
+#     and provide their own version of ffmpegsumo.  Default value is 1.
+%define with_system_ffmpeg 1
 
 %global chrome_sandbox %{_prefix}/lib/chrome_sandbox
 
-#Name:           chromium16
+#Name:           chromium17
 Name:           chromium
 Summary:        Google's opens source browser project
 Summary(ja):    Googleのオープンソースウェブブラウザ
 #'
-Version:        16.0.912.75
+Version:        17.0.963.54
 Release:        1%{?_dist_release}
 License:        BSD
 Group:          Applications/Internet
 Source0:        %{pkgname}-%{version}.tar.xz
 # Script used to create the %{pkgname}-%{version}.tar.xz archive from 
 # a official tarball: 
-# http://gsdview.appspot.com/chromium-browser-official/chromium-16.0.910.XXX.tar.bz2
-Source3:        pack_chromium16_source-vine.sh
+# http://gsdview.appspot.com/chromium-browser-official/chromium-17.0.963.XXX.tar.bz2
+Source3:        pack_chromium17_source-vine.sh
 # Official ffmpeg headers
-#Source8:        ffmpeg-0.6-headers.tar.xz
-Source8:        ffmpeg-0.9-headers.tar.xz
+Source8:        ffmpeg-0.6-headers.tar.xz
+#Source8:        ffmpeg-0.9-headers.tar.xz
 # Patch template which adds vendor to user agent
 ##!!Source20:       chromium-vendor.patch.in
 Source20:       chromium-vendor-vine.patch.in
@@ -62,24 +76,18 @@ Conflicts:      chromium-unstable
 Patch1:         chromium-gcc46.patch
 Patch4:         chromium-no-sqlite-debug.patch
 Patch8:         chromium-codechanges-zlib.patch
-#Patch12:        chromium-no-test-sources.patch
 Patch13:        chromium-no-courgette.patch
 Patch14:        chromium-master-prefs-path.patch
 Patch17:        chromium-system-glew.patch
 Patch18:        chromium-system-expat.patch
-#Patch19:        chromium-system-zlib.patch
-#Patch20:        chromium-6.0.425.0-ffmpeg-no-pkgconfig.patch
-#Patch20:        chromium-16.0.912.63-ffmpeg-no-pkgconfig.patch
-Patch20:        chromium-16.0.912.63-ffmpeg-0.9-no-pkgconfig.patch
-Patch21:        chromium-7.0.542.0-media-probe.patch
+Patch20:        chromium-6.0.425.0-ffmpeg-no-pkgconfig.patch
 Patch25:        tcmalloc-factory.patch
 Patch26:        chromium-remoting-build-fix.diff
 Patch28:        chromium-7.0.500.0-system-speex.patch
-#Patch29:        chromium-7.0.510.0-system-ffmpeg.patch
 Patch32:        chromium-7.0.542.0-system-libvpx.patch
-#Patch34:        chromium-7.0.542.0-codechanges-system-minizip-v8.patch
 Patch62:        chromium-norpath.patch
 Patch63:        chromium-6.0.406.0-system-gyp-v8.patch
+Patch64:        chromium-more-codec-aliases.patch
 
 # Vine
 #Patch100:       chromium-15.0.874.116-no-tests.patch
@@ -106,7 +114,7 @@ BuildRequires:  libevent
 BuildRequires:  expat-devel
 ##!!BuildRequires:  libgnutls-devel
 BuildRequires:  gnutls-devel
-BuildRequires:  libjpeg-devel
+%{?with_system_jpeg:BuildRequires:  libjpeg-devel}
 BuildRequires:  libpng-devel
 BuildRequires:  libstdc++-devel >= 4.4
 %{?with_system_vpx:BuildRequires:  libvpx-devel >= 0.9.5}
@@ -195,30 +203,26 @@ xz -dc %{SOURCE0} | %__tar -xf - || exit 1
 %endif
 %patch62 -p1
 %{?with_system_v8:%patch63 -p1}
+%patch64
 #%patch100 -p1 -b .vine
 %patch8 -p1
-#%patch12 -p1
 %patch13 -p1
 %patch14 -p1
 %patch17 -p1
 %patch18 -p1
-#%patch19 -p1
 %patch20 -p1
-%patch21 -p1
-%patch25 -p1
+#%patch25 -p1
 %patch26 -p1
 %patch28 -p1
-#%patch29 -p1
 %{?with_system_vpx:%patch32 -p1}
-%{?with_system_v8:%patch34 -p1}
 %patch4 -p1
 
 
 pushd src/third_party/ffmpeg/
 %__tar xf %{SOURCE8} || exit 1
 ## built header file: avconfig.h
-[ -f ffmpeg-0.9-headers/libavutil/avconfig.h ] && exit 1
-cat > ffmpeg-0.9-headers/libavutil/avconfig.h <<EOF
+[ -f ffmpeg-0.6-headers/libavutil/avconfig.h ] && exit 1
+cat > ffmpeg-0.6-headers/libavutil/avconfig.h <<EOF
 /* Generated by ffconf */
 #ifndef AVUTIL_AVCONFIG_H
 #define AVUTIL_AVCONFIG_H
@@ -228,10 +232,6 @@ cat > ffmpeg-0.9-headers/libavutil/avconfig.h <<EOF
 EOF
 popd
 
-#%__rm -rf src/third_party/libvpx/
-%__rm -rf src/third_party/speex/
-%__rm -rf src/third_party/nss src/third_party/nspr
-
 # apply vendor patch after substitution
 %__sed "s:RPM_VERSION:%{version}-%{release}:" %{SOURCE20} | patch -p0
 
@@ -245,7 +245,9 @@ popd
 PARSED_OPT_FLAGS=`echo \'$RPM_OPT_FLAGS -DUSE_SYSTEM_LIBEVENT -fPIC -fno-ipa-cp -fno-strict-aliasing \' | %__sed "s/ /',/g" | %__sed "s/',/', '/g"`
 for i in src/build/common.gypi; do
         %__sed -i "s|'-march=pentium4',||g" $i
+%ifnarch x86_64
         %__sed -i "s|'-mfpmath=sse',||g" $i
+%endif
         %__sed -i "s|'-O<(debug_optimize)',||g" $i
         %__sed -i "s|'-m32',||g" $i
         %__sed -i "s|'-fno-exceptions',|$PARSED_OPT_FLAGS|g" $i
@@ -259,12 +261,15 @@ pushd src
     -Dlinux_sandbox_path=%{chrome_sandbox} \
     -Dlinux_sandbox_chrome_path=%{_libdir}/chromium/chromium \
     -Duse_openssl=0 \
-    -Duse_system_ffmpeg=1 \
+    %{?with_system_ffmpeg:-Duse_system_ffmpeg=1} \
+    %{!?with_system_ffmpeg:-Duse_system_ffmpeg=0} \
+    -Dbuild_ffmpegsumo=0 \
     -Duse_system_zlib=1 \
     -Duse_system_libpng=1 \
     -Duse_system_bzip2=1 \
     -Duse_system_libbz2=1 \
-    -Duse_system_libjpeg=1 \
+    %{?with_system_jpeg:-Duse_system_libjpeg=1} \
+    %{!?with_system_jpeg:-Duse_system_libjpeg=0} \
     -Duse_system_libxml=1 \
     -Duse_system_libxslt=1 \
     -Duse_system_libevent=1 \
@@ -280,11 +285,11 @@ pushd src
     -Ddisable_nacl=1 \
     -Djavascript_engine=v8 \
     -Dlinux_fpic=1 \
-    -Ddisable_sse2=1 \
     %ifarch %{ix86}
         -Dtarget_arch=ia32 \
     %endif
     %ifarch x86_64
+        -Ddisable_sse2=1 \
         -Dtarget_arch=x64 \
     %endif
     -Dno_strict_aliasing=1 \
@@ -349,14 +354,6 @@ pushd %{buildroot}%{_libdir}/%{pkgname}
 %else
 %{__ln_s} %{_libdir}/mozilla/plugins plugins
 %endif
-
-## support ffmpeg libs
-touch %{buildroot}%{_libdir}/libavcodec.so.52
-%{__ln_s} %{_libdir}/libavcodec.so.52 libavcodec.so.52
-touch %{buildroot}%{_libdir}/libavformat.so.52
-%{__ln_s} %{_libdir}/libavformat.so.52 libavformat.so.52
-touch %{buildroot}%{_libdir}/libavutil.so.50
-%{__ln_s} %{_libdir}/libavutil.so.50 libavutil.so.50
 popd
 
 # Install the master_preferences file
@@ -405,15 +402,18 @@ fi || :
 %{_libdir}/chromium/resources.pak
 %{_libdir}/chromium/locales/
 %{?_with_shared_library:%{_libdir}/chromium/lib*.so}
-%{_libdir}/chromium/libavcodec.so.52
-%{_libdir}/chromium/libavutil.so.50
-%{_libdir}/chromium/libavformat.so.52
-%exclude %{_libdir}/libavcodec.so.52
-%exclude %{_libdir}/libavutil.so.50
-%exclude %{_libdir}/libavformat.so.52
 %attr(4755,root,root) %{chrome_sandbox}
 
 %changelog
+* 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
 

+ 3 - 3
c/chromium/pack_chromium16_source-vine.sh → c/chromium/pack_chromium17_source-vine.sh

@@ -86,7 +86,7 @@ rm -rf chrome/test/data/
 #rm -rf third_party/icu/source/  
 rm -rf native_client/tests/
 #rm -rf third_party/libvpx/ 
-#rm -rf third_party/speex/
+rm -rf third_party/speex/
 # Remove other directories (untested)
 cd $chromium_tgt_dir/src/third_party
 # First, just take out the sources for the items which have already been conditionalized so we're sure we're not using them.
@@ -95,7 +95,7 @@ cd $chromium_tgt_dir/src/third_party
 rm -rf bzip2/*.c bzip2/*.h bzip2/LICENSE
 
 # libjpeg
-rm -rf libjpeg/*.c libjpeg/README*
+#rm -rf libjpeg/*.c libjpeg/README*
 
 # libpng
 rm -rf libpng/*.c libpng/*.h libpng/README* libpng/LICENSE
@@ -110,7 +110,7 @@ rm -rf libxml/*c libxml/*.h libxml/*.in libxml/*sh libxml/*.m4 libxml/*.py libxm
 rm -rf libxslt/build libxslt/libexslt libxslt/libxslt libxslt/linux libxslt/mac libxslt/win32 libxslt/AUTHORS libxslt/COPYING libxslt/ChangeLog libxslt/FEATURES libxslt/INSTALL libxslt/NEWS libxslt/README libxslt/TODO libxslt/*.h libxslt/*.m4 libxslt/compile libxslt/config* libxslt/depcomp libxslt/*sh libxslt/*.in libxslt/*.spec libxslt/missing
 
 # Next, nuke the whole directories for things not yet conditionalized:
-#rm -rf nss/ nspr/ 
+rm -rf nss/ nspr/ 
 
 # expat is only built on windows
 rm -rf expat/files