self-build-mplayer-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. %define pkgname mplayer
  2. %define name self-build-%{pkgname}
  3. %define version 1.0
  4. %define extver rc3
  5. #% define release 4%{?extver:.%{extver}}%{?_dist_release}
  6. %define svndate 20100709
  7. %define release 37.%{svndate}%{?_dist_release}
  8. %define with_vaapi 1
  9. %define with_libvpx 1
  10. Summary: Package to automatically build %{pkgname} rpm package
  11. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  12. Name: %{name}
  13. Version: %{version}
  14. Release: %{release}
  15. Source0: %{pkgname}-vl.spec
  16. Source1: %{pkgname}-snapshot-vine.sh
  17. Source11: %{pkgname}-export-%{svndate}.tar.bz2
  18. Source12: Blue-1.7.tar.bz2
  19. Source102: %{pkgname}-config.patch
  20. Source108: %{pkgname}-manlinks.patch
  21. Source114: %{pkgname}-nodvdcss.patch
  22. Source150: mplayer-20100709-fixed-vo_x11_create_vo_window.patch
  23. License: GPLv2+
  24. Group: Restricted Software
  25. Requires(post): self-build-setup >= 0.9.9
  26. #Requires(post): subversion
  27. # (build)requies of target package.
  28. Requires(post): gtk2-devel
  29. Requires(post): freetype2-devel
  30. Requires(post): SDL-devel
  31. Requires(post): alsa-lib-devel
  32. Requires(post): esound-devel
  33. Requires(post): cdparanoia-devel
  34. Requires(post): libvorbis-devel
  35. Requires(post): libjpeg-devel
  36. Requires(post): libpng-devel
  37. Requires(post): giflib-devel
  38. Requires(post): zlib-devel
  39. Requires(post): libdvdread
  40. Requires(post): libmpcdec-devel
  41. Requires(post): twolame-devel
  42. Requires(post): yasm
  43. Requires(post): libvdpau-devel
  44. %{?with_vaapi:Requires(post): libva-devel}
  45. %{?with_libvpx:Requires(post): libvpx-devel >= 0.9.1}
  46. Requires(post): libXinerama-devel
  47. Requires(post): libXScrnSaver-devel
  48. Requires(post): self-build-mplayer-codecs
  49. Requires(post): self-build-libdvdcss
  50. Requires(post): self-build-libdvdnav
  51. Requires(post): self-build-faac
  52. Requires(post): self-build-faad2 >= 2.6
  53. Requires(post): self-build-lame
  54. Requires(post): self-build-libdca
  55. Requires(post): self-build-libmad
  56. Requires(post): self-build-x264 >= 0.0.0-9.20090522
  57. Requires(post): self-build-xvidcore >= 0.9.2
  58. Requires(post): self-build-libmpeg2
  59. Requires: TrueType-vlgothic
  60. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6"
  61. Requires: mesa-libGL
  62. Requires(post): xorg-x11-devel
  63. Requires(post): mesa-libGL-devel
  64. %endif
  65. BuildArch: noarch
  66. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  67. Packager: munepi
  68. %description
  69. MPlayer can play most standard video formats out of the box and almost
  70. all others with the help of external codecs.
  71. MPlayer currently works best from the command line, but visual feedback
  72. for many functions is available from its onscreen status display (OSD),
  73. which is also used for displaying subtitles.
  74. MPlayer also has a GUI with skin support and several unofficial alternative
  75. graphical frontends are available.
  76. MEncoder is a command line video encoder for advanced users that can
  77. be built from the MPlayer source tree. Unofficial graphical frontends
  78. exist but arenot included.
  79. MPlayer supports most common formats, like DVDs, MPEG-1/2/4, etc, but
  80. support for some newer codecs are not yet inpmlemented.
  81. You should install mplayer-codecs package if you want to play videos
  82. using those new codecs.
  83. Additional function is automatically included if following
  84. packages are installed in advance.
  85. samba-libsmbclient-devel: SMB file system support
  86. [Note]
  87. This package requires many other packages to compile
  88. targetsoftware. So it consume more disk space than usual.
  89. Also installation takes logner time because of compilation.
  90. (This will take a few minutes to quarter or half of an hour,
  91. depends on building environment)
  92. [About self-build package]
  93. For some kind of software, distributing of binary package
  94. may viorate the patent or law. Therefore we chose self-build
  95. packge, create binary package on your machine, for such kind
  96. of softwares instead of distributing binary package.
  97. Please obey the national law when you use the created binary
  98. packages. And if you want to use the softwares using patented
  99. thechnology, it may be required to get a permission, make an
  100. agreement or purchas a license. Please consider it with your
  101. purpose or way of use and take appropriate action.
  102. %description -l ja
  103. MPlayer は一般的なフォーマットの動画ならそのままですぐ再生できます。
  104. またそれ以外のほとんど全てのフォーマットも外部 Codec を使用すること
  105. で生できます。
  106. 現在の MPlayer はコマンドラインから使うのが一番便利ですが、多くの操作
  107. は字幕と同様に、オンスクリーン・ディスプレイ (OSD) によりその結果が画
  108. 面上で確認できます。
  109. MPlayer には スキンを変更できる GUI も用意されていますし、また複数の
  110. 非公式なフロントエンドも利用できます。
  111. MEncoder は上級者向けのコマンドラインの動画用エンコーダーです。
  112. 非公式な GUI フロントエンドもありますが、このパッケージには含まれて
  113. いません。
  114. MPlayer は何もしなくても DVD や MPEG-1/2/4 のように一般的なフォーマット
  115. を再生できます。ただし一部の最新のフォーマットへの対応はまだ実装されて
  116. いないので、そのような動画を再生したい場合は mplayer-codecs パッケージ
  117. をインストールする必要があります。
  118. このパッケージより前に以下の関連パッケージをインストールして
  119. おくと、%{pkgname} が対応できる機能が自動的に追加されます。
  120. samba-libsmbclient-devel: SMB ファイルシステムのサポート
  121. [注意]
  122. コンパイルに必要な多くの関連パッケージを要求するので通常より
  123. ディスクの領域を多く消費します。
  124. またインストール時にコンパイルを行うため、通常より時間がかか
  125. る場合があります。(環境にもよりますが数分から数十分程度)
  126. [self-build パッケージについて]
  127. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  128. 違反する可能性があるものがあります。その為、このような問題が
  129. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  130. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  131. ジという方法を採っています。
  132. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  133. アのライセンス、および利用する国の各種法令に従ってください。
  134. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  135. センスの購入などが必要となる場合がありますので、利用する目的
  136. や形態に応じて各自で判断し適切な対応を取ってください。
  137. %prep
  138. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  139. %install
  140. %{__rm} -rf ${RPM_BUILD_ROOT}
  141. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  142. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  143. %{__install} -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  144. %{__install} -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  145. %{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  146. %{__install} -m 644 %{SOURCE108} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  147. %{__install} -m 644 %{SOURCE114} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  148. %{__install} -m 644 %{SOURCE150} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  149. %clean
  150. %{__rm} -rf ${RPM_BUILD_ROOT}
  151. %posttrans
  152. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 635000
  153. %files
  154. %defattr(-,root,root)
  155. %{_datadir}/%{name}
  156. %changelog
  157. * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-37.20100709
  158. - updated source snapshot 20100709
  159. - renamed %%Source10 to mplayer-snapshot-vine.sh
  160. - added Requires(post): libva-devel, libvpx-devel >= 0.9.1
  161. - dropped vl4 support
  162. - updated %%description
  163. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-36.20100621
  164. - updated source snapshot 20100621
  165. - added Requires(post): libXinerama-devel
  166. - dropped vl4 support
  167. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-33.20100401
  168. - updated source snapshot 20100401
  169. * Thu Mar 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-31.20100317
  170. - updated source snapshot 20100317
  171. - renamed %%{Source0} to mplayer-vl.spec
  172. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-30.20100216
  173. - updated source snapshot 20100216
  174. - dropped obsolete patches
  175. - added Requires(post): libvdpau-devel libXScrnSaver-devel
  176. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-28.20091031
  177. - update mplayer-config-20091215-vine.patch
  178. - update mplayer-20091215-x86_32-compile.patch
  179. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-27.20091031
  180. - source snapshot 20091031
  181. - updated mplayer-20091031-x86_32-compile.patch
  182. * Sun Oct 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-26.20091003
  183. - source snapshot 20091003
  184. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-25.20090905
  185. - added some if conditions for "vl6"
  186. * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-24.20090905
  187. - source snapshot 20090905
  188. - added settings for vl6
  189. * Thu Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-23.20090821
  190. - source snapshot 20090821
  191. - replaced BR: libungif-devel with BR: giflib-devel
  192. - mentioned VDPAU support in %%description
  193. * Thu Jul 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-22.20090722
  194. - source snapshot 20090722
  195. * Fri Jul 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-21.20090702
  196. - source snapshot 20090702
  197. - check version between original spec and self-build spec in %%prep
  198. * Fri Jun 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-20.20090611
  199. - source snapshot 20090611
  200. * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-19.20090522
  201. - added Requires: TrueType-vlgothic
  202. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-18.20090522
  203. - source snapshot 20090522
  204. - build with x264 >= 0.0.0-9.20090522
  205. - updated mplayer-20090502-nodvdcss.patch
  206. - avoided to execute self-build-rpm.sh on RPM transaction
  207. - moved %%post actions to %%posttrans
  208. * Thu May 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-17.20090502
  209. - added PreReq: self-build-mplayer-codecs
  210. * Tue May 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-16.20090502
  211. - added BuildArch: noarch
  212. - source snapshot 20090502
  213. - updated mplayer-20090503-x86_32-compile.patch
  214. - updated mplayer-20090502-nodvdcss.patch
  215. * Thu Apr 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-15.20090327
  216. - included source archives:
  217. - mplayer-export-20090327.tar.bz2
  218. - Blue-1.7.tar.bz2
  219. - applied mplayer-config-vine.patch
  220. * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-14.20090327
  221. - source snapshot 20090327
  222. - updated mplayer-20090327-x86_32-compile.patch
  223. - updated mplayer-20090325-nodvdcss.patch
  224. - dropped gmplayer-about-vine.patch
  225. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-10.20090206
  226. - source snapshot 20090206
  227. - dropped mplayer-man-zh_CN.patch
  228. - updated mplayer-20090206-nodvdcss.patch
  229. - changed to PreReq: self-build-faad2 from faad2-devel
  230. - added PreReq: self-build-libmad
  231. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-9.20090131
  232. - source snapshot 20090131
  233. - fixed %%files section
  234. * Thu Jan 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-8.20090122
  235. - fixed %%post: added rm -f "$pwd"/%{pkgname}-export-%{svndate}.tar.bz2
  236. * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-7.20090122
  237. - source snapshot
  238. - update mplayer-nodvdcss.patch: mplayer-20090122-nodvdcss.patch
  239. - added PreReq:
  240. - faad2-devel
  241. - libmpcdec-devel
  242. - twolame-devel
  243. - yasm
  244. - self-build-libdvdcss
  245. - self-build-libdvdnav
  246. - self-build-faac
  247. - self-build-lame
  248. - self-build-libdca
  249. - self-build-x264 >= 0.0.0-4.20090110
  250. - self-build-xvidcore >= 0.9.2
  251. - move %%define source0Exists() from %%post section to header
  252. - fixed %%post section: clean up source archive
  253. * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-6.20090109
  254. - source snapshot
  255. - added --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc
  256. --disable-faad-internal in configure options
  257. - dropped gmplayer-add-flv-extension.patch
  258. * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-5.20081001
  259. - source snapshot
  260. - fixed License
  261. - added some patches from RPM Fusion
  262. - updated gmplayer-about-vine.patch for 20081001 snapshot
  263. - added BuildRequires: libdvdread
  264. - added BuildRequires: self-build-libdvdcss self-build-libdvdnav
  265. - added --disable-dvdread-internal --enable-dvdread --enable-dvdnav
  266. in configure options
  267. #- applied mplayer-avoid-Warning_MVs_not_available.patch for VineSeed
  268. - added PreReq: subversion
  269. * Mon Nov 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-4.rc2
  270. - fixed License
  271. - added some devel packages to support OpenGL
  272. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3.rc2
  273. - spec in utf8
  274. - fix sybolic link of subfont for vl5
  275. * Wed May 07 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-2.rc2vl4
  276. - add "Source105: CVE-2008-1558.patch".
  277. * Fri May 02 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-1.rc2vl4
  278. - build with new versioning policy.
  279. - add "Source200: gmplayer-about-vine.patch".
  280. - add "Source201: gmplayer-add-flv-extension.patch".
  281. - fix <BTS:VineLinux:603>.
  282. - add ">= 0.7-1vl4" to "PreReq: self-build-setup".
  283. - add mirror URLs to self-build-rpm.sh.
  284. * Sun Feb 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-0vl0.3rc2
  285. - add four official security patches (CVE-2008-0485, CVE-2008-0486,
  286. CVE-2008-0629, CVE-2008-0630)
  287. - add mplayer-1.0rc2-20080211-stream_cddb.patch
  288. * Tue Feb 12 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.2rc2
  289. - change source download URL. <BTS:VineLinux:603>
  290. * Sun Jan 27 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.1rc2
  291. - fix CONFDIR for make install in mplayer.spec. <BTS:wishes:33>
  292. * Fri Jan 18 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.0rc2
  293. - initial build for Vine Linux.