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