self-build-vlc-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. %define pkgname vlc
  2. %define name self-build-%{pkgname}
  3. %define version 1.1.9
  4. %define release 2%{?_dist_release}
  5. %define with_mozilla 0
  6. %define with_dc1394 0
  7. %define with_samba 0
  8. %define sourceurl0 http://download.videolan.org/pub/videolan/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.bz2
  9. %define sourceurl10 http://2sen.dip.jp/cgi-bin/dtvup/source/up0617.zip
  10. Summary: Package to automatically build %{pkgname} rpm package
  11. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  12. Name: %{name}
  13. Version: %{version}
  14. Release: %{release}
  15. Obsoletes: vlc < 1.1.0
  16. Obsoletes: vlc-devel < 1.1.0
  17. Source0: %{pkgname}-vl.spec
  18. Source100: vlc-1.1.0-vlc-cache-gen_noerror.patch
  19. Source103: vlc-1.1.6-hardode_font_patch.patch
  20. Source104: vlc-1.1.4-tls_path.patch
  21. ## vine
  22. Source150: vlc-1.1.7-revert-pulse-c.patch
  23. License: GPLv2+
  24. Group: Restricted Software
  25. Requires(post): self-build-setup >= 0.9.9
  26. Requires(post): unzip
  27. Requires(post): desktop-file-utils
  28. Requires(post): gettext
  29. Requires(post): gettext-devel
  30. Requires(post): libtool
  31. Requires(post): aalib-devel
  32. Requires(post): alsa-lib-devel
  33. Requires(post): avahi-devel
  34. Requires(post): cdparanoia-devel
  35. Requires(post): dbus-devel
  36. %{?_with_dirac: Requires(post): dirac-devel >= 1.0.0}
  37. #Requires(post): directfb-devel
  38. Requires(post): libdirectfb-devel
  39. Requires(post): flac-devel
  40. ##!! Requires(post): fluidsynth-devel
  41. Requires(post): fribidi-devel
  42. Requires(post): gnome-vfs2-devel
  43. Requires(post): gnutls-devel >= 1.0.17
  44. Requires(post): gsm-devel
  45. Requires(post): hal-devel
  46. Requires(post): jack-audio-connection-kit-devel
  47. Requires(post): libavc1394-devel
  48. Requires(post): libass-devel >= 0.9.7
  49. ##!! Requires(post): libcaca-devel
  50. Requires(post): libcddb-devel
  51. Requires(post): libcdio-devel >= 0.77-3
  52. Requires(post): libdc1394-devel >= 2.1.0
  53. Requires(post): libdv-devel
  54. Requires(post): libdvdread-devel
  55. Requires(post): libebml-devel
  56. Requires(post): libid3tag-devel
  57. %{?_with_kate: Requires(post): libkate-devel}
  58. Requires(post): libmatroska-devel >= 0.7.6
  59. Requires(post): libmodplug-devel
  60. Requires(post): libmpcdec-devel
  61. Requires(post): libmtp-devel
  62. Requires(post): libnotify-devel
  63. ##!! Requires(post): libprojectM-qt-devel
  64. Requires(post): libproxy-devel
  65. Requires(post): librsvg2-devel >= 2.9.0
  66. Requires(post): librtmp-devel
  67. %if %{?_dist_release} != "vl5"
  68. Requires(post): libssh2-devel
  69. %endif
  70. ##!! Requires(post): libsysfs-devel
  71. Requires(post): libshout-devel
  72. Requires(post): libsmbclient-devel
  73. ##!! Requires(post): libtar-devel
  74. Requires(post): libtheora-devel
  75. ##!! Requires(post): libtiger-devel
  76. Requires(post): libtiff-devel
  77. %if %{?_dist_release} != "vl5"
  78. Requires(post): libudev-devel >= 142
  79. %endif
  80. Requires(post): libupnp-devel
  81. Requires(post): libv4l-devel
  82. %if %{?_dist_release} == "vl6"
  83. Requires(post): libva-devel
  84. %endif
  85. Requires(post): libvorbis-devel
  86. Requires(post): libxml2-devel
  87. #Requires(post): lirc-devel
  88. %{?_with_lirc:Requires(post): lirc}
  89. #Requires(post): live555-devel >= 0-0.19.2008.04.03
  90. Requires(post): kernel-headers >= 2.6.20
  91. # Requires(post): libGL-devel
  92. # Requires(post): libGLU-devel
  93. Requires(post): libmusicbrainz-devel
  94. Requires(post): lua-devel
  95. ##!! Requires(post): minizip-devel
  96. ##!! Requires(post): mpeg2dec-devel >= 0.3.2
  97. Requires(post): ncurses-devel
  98. ##!! Requires(post): opencv-devel
  99. Requires(post): openslp-devel
  100. Requires(post): pcre-devel
  101. Requires(post): pulseaudio-libs-devel >= 0.9.8
  102. ##!! Requires(post): portaudio-devel
  103. Requires(post): qt4-devel >= 4.5.2
  104. ##!! Requires(post): schroedinger-devel
  105. Requires(post): SDL_image-devel
  106. Requires(post): speex-devel >= 1.1.5
  107. %ifarch %{ix86} x86_64
  108. Requires(post): svgalib-devel
  109. %endif
  110. Requires(post): taglib-devel
  111. Requires(post): twolame-devel
  112. %if %{?_dist_release} != "vl5"
  113. Requires(post): vcdimager-devel >= 0.7.21
  114. %endif
  115. Requires(post): xosd-devel
  116. Requires(post): zlib-devel
  117. ##!! Requires(post): zvbi-devel
  118. # X-libs
  119. Requires(post): libXt-devel
  120. Requires(post): libXv-devel
  121. Requires(post): libXxf86vm-devel
  122. Requires(post): libX11-devel
  123. Requires(post): libXext-devel
  124. Requires(post): libXpm-devel
  125. Requires(post): libXvMC-devel
  126. %if %{?_dist_release} != "vl5"
  127. Requires(post): xcb-util-devel
  128. %endif
  129. Requires(post): xorg-x11-proto-devel
  130. %if %with_samba
  131. Requires(post): samba-libsmbclient-devel
  132. %endif
  133. Requires(post): pulseaudio-libs-devel >= 0.9.8
  134. %if %with_mozilla
  135. Requires(post): gecko-devel
  136. Requires(post): nspr-devel
  137. %endif
  138. Requires(post): libraw1394-devel
  139. Requires: TrueType-dejavu
  140. ## vine
  141. Requires(post): libgcrypt-devel
  142. Requires(post): wx-gtk2-devel
  143. Requires: mesa-libGL
  144. Requires(post): xorg-x11-devel
  145. Requires(post): mesa-libGL-devel
  146. Requires(post): self-build-libmpeg2
  147. Requires(post): self-build-a52dec
  148. Requires(post): self-build-faac
  149. Requires(post): self-build-faad2
  150. Requires(post): self-build-ffmpeg >= 0.4.9
  151. Requires(post): self-build-libdca
  152. Requires(post): self-build-libdvbpsi
  153. Requires(post): self-build-libdvdnav
  154. Requires(post): self-build-libmad
  155. Requires(post): self-build-libmp4v2
  156. %if %{?_dist_release} != "vl5"
  157. Requires(post): self-build-x264 >= 0.0.0-15.20110322
  158. %elseif %{?_dist_release} == "vl5"
  159. Requires(post): self-build-x264 >= 0.0.0-9.20090522
  160. %endif
  161. Requires(post): self-build-xvidcore
  162. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  163. Packager: munepi
  164. %description
  165. VLC (initially VideoLAN Client) is a highly portable multimedia player
  166. for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX,
  167. mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols.
  168. It can also be used as a server to stream in unicast or multicast in
  169. IPv4 or IPv6 on a high-bandwidth network.
  170. [Note]
  171. This package requires many other packages to compile
  172. targetsoftware. So it consume more disk space than usual.
  173. Also installation takes logner time because of compilation.
  174. (This will take a few minutes to quarter or half of an hour,
  175. depends on building environment)
  176. [About self-build package]
  177. For some kind of software, distributing of binary package
  178. may viorate the patent or law. Therefore we chose self-build
  179. packge, create binary package on your machine, for such kind
  180. of softwares instead of distributing binary package.
  181. Please obey the national law when you use the created binary
  182. packages. And if you want to use the softwares using patented
  183. thechnology, it may be required to get a permission, make an
  184. agreement or purchas a license. Please consider it with your
  185. purpose or way of use and take appropriate action.
  186. %description -l ja
  187. VLC(初期は VideoLAN Client)は高い可搬性のあるマルチメディアプレーヤーで,
  188. 様々なオーディオおよびビデオフォーマット(MPEG-1, MPEG-2, MPEG-4, DivX,
  189. mp3, ogg など)だけでなく,DVD や VCD,様々なストリーミングプロトコルにも
  190. 対応しています.
  191. また,高帯域幅上の IPv4 や IPv6 で,
  192. ユニキャストやマルチキャストのストリームに,
  193. サーバーとして使用することもできます.
  194. このパッケージをインストールすると、自動的にソースコードを
  195. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  196. の rpm パッケージを作成します。
  197. また apt-get コマンドや synaptic パッケージマネージャから実行
  198. した場合は、作成された rpm パッケージのインストールも自動的に
  199. 行います。
  200. [注意]
  201. コンパイルに必要な多くの関連パッケージを要求するので通常より
  202. ディスクの領域を多く消費します。
  203. またインストール時にコンパイルを行うため、通常より時間がかか
  204. る場合があります。(環境にもよりますが数分から数十分程度)
  205. [self-build パッケージについて]
  206. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  207. 違反する可能性があるものがあります。その為、このような問題が
  208. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  209. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  210. ジという方法を採っています。
  211. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  212. アのライセンス、および利用する国の各種法令に従ってください。
  213. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  214. センスの購入などが必要となる場合がありますので、利用する目的
  215. や形態に応じて各自で判断し適切な対応を取ってください。
  216. %prep
  217. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  218. %install
  219. %{__rm} -rf ${RPM_BUILD_ROOT}
  220. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  221. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  222. %{__install} -m 644 \
  223. %{SOURCE100} %{SOURCE103} %{SOURCE104} \
  224. %{SOURCE150} \
  225. ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  226. %clean
  227. %{__rm} -rf ${RPM_BUILD_ROOT}
  228. %posttrans
  229. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
  230. %{sourceurl0} %{sourceurl10} 1216000
  231. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  232. %{pkgname}-devel-%{version}-%{release}
  233. %files
  234. %defattr(-,root,root)
  235. %{_datadir}/%{name}
  236. %changelog
  237. * Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-2
  238. - added Requires(post): unzip
  239. * Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.9-1
  240. - new upstream release
  241. - applied vlc_patch_0.02/vlc118.diff in up0617.zip on 2sen.dip.jp/dtv
  242. * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.8-1
  243. - new upstream release
  244. - added Requires(post):
  245. - libcddb-devel
  246. - libdc1394-devel >= 2.1.0
  247. - libmodplug-devel
  248. - libproxy-devel
  249. - librtmp-devel
  250. - libssh2-devel
  251. - libudev-devel >= 142
  252. - pcre-devel
  253. - vcdimager-devel >= 0.7.21
  254. - xcb-util-devel
  255. * Sat Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.7-1
  256. - new upstream release
  257. - dropped upstreamed patches
  258. - applied a reverted patch to pulse.c for vl5
  259. * Fri Feb 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-2
  260. - backport lirc and signal fixes
  261. * Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.6-1
  262. - new upstream release
  263. - dropped temporarily BuildRequires: lirc
  264. - added BuildRequires: libass-devel as the tag Requires(post)
  265. * Sun Nov 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1
  266. - new upstream release
  267. * Mon Aug 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1
  268. - new upstream release
  269. * Sat Aug 14 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.2-1
  270. - new upstream release
  271. * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2
  272. - for only vl6, supported libva
  273. - set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0
  274. * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1
  275. - new upstream release
  276. - added Requires(post): libva-devel
  277. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3
  278. - renamed %%{Source0} to vlc-vl.spec
  279. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2
  280. - added Requires(post): libsmbclient-devel
  281. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1
  282. - new upstream release
  283. * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2
  284. - built with libdvbpsi-devel
  285. - dropped 0002-Default-aout-for-pulse.patch
  286. * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
  287. - new upstream release
  288. - updated 0002-Default-aout-for-pulse.patch
  289. * Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2
  290. - added Requires(post): libmtp-devel
  291. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1
  292. - new upstream release
  293. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2
  294. - rebuilt to add signature
  295. * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1
  296. - new upstream release
  297. - applied vlc-1.0.2-compiler.patch from RPM Fusion
  298. - added Requires(post): lua-devel
  299. * Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1
  300. - new upstream release
  301. * Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2
  302. - added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0
  303. * Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1
  304. - new upstream release
  305. - clean-up some old patches and merged some patches from RPM Fusion package
  306. - added vlc-trunk-default_font-vine.patch
  307. - added vlc-handlers.schemas
  308. - Gonf2 url-handler support
  309. - added shine.c, enc_base.h
  310. - missing sources
  311. - check version between original spec and self-build spec in %%prep
  312. * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3
  313. - dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64)
  314. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2
  315. - rebuild with x264 >= 0.0.0-9.20090522
  316. - avoided to execute self-build-rpm.sh on RPM transaction
  317. - moved %%post actions to %%posttrans
  318. * Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1
  319. - new upstream release
  320. - added BuildArch: noarch
  321. - s/TrueType-DejaVu/TrueType-dejavu/
  322. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7
  323. - corrected release number in vlc.spec
  324. - dropped ExclusiveArch
  325. * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6
  326. - add ppc to ExclusiveArch
  327. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5
  328. - changed to PreReq: self-build-faad2 from faad2-devel
  329. - changed to PreReq: self-build-libmad from libmad-devel
  330. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4
  331. - initial build
  332. ### end of file