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