xbmc-vl.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. Summary: XBMC is a free Media Center
  2. Summary(ja): XBMC メディアセンター
  3. Name: xbmc
  4. Version: 12.2
  5. Release: 4%{?_dist_release}
  6. Source0: %{name}-%{version}.tar.gz
  7. Source1: %{name}.desktop
  8. #i18n
  9. #Source10: xbmc-9.11-langinfo.xml
  10. #Source11: xbmc-11.0-strings.xml
  11. #Source12: xbmc-11.0-Confluence-strings.xml
  12. #lircd patch
  13. #Patch0: xbmc-9.11-lircd.patch
  14. # change default locale and font
  15. Patch1: %{name}-%{version}-default-locale.patch
  16. Patch2: %{name}-%{version}-use-pkgconfig-for-samba.patch
  17. Patch3: %{name}-%{version}-dvdread.patch
  18. License: GPLv2+
  19. Group: Applications/Multimedia
  20. URL: http://xbmc.org/
  21. Requires: lsb
  22. Requires: python-imaging
  23. Requires: pysqlite
  24. Requires: hicolor-icon-theme
  25. Requires(post): desktop-file-utils
  26. Requires(postun):desktop-file-utils
  27. BuildRequires: MySQL-devel
  28. BuildRequires: SDL_gfx-devel
  29. BuildRequires: SDL_image-devel
  30. BuildRequires: SDL_mixer-devel
  31. BuildRequires: alsa-lib-devel
  32. BuildRequires: avahi-devel
  33. BuildRequires: bzip2-devel
  34. BuildRequires: cmake
  35. BuildRequires: curl-devel
  36. BuildRequires: cvs
  37. BuildRequires: dbus-devel
  38. BuildRequires: desktop-file-utils
  39. BuildRequires: doxygen
  40. BuildRequires: enca-devel
  41. BuildRequires: flac-devel
  42. BuildRequires: fontconfig-devel
  43. BuildRequires: fribidi-devel >= 0.19
  44. BuildRequires: glew-devel
  45. BuildRequires: gperf
  46. BuildRequires: hal-devel
  47. BuildRequires: jasper-devel
  48. BuildRequires: java >= 1.6
  49. BuildRequires: libXinerama-devel
  50. BuildRequires: libXmu-devel
  51. BuildRequires: libXrandr-devel
  52. BuildRequires: libXtst-devel
  53. BuildRequires: libass-devel
  54. BuildRequires: libboost-devel
  55. BuildRequires: libbluray-devel
  56. BuildRequires: libcap-devel
  57. BuildRequires: libcdio-devel
  58. BuildRequires: libdvdread-devel
  59. BuildRequires: expat-devel
  60. BuildRequires: libjpeg-devel
  61. BuildRequires: libmicrohttpd-devel
  62. BuildRequires: libmms-devel
  63. BuildRequires: libmodplug-devel
  64. BuildRequires: libogg-devel
  65. BuildRequires: libplist-devel
  66. BuildRequires: libpng-devel
  67. BuildRequires: libsamplerate-devel
  68. BuildRequires: libssh-devel
  69. BuildRequires: libssh2-devel
  70. BuildRequires: libsmbclient-devel
  71. BuildRequires: libtiff-devel
  72. BuildRequires: libtool-ltdl-devel
  73. BuildRequires: libudev-devel
  74. BuildRequires: libusb-devel
  75. BuildRequires: libva-devel
  76. BuildRequires: libvorbis-devel
  77. BuildRequires: nasm
  78. BuildRequires: openssl-devel
  79. BuildRequires: lzo-devel
  80. BuildRequires: pcre-devel
  81. BuildRequires: pulseaudio-libs-devel
  82. BuildRequires: sqlite3-devel
  83. BuildRequires: swig
  84. BuildRequires: taglib-devel >= 1.8
  85. BuildRequires: tinyxml-devel
  86. BuildRequires: unzip
  87. BuildRequires: wavpack-devel
  88. BuildRequires: zlib-devel
  89. BuildRequires: self-build-faac
  90. BuildRequires: self-build-faad2
  91. BuildRequires: self-build-ffmpeg
  92. BuildRequires: self-build-lame
  93. BuildRequires: self-build-libmad
  94. BuildRequires: self-build-libmpeg2
  95. BuildRequires: libvdpau-devel
  96. BuildRequires: bluez-libs-devel
  97. BuildRequires: yajl-devel
  98. BuildRequires: python-devel
  99. BuildRequires: libshairport-devel
  100. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  101. Packager: kazutaka, shaolin
  102. %description
  103. XBMC is an award-winning free and open source (GPL) software media player
  104. and entertainment hub for digital media.
  105. Currently XBMC can be used to play almost all popular audio and video formats
  106. around. It was designed for network playback, so you can stream your multimedia
  107. from anywhere in the house or directly from the internet using practically any
  108. protocol available. Use your media as-is: XBMC can play CDs and DVDs directly
  109. from the disk or image file, almost all popular archive formats from your hard
  110. drive, and even files inside ZIP and RAR archives. It will even scan all of
  111. your media and automatically create a personalized library complete with box
  112. covers, descriptions, and fanart. There are playlist and slideshow functions,
  113. a weather forecast feature and many audio visualizations. Once installed,
  114. your computer will become a fully functional multimedia jukebox.
  115. %description -l ja
  116. XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、
  117. デジタルメディア向けのメディアプレイヤー/メディアセンターです。
  118. XBMC は一般的な形式のビデオやオーディオファイルであれば、その殆ど
  119. を再生できます。またネットワークを介した再生にも対応しており、
  120. ホームLAN やインターネットを経由したストリーミングも利用できます。
  121. また、XBMC は CD や DVD を直接再生できるだけでなく、ハードディスク
  122. 上のディスクイメージや一般的なアーカイブ、ZIP や RAR アーカイブ等で
  123. あってもそのまま利用できます。
  124. XBMC は PC 上のメディアファイルをスキャンして、自動的にライブラリ
  125. を構築し、カバーアートや説明、ファンアート等を付加してくれます。
  126. その他にも、プレイリストやスライドショー、天気予報、オーディオの
  127. ビジュアライゼーション機能等を備えています。
  128. XBMC をインストールすれば、あなたの PC は多機能なマルチメディア
  129. ジュークボックスに生まれ変わります。
  130. %prep
  131. %setup -q
  132. %patch1 -p1 -b .default-locale
  133. %patch2 -p0 -b .use-pkgconfig-for-samba
  134. %patch3 -p1 -b .dvdread
  135. #setup language files
  136. #%{__cp} -f %{SOURCE10} language/Japanese/langinfo.xml
  137. #%{__cp} -f %{SOURCE11} language/Japanese/strings.xml
  138. #%{__mkdir} -p addons/skin.confluence/language/Japanese
  139. #%{__cp} -f %{SOURCE12} addons/skin.confluence/language/Japanese/strings.xml
  140. %build
  141. %ifarch x86_64
  142. LIBS="-L/usr/lib64/mysql $LIBS"
  143. %else
  144. LIBS="-L/usr/lib/mysql $LIBS"
  145. %endif
  146. export LIBS
  147. ./bootstrap
  148. %configure --disable-debug \
  149. --disable-ccache \
  150. --enable-gl \
  151. --enable-sdl \
  152. --enable-pulse \
  153. --enable-vdpau \
  154. --enable-vaapi \
  155. --enable-xrandr \
  156. --enable-projectm \
  157. --enable-x11 \
  158. --enable-libudev \
  159. --enable-ffmpeg-libvorbis \
  160. --enable-dvdcss \
  161. --enable-mid \
  162. --enable-libmp3lame \
  163. --enable-libbluray \
  164. --enable-libvorbisenc \
  165. --enable-libcap \
  166. --with-lirc-device=%{_localstatedir}/run/lirc/lircd \
  167. --docdir=%{_docdir}/%{name}-%{version}
  168. %{__make} %{?_smp_mflags}
  169. %install
  170. %{__rm} -rf %{buildroot}
  171. %{__make} install DESTDIR=%{buildroot}
  172. #install man pages
  173. %{__mkdir_p} %{buildroot}/%{_mandir}/man1
  174. %{__cp} docs/manpages/* %{buildroot}/%{_mandir}/man1
  175. gzip -9nf %{buildroot}/%{_mandir}/man1/*
  176. # Install desktop file
  177. desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
  178. %post
  179. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  180. touch --no-create %{_datadir}/icons/hicolor
  181. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  182. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  183. fi
  184. %postun
  185. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  186. touch --no-create %{_datadir}/icons/hicolor
  187. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  188. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  189. fi
  190. %clean
  191. %{__rm} -rf %{buildroot}
  192. %files
  193. %defattr(-,root,root)
  194. %doc %{_docdir}/%{name}-%{version}
  195. %{_bindir}/%{name}
  196. %{_bindir}/%{name}-standalone
  197. %{_datadir}/%{name}
  198. %{_datadir}/applications/%{name}.desktop
  199. %{_datadir}/xsessions/XBMC.desktop
  200. %{_datadir}/icons/hicolor/256x256/apps/%{name}.png
  201. %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
  202. %{_libdir}/%{name}
  203. %{_mandir}/man1/*
  204. %changelog
  205. * Fri Oct 25 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-4
  206. - revert 12.2-3 changes (subtitles won't be displayed correctly)
  207. * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-3
  208. - use external ffmpeg and other libraries
  209. * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-2
  210. - minor fix
  211. * Thu Aug 8 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-1
  212. - new upstream release
  213. * Mon Mar 4 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-2
  214. - add patch to fix build failure with samba > 4.0 (BTS: 0002557)
  215. * Sun Feb 10 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-1
  216. - new upstream release
  217. * Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5
  218. - fix silly typo in Source11
  219. * Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4
  220. - Source11 and Source12 (Japanese strings) much updated
  221. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3
  222. - update Packager
  223. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2
  224. - update Source11 (Japanese strings)
  225. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1
  226. - new upstream release
  227. - add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel
  228. * Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3
  229. - delete build_vine5 macro: libvdpau is now available on 5.2
  230. * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
  231. - add --disable-ccache option (<BTS:VineLinux:1100>)
  232. - update Patch1 to change default timezone
  233. * Tue Jan 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
  234. - new upstream release
  235. - drop patch0: use configure option to specity lirc device)
  236. - drop Source10: included in upstream
  237. - update Source11 & 12: japanese translation
  238. - add Souce1: xbmc.desktop with japanese description
  239. * Sat Jan 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 9.11-1
  240. - initial build for Vine Linux
  241. - add patch0: change lircd socket location
  242. - add Source10-12: japanese translation & langinfo