self-build-vlc-vl.spec 14 KB

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