xbmc-vl.spec 7.7 KB

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