xbmc-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. %define codename Gotham
  2. Summary: XBMC is a free Media Center
  3. Summary(ja): XBMC メディアセンター
  4. Name: xbmc
  5. Version: 13.2
  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. * Mon Jan 12 2015 Munehiro Yamamoto <munepi@vinelinux.org> 13.2-1
  217. - new upstream release (13.2 Gotham)
  218. - dropped BuildRequires: hal-devel
  219. * Tue Jun 17 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.1-1
  220. - new upstream release (13.1 Gotham)
  221. - add Source7 (Patch4) to get rid of lsb dependency
  222. * Wed May 7 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.0-1
  223. - new upstream release (13.0 Gotham)
  224. - source tarball not released yet - get the zip archive from github instead
  225. * Fri Oct 25 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-4
  226. - revert 12.2-3 changes (subtitles won't be displayed correctly)
  227. * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-3
  228. - use external ffmpeg and other libraries
  229. * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-2
  230. - minor fix
  231. * Thu Aug 8 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-1
  232. - new upstream release
  233. * Mon Mar 4 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-2
  234. - add patch to fix build failure with samba > 4.0 (BTS: 0002557)
  235. * Sun Feb 10 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-1
  236. - new upstream release
  237. * Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5
  238. - fix silly typo in Source11
  239. * Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4
  240. - Source11 and Source12 (Japanese strings) much updated
  241. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3
  242. - update Packager
  243. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2
  244. - update Source11 (Japanese strings)
  245. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1
  246. - new upstream release
  247. - add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel
  248. * Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3
  249. - delete build_vine5 macro: libvdpau is now available on 5.2
  250. * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
  251. - add --disable-ccache option (<BTS:VineLinux:1100>)
  252. - update Patch1 to change default timezone
  253. * Tue Jan 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
  254. - new upstream release
  255. - drop patch0: use configure option to specity lirc device)
  256. - drop Source10: included in upstream
  257. - update Source11 & 12: japanese translation
  258. - add Souce1: xbmc.desktop with japanese description
  259. * Sat Jan 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 9.11-1
  260. - initial build for Vine Linux
  261. - add patch0: change lircd socket location
  262. - add Source10-12: japanese translation & langinfo