ffmpeg-vl.spec 10 KB

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