xbmc-vl.spec 8.0 KB

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