chromium-ffmpeg-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Name: chromium-ffmpeg
  2. Summary: The ffmpeg lib for Google's opens source browser Chromium
  3. Summary(ja): Google オープンソースブラウザ Chromium 用 ffmpeg ライブラリ
  4. Version: 19.0.1084.50
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. # use the official tarball:
  9. Source0: http://gsdview.appspot.com/chromium-browser-official/chromium-%{version}.tar.bz2
  10. Patch0: chromium-ffmpeg-19.0.1084.50-drop-dependencies-base-gyp.patch
  11. Requires: chromium >= %{version}
  12. BuildRequires: zlib-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %description
  15. FFMPEG library built from the chromium sources.
  16. %description -l ja
  17. chromium のソースから FFMPEG ライブラリをビルドします。
  18. %prep
  19. %setup -q -c %{name}-%{version}
  20. %patch0 -p1 -b .vine
  21. %build
  22. ## create make files
  23. pushd chromium-%{version}
  24. ##NOTE: Use --depth as a workaround
  25. ./build/gyp_chromium -f make third_party/ffmpeg/ffmpeg.gyp \
  26. -Dffmpeg_branding=Chrome \
  27. -Dlinux_use_gold_flags=0 \
  28. -Dlinux_use_gold_binary=0 \
  29. -Ddisable_nacl=1 \
  30. -Dlinux_fpic=1 \
  31. -Ddisable_sse2=1 \
  32. %ifarch %{ix86}
  33. -Dtarget_arch=ia32 \
  34. %endif
  35. %ifarch x86_64
  36. -Dtarget_arch=x64 \
  37. %endif
  38. %if %{?_dist_release} == "vl6"
  39. -Dgcc_version=44 \
  40. %endif
  41. \
  42. --depth=. \
  43. ;
  44. #%__make -r %{?_smp_mflags} ffmpeg BUILDTYPE=Release V=1
  45. cd third_party/ffmpeg
  46. %__make -r %{?_smp_mflags} -f ffmpeg.Makefile BUILDTYPE=Release V=1 disable_nacl=1
  47. popd
  48. %install
  49. %__rm -rf %{buildroot}
  50. %__mkdir_p %{buildroot}%{_libdir}/chromium/
  51. pushd chromium-%{version}/third_party/ffmpeg/out/Release
  52. %__cp -a lib*.so %{buildroot}%{_libdir}/chromium/
  53. popd
  54. %clean
  55. %{__rm} -rf %{buildroot}
  56. %files
  57. %defattr(-,root,root,-)
  58. %dir %{_libdir}/chromium
  59. %{_libdir}/chromium/libffmpegsumo.so
  60. %changelog
  61. * Tue May 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 19.0.1084.50-1
  62. - updated to 19.0.1084.50
  63. - applied chromium-ffmpeg-19.0.1084.50-drop-dependencies-base-gyp.patch
  64. * Sun Feb 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.54-1
  65. - updated to 17.0.963.54
  66. * Mon Jan 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.75-1
  67. - updated to 16.0.912.75
  68. - added BuildRequires dependendies
  69. * Fri Dec 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.63-1
  70. - initial release for Vine Linux