]>
Commit | Line | Data |
---|---|---|
18b90c81 SP |
1 | # |
2 | # TODO: | |
3a71016a | 3 | # - fix build flags - some files are compiled with -O3 and without rpm*flags |
c1b45330 | 4 | # - fix linking argument order |
92b96980 | 5 | # - add and/or fix users/groups permissions |
63ff963e | 6 | # - split to subpackages? |
18b90c81 | 7 | # |
92b96980 | 8 | # Conditional build: |
68612b1e ER |
9 | %bcond_without goom # build without goom visualisation |
10 | %bcond_with hal # build with HAL | |
92b96980 | 11 | |
68612b1e | 12 | Summary: XBMC is a free and open source media-player and entertainment hub |
18b90c81 | 13 | Name: xbmc |
a0dfde4b | 14 | Version: 12.2 |
1aef2bca | 15 | Release: 3 |
68612b1e | 16 | License: GPL v2+ and GPL v3+ |
18b90c81 | 17 | Group: Applications/Multimedia |
68612b1e | 18 | Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz |
a0dfde4b | 19 | # Source0-md5: 489f3877decae4e265ece54f9eaef0ba |
68612b1e | 20 | URL: http://xbmc.org/ |
b85db44b AF |
21 | BuildRequires: Mesa-libGLU-devel |
22 | BuildRequires: OpenGL-devel | |
23 | BuildRequires: SDL-devel | |
18b90c81 SP |
24 | BuildRequires: SDL_image-devel |
25 | BuildRequires: SDL_mixer-devel | |
26 | BuildRequires: alsa-lib-devel | |
27 | BuildRequires: autoconf | |
28 | BuildRequires: automake | |
29 | BuildRequires: avahi-devel | |
b85db44b | 30 | BuildRequires: bluez-libs-devel >= 4.99 |
5a2f2b01 | 31 | BuildRequires: boost-devel |
18b90c81 SP |
32 | BuildRequires: bzip2-devel |
33 | BuildRequires: cmake | |
34 | BuildRequires: curl-devel | |
35 | BuildRequires: dbus-devel | |
c462fd57 | 36 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 37 | BuildRequires: flac-devel |
18b90c81 SP |
38 | BuildRequires: fontconfig-devel |
39 | BuildRequires: freetype-devel | |
40 | BuildRequires: fribidi-devel | |
41 | BuildRequires: gawk | |
63ff963e | 42 | BuildRequires: gettext-autopoint |
5a2f2b01 | 43 | BuildRequires: gettext-devel |
18b90c81 SP |
44 | BuildRequires: glew-devel |
45 | BuildRequires: gperf | |
b85db44b | 46 | %if %{with hal} |
5a2f2b01 | 47 | BuildRequires: hal-devel |
b85db44b | 48 | %endif |
5a2f2b01 | 49 | BuildRequires: jasper-devel |
b85db44b AF |
50 | BuildRequires: libass-devel |
51 | BuildRequires: libbluray-devel | |
18b90c81 | 52 | BuildRequires: libcdio-devel |
a0dfde4b | 53 | BuildRequires: libcec-devel |
1aef2bca | 54 | %ifarch i686 pentium4 athlon %{x8664} |
5f83fc0f | 55 | BuildRequires: libcrystalhd-devel |
1aef2bca | 56 | %endif |
b85db44b | 57 | BuildRequires: libgcrypt-devel |
18b90c81 SP |
58 | BuildRequires: libjpeg-devel |
59 | BuildRequires: libmad-devel | |
63ff963e | 60 | BuildRequires: libmicrohttpd-devel |
63ff963e | 61 | BuildRequires: libmodplug-devel |
c462fd57 | 62 | BuildRequires: libmpeg2-devel |
18b90c81 | 63 | BuildRequires: libogg-devel |
b85db44b | 64 | BuildRequires: libplist-devel |
5a2f2b01 | 65 | BuildRequires: libpng-devel |
b85db44b | 66 | BuildRequires: librtmp-devel |
18b90c81 SP |
67 | BuildRequires: libsamplerate-devel |
68 | BuildRequires: libsmbclient-devel | |
b85db44b | 69 | BuildRequires: libssh-devel |
5a2f2b01 | 70 | BuildRequires: libtiff-devel |
71 | BuildRequires: libtool | |
b85db44b | 72 | BuildRequires: libva-devel |
5f83fc0f | 73 | BuildRequires: libva-glx-devel |
5a2f2b01 | 74 | BuildRequires: libvdpau-devel |
18b90c81 | 75 | BuildRequires: libvorbis-devel |
5a2f2b01 | 76 | BuildRequires: lzo-devel |
77 | BuildRequires: mysql-devel | |
c1b45330 | 78 | %ifarch %{ix86} |
26cae375 | 79 | BuildRequires: nasm |
c1b45330 | 80 | %endif |
18b90c81 | 81 | BuildRequires: openssl-devel |
63ff963e | 82 | BuildRequires: pcre-cxx-devel |
b85db44b | 83 | BuildRequires: pcre-devel |
5a2f2b01 | 84 | BuildRequires: pkgconfig |
18b90c81 | 85 | BuildRequires: pulseaudio-devel |
b85db44b | 86 | BuildRequires: python-devel >= 2.4 |
3a71016a | 87 | BuildRequires: rpm-pythonprov |
6f41c837 | 88 | BuildRequires: rpmbuild(macros) >= 1.566 |
c462fd57 | 89 | # used internally |
90 | BuildRequires: sed >= 4.0 | |
18b90c81 | 91 | BuildRequires: sqlite3-devel |
7613a43d | 92 | BuildRequires: tinyxml-devel |
b85db44b | 93 | BuildRequires: udev-devel |
5a2f2b01 | 94 | BuildRequires: unzip |
b85db44b AF |
95 | BuildRequires: xorg-lib-libX11-devel |
96 | BuildRequires: xorg-lib-libXext-devel | |
5a2f2b01 | 97 | BuildRequires: xorg-lib-libXinerama-devel |
b85db44b | 98 | BuildRequires: xorg-lib-libXmu-devel |
18b90c81 | 99 | BuildRequires: xorg-lib-libXrandr-devel |
b85db44b | 100 | BuildRequires: xorg-lib-libXt-devel |
5a2f2b01 | 101 | BuildRequires: xorg-lib-libXtst-devel |
b85db44b | 102 | BuildRequires: yajl-devel |
18b90c81 SP |
103 | BuildRequires: zip |
104 | BuildRequires: zlib-devel | |
b85db44b AF |
105 | #https://github.com/sahlberg/libnfs |
106 | #BuildRequires: libnfs-devel | |
107 | #http://sites.google.com/site/alexthepuffin/home | |
108 | #BuildRequires: afpfs-ng-devel | |
109 | #http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz | |
110 | #https://github.com/albertz/shairport | |
111 | #BuildRequires: libshairport | |
63ff963e | 112 | Requires: /usr/bin/glxinfo |
f4f8f308 | 113 | Requires: SDL >= 1.2.14-5 |
a58652d4 SP |
114 | Requires: lsb-release |
115 | Requires: xorg-app-xdpyinfo | |
18b90c81 SP |
116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
117 | ||
118 | %description | |
68612b1e ER |
119 | XBMC media center is a free cross-platform media-player jukebox and |
120 | entertainment hub. XBMC can play a spectrum of of multimedia formats, | |
121 | and featuring playlist, audio visualizations, slideshow, and weather | |
122 | forecast functions, together third-party plugins. | |
18b90c81 SP |
123 | |
124 | %prep | |
c1b45330 | 125 | %setup -q |
18b90c81 SP |
126 | |
127 | %build | |
128 | ./bootstrap | |
65712ad3 | 129 | %configure \ |
51b524ca KK |
130 | --disable-debug \ |
131 | --enable-external-libraries \ | |
5f83fc0f | 132 | --enable-pulse \ |
b85db44b | 133 | --enable-udev \ |
b85db44b AF |
134 | --disable-libusb \ |
135 | --disable-nfs \ | |
136 | --disable-afpclient \ | |
137 | --disable-airtunes \ | |
b85db44b AF |
138 | %{__enable_disable goom} \ |
139 | %{__enable_disable hal} | |
68612b1e | 140 | |
a0dfde4b | 141 | LIBS="-lpthread" |
b85db44b | 142 | %{__make} V=1 |
18b90c81 SP |
143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
18b90c81 | 146 | %{__make} install \ |
92b96980 | 147 | DESTDIR=$RPM_BUILD_ROOT |
18b90c81 SP |
148 | |
149 | %clean | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %files | |
153 | %defattr(644,root,root,755) | |
18b90c81 SP |
154 | %attr(755,root,root) %{_bindir}/* |
155 | %{_datadir}/%{name} | |
92b96980 | 156 | %attr(755,root,root) %{_libdir}/%{name} |
157 | %{_docdir}/%{name} | |
c1b45330 | 158 | %{_desktopdir}/%{name}.desktop |
92b96980 | 159 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png |
160 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
3a71016a | 161 | %{_datadir}/xsessions/XBMC.desktop |