self-build-mplayer-vl.spec 12 KB

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