xbmc-vl.spec 8.3 KB

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