mplayer-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. %define with_vaapi 1
  2. %define with_libvpx 1
  3. %define name mplayer
  4. %define version 1.0
  5. %define extver rc3
  6. #% define release 4%{?extver:.%{extver}}%{?_dist_release}
  7. %define svndate 20100709
  8. %define release 40.%{svndate}%{?_dist_release}
  9. %define ttfontdir /usr/share/fonts
  10. %define ttfontlist TrueType-vlgothic/VL-PGothic-Regular \\\
  11. TrueType-sazanami-gothic/sazanami-gothic
  12. Summary: The Movie Player
  13. Summary(ja): 動画プレイヤー
  14. Name: %{name}
  15. Version: %{version}
  16. Release: %{release}
  17. #Source0: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{extver}.tar.bz2
  18. Source0: mplayer-export-%{svndate}.tar.bz2
  19. Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
  20. Source10: mplayer-snapshot-vine.sh
  21. #Patch2: %{name}-config.patch
  22. Patch2: %{name}-config-20100709-vine.patch
  23. Patch8: %{name}-manlinks.patch
  24. Patch14: %{name}-nodvdcss.patch
  25. ## Vine
  26. Patch50: mplayer-20100709-fixed-vo_x11_create_vo_window.patch
  27. License: GPLv2+
  28. Group: Applications/Multimedia
  29. URL: http://www.mplayerhq.hu/
  30. BuildRequires: SDL-devel
  31. BuildRequires: aalib-devel
  32. BuildRequires: alsa-lib-devel
  33. BuildRequires: cdparanoia-devel
  34. BuildRequires: desktop-file-utils
  35. BuildRequires: esound-devel
  36. BuildRequires: enca-devel
  37. BuildRequires: freetype2-devel
  38. BuildRequires: fribidi-devel
  39. BuildRequires: fontconfig-devel
  40. BuildRequires: giflib-devel
  41. BuildRequires: gtk2-devel
  42. BuildRequires: mesa-libGL-devel
  43. BuildRequires: libXinerama-devel
  44. BuildRequires: libXScrnSaver-devel
  45. BuildRequires: libXv-devel
  46. BuildRequires: libXvMC-devel
  47. BuildRequires: libXxf86dga-devel
  48. BuildRequires: libXxf86vm-devel
  49. BuildRequires: libpng-devel
  50. BuildRequires: libjpeg-devel
  51. BuildRequires: libdvdread
  52. BuildRequires: libmpcdec-devel
  53. %{?with_vaapi:BuildRequires:libva-devel}
  54. BuildRequires: libvdpau-devel
  55. BuildRequires: libvorbis-devel
  56. %{?with_libvpx:BuildRequires: libvpx-devel >= 0.9.1}
  57. BuildRequires: lzo-devel >= 2
  58. BuildRequires: pulseaudio-lib-devel
  59. BuildRequires: speex-devel >= 1.1
  60. BuildRequires: twolame-devel
  61. BuildRequires: xorg-x11-devel
  62. BuildRequires: yasm
  63. BuildRequires: zlib-devel
  64. # *-devel packages provided by other self-build-* should only be listed
  65. # in self-build-%{name}.spec as PreReq.
  66. ##Requires: self-build-mplayer-codecs
  67. ##BuildRequires: self-build-libdvdcss
  68. ##BuildRequires: self-build-libdvdnav
  69. ##BuildRequires: self-build-faac
  70. ##BuildRequires: self-build-lame
  71. ##BuildRequires: self-build-libdca
  72. ##BuildRequires: self-build-x264 >= 0.0.0-4.20090110
  73. ##BuildRequires: self-build-xvidcore >= 0.9.2
  74. ##BuildRequires: self-build-faad2 >= 2.6
  75. ##BuildRequires: self-build-libmad
  76. ##BuildRequires: self-build-libmpeg2
  77. Requires: TrueType-vlgothic
  78. Requires: mesa-libGL
  79. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  80. %description
  81. MPlayer can play most standard video formats out of the box and almost
  82. all others with the help of external codecs.
  83. MPlayer currently works best from the command line, but visual feedback
  84. for many functions is available from its onscreen status display (OSD),
  85. which is also used for displaying subtitles.
  86. MPlayer also has a GUI with skin support and several unofficial alternative
  87. graphical frontends are available.
  88. MEncoder is a command line video encoder for advanced users that can
  89. be built from the MPlayer source tree. Unofficial graphical frontends
  90. exist but arenot included.
  91. MPlayer supports most common formats, like DVDs, MPEG-1/2/4, etc, but
  92. support for some newer codecs are not yet inpmlemented.
  93. You should install mplayer-codecs package if you want to play videos
  94. using those new codecs.
  95. %description -l ja
  96. MPlayer は一般的なフォーマットの動画ならそのままですぐ再生できます。
  97. またそれ以外のほとんど全てのフォーマットも外部 Codec を使用することで再生できます。
  98. 現在の MPlayer はコマンドラインから使うのが一番便利ですが、
  99. 多くの操作は字幕と同様に、
  100. オンスクリーン・ディスプレイ (OSD) によりその結果が画面上で確認できます。
  101. MPlayer には スキンを変更できる GUI も用意されていますし、
  102. また複数の非公式なフロントエンドも利用できます。
  103. MEncoder は上級者向けのコマンドラインの動画用エンコーダーです。
  104. 非公式な GUI フロントエンドもありますが、このパッケージには含まれていません。
  105. MPlayer は何もしなくても DVD や MPEG-1/2/4 のように一般的なフォーマット
  106. を再生できます。ただし一部の最新のフォーマットへの対応はまだ実装されて
  107. いないので、そのような動画を再生したい場合は mplayer-codecs パッケージ
  108. をインストールする必要があります。
  109. %prep
  110. #% setup -q -n MPlayer-%{version}%{extver}
  111. %setup -q -n mplayer-export-%{svndate}
  112. %patch2 -p1 -b .config
  113. %patch8 -p1 -b .manlinks
  114. %patch14 -p1 -b .nodvdcss
  115. %patch50 -p1 -b .x11
  116. %build
  117. ./configure \
  118. --prefix=%{_prefix} \
  119. --confdir=%{_sysconfdir}/mplayer \
  120. --enable-runtime-cpudetection \
  121. --extra-cflags="$RPM_OPT_FLAGS" \
  122. --disable-libdvdcss-internal \
  123. --disable-dvdread-internal \
  124. --enable-dvdread \
  125. --enable-dvdnav \
  126. \
  127. --disable-faac-lavc \
  128. --disable-mp3lame-lavc \
  129. --disable-x264-lavc \
  130. \
  131. --disable-faad-internal \
  132. \
  133. --disable-libopenjpeg \
  134. \
  135. --disable-bitmap-font \
  136. --disable-termcap \
  137. --enable-xvmc \
  138. --with-xvmclib=XvMCW \
  139. \
  140. --enable-largefiles \
  141. --enable-menu \
  142. --enable-gui \
  143. --language=ja,en \
  144. ;
  145. %{__make} %{?_smp_mflags}
  146. %install
  147. %{__rm} -rf ${RPM_BUILD_ROOT}
  148. %{__make} install INSTALLSTRIP= \
  149. prefix=${RPM_BUILD_ROOT}%{_prefix} \
  150. BINDIR=${RPM_BUILD_ROOT}%{_bindir} \
  151. DATADIR=${RPM_BUILD_ROOT}%{_datadir}/mplayer \
  152. CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer \
  153. LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \
  154. MANDIR=${RPM_BUILD_ROOT}%{_mandir} \
  155. ;
  156. ## install some default config files
  157. %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer
  158. %{__install} -pm 644 etc/example.conf \
  159. ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer/mplayer.conf
  160. %{__install} -pm 644 etc/{input,menu,codecs}.conf \
  161. ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer
  162. # install default skin
  163. %{__mkdir} -p ${RPM_BUILD_ROOT}%{_datadir}/mplayer/skins
  164. pushd ${RPM_BUILD_ROOT}%{_datadir}/mplayer/skins
  165. %{__tar} xjf %{SOURCE1}
  166. %{__ln_s} Blue default
  167. popd
  168. # make sybolic link to ttf font for subtitle
  169. for i in %{ttfontlist}; do
  170. if [ -e %{ttfontdir}/$i.ttf ];then
  171. %__ln_s -f %{ttfontdir}/$i.ttf ${RPM_BUILD_ROOT}%{_datadir}/mplayer/subfont.ttf;
  172. break;
  173. fi;
  174. done
  175. ## install TOOLS
  176. for file in aconvert.sh divx2svcd.sh mencvcd.sh midentify.sh mpconsole.sh qepdvcd.sh subsearch.sh ; do
  177. %__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .sh`
  178. done
  179. for file in calcbpp.pl countquant.pl dvd2divxscript.pl ; do
  180. %__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .pl`
  181. done
  182. for file in vobshift.py ; do
  183. %__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .py`
  184. done
  185. %__mkdir -p $RPM_BUILD_ROOT%{_datadir}/mplayer
  186. %__install -pm 644 TOOLS/*.fp $RPM_BUILD_ROOT%{_datadir}/mplayer/
  187. %clean
  188. %{__rm} -rf ${RPM_BUILD_ROOT}
  189. %files
  190. %defattr(-,root,root)
  191. %doc AUTHORS Changelog Copyright LICENSE README
  192. %config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf
  193. %config(noreplace) %{_sysconfdir}/mplayer/codecs.conf
  194. %config(noreplace) %{_sysconfdir}/mplayer/input.conf
  195. %config(noreplace) %{_sysconfdir}/mplayer/menu.conf
  196. %{_bindir}/mplayer
  197. %{_bindir}/gmplayer
  198. %{_bindir}/mencoder
  199. %{_datadir}/mplayer/skins/Blue
  200. %{_datadir}/mplayer/skins/default
  201. %{_datadir}/mplayer/subfont.ttf
  202. %{_datadir}/applications/mplayer.desktop
  203. %{_datadir}/pixmaps/mplayer.xpm
  204. %{_mandir}/man1/mplayer.1*
  205. %{_mandir}/man1/mencoder.1*
  206. ## TOOLS
  207. %{_bindir}/aconvert
  208. %{_bindir}/calcbpp
  209. %{_bindir}/countquant
  210. %{_bindir}/divx2svcd
  211. %{_bindir}/dvd2divxscript
  212. %{_bindir}/mencvcd
  213. %{_bindir}/midentify
  214. %{_bindir}/mpconsole
  215. %{_bindir}/qepdvcd
  216. %{_bindir}/subsearch
  217. %{_bindir}/vobshift
  218. %{_datadir}/mplayer/*.fp
  219. %changelog
  220. * Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-40.20100709
  221. - added BuildRequires:
  222. - aalib-devel
  223. - enca-devel
  224. - lzo-devel
  225. - speex-devel
  226. * Sun Jul 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-39.20100709
  227. - updated fixed %{name}-config.patch
  228. - applied %{name}-config-20100709-vine.patch
  229. * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-38.20100709
  230. - change release to sync with self-build-mplayer
  231. * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-37.20100709
  232. - updated source snapshot 20100709
  233. - renamed %%Source10 to mplayer-snapshot-vine.sh
  234. - applied mplayer-20100709-fixed-vo_x11_create_vo_window.patch
  235. - added BuildRequires: libvpx-devel >= 0.9.1
  236. * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-36.20100621
  237. - updated source snapshot 20100621
  238. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-35.20100615
  239. - updated source snapshot 20100615
  240. - added BuildRequires: libXinerama-devel
  241. - dropped vl4 support
  242. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-34.20100410
  243. - updated source snapshot 20100410
  244. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-33.20100401
  245. - updated source snapshot 20100401
  246. * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-32.20100326
  247. - updated source snapshot 20100326
  248. * Thu Mar 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-31.20100317
  249. - updated source snapshot 20100317
  250. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-30.20100216
  251. - updated source snapshot 20100216
  252. - moved scripts from TOOLS
  253. - added --disable-libopenjpeg in configure options
  254. * Tue Feb 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-29.20100201
  255. - updated source snapshot 20100201
  256. - dropped obsolete patches
  257. - added BuildRequires:
  258. - libvdpau-devel
  259. - libXScrnSaver-devel
  260. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-28.20091031
  261. - update mplayer-config-20091215-vine.patch
  262. - update mplayer-20091215-x86_32-compile.patch
  263. - added --enable-runtime-cpudetection in configure options
  264. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-27.20091031
  265. - source snapshot 20091031
  266. - updated mplayer-20091031-x86_32-compile.patch
  267. * Sun Oct 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-26.20091003
  268. - source snapshot 20091003
  269. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-25.20090905
  270. - change release to sync with self-build-mplayer
  271. * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-24.20090905
  272. - source snapshot 20090905
  273. - added settings for vl6
  274. * Thu Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-23.20090821
  275. - source snapshot 20090821
  276. - replaced BR: libungif-devel with BR: giflib-devel
  277. * Thu Jul 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-22.20090722
  278. - source snapshot 20090722
  279. * Fri Jul 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-21.20090702
  280. - source snapshot 20090702
  281. * Fri Jun 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-20.20090611
  282. - source snapshot 20090611
  283. * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-19.20090522
  284. - added Requires: TrueType-vlgothic
  285. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-18.20090522
  286. - source snapshot 20090522
  287. - build with x264 >= 0.0.0-9.20090522
  288. - updated mplayer-20090522-nodvdcss.patch
  289. * Thu May 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-17.20090502
  290. - change release to sync with self-build-mplayer
  291. * Sun May 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-16.20090502
  292. - source snapshot 20090502
  293. - updated mplayer-20090503-x86_32-compile.patch
  294. - updated mplayer-20090502-nodvdcss.patch
  295. * Thu Apr 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-15.20090327
  296. - applied mplayer-config-vine.patch
  297. * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-14.20090327
  298. - source snapshot 20090327
  299. - updated mplayer-20090327-x86_32-compile.patch
  300. - updated mplayer-20090325-nodvdcss.patch
  301. - dropped gmplayer-about-vine.patch
  302. - install some default config files
  303. - added configure options:
  304. - --disable-termcap
  305. - --enable-xvmc
  306. - --with-xvmclib=XvMCW
  307. - archived doc/mplayer-1.0/TOOLS directory to doc/TOOLS.tar.bz2
  308. - fixed %%files for *.conf
  309. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-13.20090305
  310. - source snapshot 20090305
  311. * Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-12.20090227
  312. - source snapshot 20090227
  313. * Tue Feb 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-11.20090216
  314. - source snapshot 20090216
  315. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-10.20090206
  316. - source snapshot 20090206
  317. - dropped mplayer-man-zh_CN.patch
  318. - updated mplayer-20090206-nodvdcss.patch
  319. - changed to PreReq: self-build-faad2 from faad2-devel
  320. - added PreReq: self-build-libmad
  321. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-9.20090131
  322. - source snapshot 20090131
  323. * Thu Jan 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-8.20090122
  324. - change release to sync with self-build-mplayer
  325. * Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-7.20090122
  326. - source snapshot
  327. - update mplayer-20090122-nodvdcss.patch
  328. - added BuildRequires:
  329. - faad2-devel
  330. - libmpcdec-devel
  331. - twolame-devel
  332. - yasm
  333. - faac-devel (as PreReq in self-build-%{name})
  334. - lame-devel (as PreReq in self-build-%{name})
  335. - libdca-devel (as PreReq in self-build-%{name})
  336. - x264-devel >= 0.0.0-4.20090110 (as PreReq in self-build-%{name})
  337. - xvidcore-devel >= 0.9.2 (as PreReq in self-build-%{name})
  338. * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-6.20090109
  339. - source snapshot
  340. - added --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc
  341. --disable-faad-internal in configure options
  342. - dropped gmplayer-add-flv-extension.patch
  343. * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-5.20081001
  344. - source snapshot
  345. - fixed License
  346. - added some patches from RPM Fusion
  347. - updated gmplayer-about-vine.patch for 20081001 snapshot
  348. - added BuildRequires: libdvdread
  349. - added BuildRequires: self-build-libdvdcss self-build-libdvdnav
  350. - added --disable-dvdread-internal --enable-dvdread --enable-dvdnav
  351. in configure options
  352. #- applied mplayer-avoid-Warning_MVs_not_available.patch for VineSeed
  353. * Mon Nov 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-4.rc2
  354. - fixed License
  355. - added some devel packages to support OpenGL
  356. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3.rc2
  357. - spec in utf8
  358. - fix sybolic link of subfont for vl5
  359. * Wed May 07 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-2.rc2vl4
  360. - add "Patch105: CVE-2008-1558.patch".
  361. * Fri May 02 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-1.rc2vl4
  362. - build with new versioning policy.
  363. - fix Source[01] URLs.
  364. - add "Patch200: gmplayer-about-vine.patch".
  365. - add "Patch201: gmplayer-add-flv-extension.patch".
  366. * Sun Feb 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-0vl0.3rc2
  367. - add four official security patches (CVE-2008-0485, CVE-2008-0486,
  368. CVE-2008-0629, CVE-2008-0630)
  369. - add mplayer-1.0rc2-20080211-stream_cddb.patch
  370. * Tue Feb 12 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.2rc2
  371. - change source download URL. <BTS:VineLinux:603>
  372. * Sun Jan 27 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.1rc2
  373. - fix CONFDIR for make install. <BTS:wishes:33>
  374. * Fri Jan 18 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.0rc2
  375. - initial build for Vine Linux