self-build-mplayer-vl.spec 12 KB

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