ffmpeg-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. #TODO: Build with openjpeg, opencore-amr
  2. #TODO: add make test to %%check section
  3. #% define svndate 20100625
  4. ## available for v0.6 or lower
  5. %define with_libfaad 1
  6. %define with_faac 1
  7. %define with_vaapi 1
  8. %define with_libvpx 1
  9. Summary: Digital VCR and streaming server
  10. Name: ffmpeg
  11. Version: 0.6.3
  12. Release: 3%{?svndate:.%svndate}%{?_dist_release}
  13. Source: http://ffmpeg.org/releases/%{name}-%{?svndate:%svndate}%{!?svndate:%version}.tar.bz2
  14. Source1: %{name}-snapshot.sh
  15. # pre-built man files
  16. Source90: ffmpeg.1.gz
  17. Source91: ffplay.1.gz
  18. Source92: ffserver.1.gz
  19. Source93: ffprobe.1.gz
  20. # CVE-2011-3362
  21. # from http://git.videolan.org/?p=ffmpeg.git;a=patch;h=91d5da9321c52e8197fb14046ebb335f3e6ff4a0;hp=08ddfb77a1aff378345026ba49fea9fb93ff1e70
  22. Patch1: ffmpeg-0.6.3-CVE-2011-3362.patch
  23. # CVE-2011-3973, CVE-2011-3974
  24. # from http://git.videolan.org/?p=ffmpeg.git;a=patch;h=bd968d260aef322fb32e254a3de0d2036c57bd56;hp=00c5cf4beb0e45e936544a5766b56e241ae03234
  25. Patch2: ffmpeg-0.6.3-CVE-2011-3974.patch
  26. License: GPLv2+
  27. Group: Applications/Multimedia
  28. URL: http://ffmpeg.org/
  29. BuildRequires: bzip2-devel
  30. ##BuildRequires: dirac-devel
  31. BuildRequires: gsm-devel
  32. BuildRequires: imlib2-devel
  33. BuildRequires: libdc1394-devel
  34. BuildRequires: libraw1394-devel
  35. BuildRequires: librtmp-devel >= 2.3
  36. BuildRequires: libtheora-devel
  37. %{?with_vaapi:BuildRequires:libva-devel >= 0.31.0}
  38. BuildRequires: libvdpau-devel
  39. BuildRequires: libvorbis-devel
  40. %{?with_libvpx:BuildRequires: libvpx-devel >= 0.9.1}
  41. %{?_with_opencore_amr:BuildRequires: opencore-amr-devel}
  42. ##BuildRequires: openjpeg-devel
  43. ##BuildRequires: schroedinger-devel
  44. BuildRequires: SDL-devel
  45. BuildRequires: speex-devel
  46. ##BuildRequires: texi2html
  47. BuildRequires: zlib-devel
  48. BuildRequires: libogg-devel
  49. BuildRequires: yasm
  50. # *-devel packages provided by other self-build-* should only be listed
  51. # in self-build-%{name}.spec as PreReq.
  52. #BuildRequires: a52dec-devel
  53. #BuildRequires: faac-devel
  54. #BuildRequires: lame-devel
  55. #BuildRequires: libdca-devel
  56. #BuildRequires: faad2-devel
  57. #BuildRequires: x264-devel >= 0.0.0-15.20110322
  58. #BuildRequires: xvidcore-devel
  59. Requires: %{name}-libs = %{version}-%{release}
  60. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  61. %description
  62. FFMpeg is a complete and free Internet live audio and video
  63. broadcasting solution for Linux/Unix. It also includes a digital
  64. VCR. It can encode in real time in many formats including MPEG1 audio
  65. and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
  66. %package libs
  67. Summary: Libraries for %{name}
  68. Group: System Environment/Libraries
  69. %description libs
  70. FFMpeg is a complete and free Internet live audio and video
  71. broadcasting solution for Linux/Unix. It also includes a digital
  72. VCR. It can encode in real time in many formats including MPEG1 audio
  73. and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
  74. This package contains the libraries for %{name}.
  75. %package devel
  76. Summary: Development package for %{name}
  77. Group: Development/Libraries
  78. Requires: %{name}-libs = %{version}-%{release}
  79. Requires: pkgconfig
  80. %description devel
  81. FFMpeg is a complete and free Internet live audio and video
  82. broadcasting solution for Linux/Unix. It also includes a digital
  83. VCR. It can encode in real time in many formats including MPEG1 audio
  84. and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
  85. This package contains development files for %{name}.
  86. %prep
  87. %setup -q -n %{name}-%{?svndate:%svndate}%{!?svndate:%version}
  88. #% setup -q
  89. #%patch0 -p1 -b .textrel
  90. %patch1 -p1 -b .CVE-2011-3362
  91. %patch2 -p1 -b .CVE-2011-3974
  92. %build
  93. %ifarch ppc
  94. # compile with -mlongcall on ppc/ppc64 (rf804)
  95. export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mlongcall"
  96. %endif
  97. ./configure \
  98. --prefix=%{_prefix} \
  99. --incdir=%{_includedir}/%{name} \
  100. --shlibdir=%{_libdir} \
  101. --libdir=%{_libdir} \
  102. --mandir=%{_mandir} \
  103. --arch=%{_target_cpu} \
  104. %ifarch %{ix86}
  105. --cpu=%{_target_cpu} \
  106. %endif
  107. %ifarch ppc
  108. --cpu=g3 \
  109. --enable-pic \
  110. %endif
  111. --enable-runtime-cpudetect \
  112. --extra-cflags="$RPM_OPT_FLAGS" \
  113. %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \
  114. --enable-bzlib \
  115. --enable-zlib \
  116. --enable-libdc1394 \
  117. %{?_with_libdirac:--enable-libdirac} \
  118. %{?with_faac:--enable-libfaac --enable-nonfree} \
  119. %{?with_libfaad:--enable-libfaad} \
  120. --enable-libgsm \
  121. --enable-libmp3lame \
  122. %{?_with_openjpeg:--enable-libopenjpeg} \
  123. --enable-librtmp \
  124. --enable-libspeex \
  125. --enable-libtheora \
  126. --enable-libvorbis \
  127. %{?with_libvpx:--enable-libvpx} \
  128. --enable-libx264 \
  129. --enable-libxvid \
  130. \
  131. --enable-x11grab \
  132. --enable-avfilter \
  133. --enable-postproc \
  134. --enable-pthreads \
  135. --disable-static \
  136. --enable-shared \
  137. --enable-gpl \
  138. --disable-doc \
  139. --disable-debug \
  140. --disable-stripping \
  141. ;
  142. %{__make} %{?_smp_mflags}
  143. #% {__make}
  144. #%{__make} documentation
  145. %install
  146. %__make install DESTDIR=$RPM_BUILD_ROOT
  147. # ## install tool/qt-faststart
  148. # %__install -pm755 tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
  149. ## install man
  150. %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/man1/
  151. %__install %{SOURCE90} %{SOURCE91} %{SOURCE92} %{SOURCE93} \
  152. $RPM_BUILD_ROOT%{_mandir}/man1/
  153. %clean
  154. %{__rm} -rf $RPM_BUILD_ROOT
  155. %post libs -p /sbin/ldconfig
  156. %postun libs -p /sbin/ldconfig
  157. %files
  158. %defattr(-,root,root,-)
  159. %doc COPYING.* CREDITS Changelog README doc/ffserver.conf
  160. %{_bindir}/ffmpeg
  161. %{_bindir}/ffplay
  162. %{_bindir}/ffprobe
  163. %{_bindir}/ffserver
  164. #%{_bindir}/qt-faststart
  165. %{_mandir}/man1/ffmpeg.1*
  166. %{_mandir}/man1/ffplay.1*
  167. %{_mandir}/man1/ffprobe.1*
  168. %{_mandir}/man1/ffserver.1*
  169. %{_datadir}/ffmpeg
  170. %files libs
  171. %defattr(-,root,root,-)
  172. %{_libdir}/lib*.so.*
  173. %files devel
  174. %defattr(-,root,root,-)
  175. %doc MAINTAINERS doc/APIchanges doc/TODO doc/*.txt
  176. %{_includedir}/ffmpeg
  177. %{_libdir}/pkgconfig/lib*.pc
  178. %{_libdir}/lib*.so
  179. %changelog
  180. * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-3
  181. - applied two patches for CVE-2011-3973, CVE-2011-3974, CVE-2011-3362
  182. from git.videolan.org
  183. * Mon Sep 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-2
  184. - change release to sync with self-build-ffmpeg-vl.spec
  185. * Sun May 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-1
  186. - new upstream release
  187. * Tue Apr 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.2-1
  188. - new upstream release
  189. * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-2
  190. - required latest x264 build
  191. - added BuildRequires: librtmp-devel >= 2.3
  192. - build PIC objects on PPC
  193. #- add qt-faststart tool
  194. * Sat Oct 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-1
  195. - new upstream release
  196. * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-4
  197. - change release to sync with self-build-ffmpeg-vl.spec
  198. * Sun Jul 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-3
  199. - added BuildRequires: libvpx-devel >= 0.9.1
  200. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-2
  201. - new upstream release
  202. * Sun Apr 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-1.20100410
  203. - bumped version to pre-0.6
  204. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-13.20100410
  205. - updated source snapshot 20100410
  206. * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-12.20100401
  207. - change release to sync with self-build-ffmpeg-vl.spec
  208. * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-11.20100401
  209. - change release to sync with self-build-ffmpeg-vl.spec
  210. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-10.20100401
  211. - updated source snapshot 20100401
  212. * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-9.20100216
  213. - updated source snapshot 20100326
  214. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216
  215. - change release to sync with self-build-ffmpeg
  216. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216
  217. - updated source snapshot 20100216
  218. - rebuild with recent x264-devel
  219. - updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1
  220. - added BuildRequires: libvdpau-devel
  221. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6
  222. - change release to sync with self-build-ffmpeg
  223. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5
  224. - change release to sync with self-build-ffmpeg
  225. * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4
  226. - applied ffmpeg-0.5-disable-texi2html.patch
  227. - dropped BuildRequires: texi2html
  228. * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3
  229. - change release to sync with self-build-ffmpeg
  230. * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2
  231. - corrected release number
  232. * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1
  233. - new upstream release
  234. - added BuildRequires:
  235. - speex-devel
  236. - bzip2-devel
  237. * Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090227.8
  238. - 20090227 snapshot
  239. * Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7
  240. - added %%{?_with_amr:%%{_datadir}/%%{name}} in %%files
  241. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6
  242. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  243. - dropped Requires: a52dec, faad2 in ffmpeg-libs
  244. * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5
  245. - 20090202 snapshot
  246. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4
  247. - 20090110 snapshot
  248. - dropped some patches
  249. * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1
  250. - source updated (r15488)
  251. - fixed License: GPLv2+
  252. - added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel
  253. - added BuildRequires: yasm (only %%ix86)
  254. - applied ffmpeg-cpu.patch (merged from RPM Fusion)
  255. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4
  256. - spec in utf8
  257. * Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4
  258. - change release to sync with self-build-ffmpeg
  259. * Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4
  260. - drop "Patch100: ffmpeg-vine.patch".
  261. * Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4
  262. - build with new versioning policy
  263. - change to use svn export from svn checkout on post install
  264. - fix ffmpeg-vine.patch for libswscale/swscale.c.rej
  265. * Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2
  266. - [self-build-ffmpeg.spec]
  267. For all pre-required package that is provied by self-build,
  268. changed to its self-build package
  269. * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1
  270. - initial build for Vine Linux 4.2
  271. - snapshot 2008/01/28 + some Rev.11662 2008/01/29
  272. ### end of file