chromium-ffmpeg-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Name: chromium-ffmpeg
  2. Summary: The ffmpeg lib for Google's opens source browser Chromium
  3. Summary(ja): Google オープンソースブラウザ Chromium 用 ffmpeg ライブラリ
  4. Version: 17.0.963.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. BuildRequires: zlib-devel
  11. Requires: chromium
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. %description
  14. FFMPEG library built from the chromium sources.
  15. %prep
  16. %setup -q -c %{name}-%{version}
  17. %build
  18. ## create make files
  19. pushd chromium-%{version}
  20. ##NOTE: Use --depth as a workaround
  21. ./build/gyp_chromium -f make third_party/ffmpeg/ffmpeg.gyp \
  22. -Dffmpeg_branding=Chrome \
  23. -Dlinux_fpic=1 \
  24. %ifarch %{ix86}
  25. -Dtarget_arch=ia32 \
  26. %endif
  27. %ifarch x86_64
  28. -Ddisable_sse2=1 \
  29. -Dtarget_arch=x64 \
  30. %endif
  31. %if %{?_dist_release} == "vl6"
  32. -Dgcc_version=44 \
  33. %endif
  34. \
  35. --depth=. \
  36. ;
  37. #%__make -r %{?_smp_mflags} ffmpeg BUILDTYPE=Release V=1
  38. cd third_party/ffmpeg
  39. %__make -r %{?_smp_mflags} -f ffmpeg.Makefile BUILDTYPE=Release V=1
  40. popd
  41. %install
  42. %__rm -rf %{buildroot}
  43. %__mkdir_p %{buildroot}%{_libdir}/chromium/
  44. pushd chromium-%{version}/third_party/ffmpeg/out/Release
  45. %__cp -a lib*.so %{buildroot}%{_libdir}/chromium/
  46. popd
  47. %clean
  48. %{__rm} -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root,-)
  51. %dir %{_libdir}/chromium
  52. %{_libdir}/chromium/libffmpegsumo.so
  53. %changelog
  54. * Sun Feb 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 17.0.963.54-1
  55. - updated to 17.0.963.54
  56. * Mon Jan 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.75-1
  57. - updated to 16.0.912.75
  58. - added BuildRequires dependendies
  59. * Fri Dec 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 16.0.912.63-1
  60. - initial release for Vine Linux