xbmc-vl.spec 9.9 KB

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