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