xbmc-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %define build_vine5 0
  2. %if "%{?_dist_release}" == "vl5"
  3. %define build_vine5 1
  4. %endif
  5. Summary: XBMC is a free Media Center
  6. Summary(ja): XBMC メディアセンター
  7. Name: xbmc
  8. Version: 10.0
  9. Release: 2%{?_dist_release}
  10. Source0: %{name}-%{version}.tar.gz
  11. Source1: %{name}.desktop
  12. #i18n
  13. #Source10: xbmc-9.11-langinfo.xml
  14. Source11: xbmc-10.0-strings.xml
  15. Source12: xbmc-10.0-Confluence-strings.xml
  16. #lircd patch
  17. #Patch0: xbmc-9.11-lircd.patch
  18. # change default locale and font
  19. Patch1: xbmc-10.0-default-locale.patch
  20. License: GPL
  21. Group: Applications/Multimedia
  22. URL: http://xbmc.org/
  23. Requires: lsb
  24. Requires: python-imaging
  25. Requires: pysqlite
  26. Requires: hicolor-icon-theme
  27. Requires(post): desktop-file-utils
  28. Requires(postun):desktop-file-utils
  29. BuildRequires: MySQL-devel
  30. BuildRequires: SDL_image-devel
  31. BuildRequires: SDL_mixer-devel
  32. BuildRequires: alsa-lib-devel
  33. BuildRequires: avahi-devel
  34. BuildRequires: bzip2-devel
  35. BuildRequires: cmake
  36. BuildRequires: curl-devel
  37. BuildRequires: cvs
  38. BuildRequires: dbus-devel
  39. BuildRequires: desktop-file-utils
  40. BuildRequires: enca-devel
  41. BuildRequires: flac-devel
  42. BuildRequires: fontconfig-devel
  43. BuildRequires: fribidi-devel
  44. BuildRequires: glew-devel
  45. BuildRequires: gperf
  46. BuildRequires: hal-devel
  47. BuildRequires: jasper-devel
  48. BuildRequires: libXinerama-devel
  49. BuildRequires: libXmu-devel
  50. BuildRequires: libXrandr-devel
  51. BuildRequires: libXtst-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: libpng-devel
  61. BuildRequires: libsamplerate-devel
  62. BuildRequires: libsmbclient-devel
  63. BuildRequires: libtiff-devel
  64. BuildRequires: libvorbis-devel
  65. BuildRequires: nasm
  66. BuildRequires: openssl-devel
  67. BuildRequires: lzo-devel
  68. BuildRequires: pcre-devel
  69. BuildRequires: pulseaudio-libs-devel
  70. BuildRequires: sqlite3-devel
  71. BuildRequires: unzip
  72. BuildRequires: wavpack-devel
  73. BuildRequires: zlib-devel
  74. BuildRequires: self-build-faac
  75. BuildRequires: self-build-faad2
  76. BuildRequires: self-build-libmad
  77. BuildRequires: self-build-libmpeg2
  78. %if !%{build_vine5}
  79. BuildRequires: libvdpau-devel
  80. %endif
  81. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  82. Packager: kazutaka
  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} 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. --with-lirc-device=%{_localstatedir}/run/lirc/lircd \
  134. --docdir=%{_docdir}/%{name}-%{version}
  135. %{__make} %{?_smp_mflags}
  136. %install
  137. %{__rm} -rf $RPM_BUILD_ROOT
  138. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  139. #install man pages
  140. %{__mkdir_p} $RPM_BUILD_ROOT/%{_mandir}/man1
  141. %{__cp} docs/manpages/* $RPM_BUILD_ROOT/%{_mandir}/man1
  142. gzip -9nf $RPM_BUILD_ROOT/%{_mandir}/man1/*
  143. # Install desktop file
  144. desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
  145. %post
  146. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  147. touch --no-create %{_datadir}/icons/hicolor
  148. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  149. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  150. fi
  151. %postun
  152. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  153. touch --no-create %{_datadir}/icons/hicolor
  154. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  155. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  156. fi
  157. %clean
  158. %{__rm} -rf $RPM_BUILD_ROOT
  159. %files
  160. %defattr(-,root,root)
  161. %doc %{_docdir}/%{name}-%{version}
  162. %{_bindir}/%{name}
  163. %{_bindir}/%{name}-standalone
  164. %{_datadir}/%{name}
  165. %{_datadir}/applications/%{name}.desktop
  166. %{_datadir}/xsessions/XBMC.desktop
  167. %{_datadir}/icons/hicolor/256x256/apps/%{name}.png
  168. %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
  169. %{_libdir}/%{name}
  170. %{_mandir}/man1/*
  171. %changelog
  172. * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
  173. - add --disable-ccache option (<BTS:VineLinux:1100>)
  174. - update Patch1 to change default timezone
  175. * Tue Jan 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
  176. - new upstream release
  177. - drop patch0: use configure option to specity lirc device)
  178. - drop Source10: included in upstream
  179. - update Source11 & 12: japanese translation
  180. - add Souce1: xbmc.desktop with japanese description
  181. * Sat Jan 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 9.11-1
  182. - initial build for Vine Linux
  183. - add patch0: change lircd socket location
  184. - add Source10-12: japanese translation & langinfo