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