chromium-ffmpeg-vl.spec 2.6 KB

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