]>
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 |
e775807f | 18 | Release: 3 |
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 |
a85643db JR |
23 | Patch0: %{name}-format-security.patch |
24 | Patch1: %{name}-ffmpeg10.patch | |
68612b1e | 25 | URL: http://xbmc.org/ |
b85db44b AF |
26 | BuildRequires: Mesa-libGLU-devel |
27 | BuildRequires: OpenGL-devel | |
28 | BuildRequires: SDL-devel | |
18b90c81 SP |
29 | BuildRequires: SDL_image-devel |
30 | BuildRequires: SDL_mixer-devel | |
31 | BuildRequires: alsa-lib-devel | |
32 | BuildRequires: autoconf | |
33 | BuildRequires: automake | |
34 | BuildRequires: avahi-devel | |
b85db44b | 35 | BuildRequires: bluez-libs-devel >= 4.99 |
5a2f2b01 | 36 | BuildRequires: boost-devel |
18b90c81 SP |
37 | BuildRequires: bzip2-devel |
38 | BuildRequires: cmake | |
39 | BuildRequires: curl-devel | |
40 | BuildRequires: dbus-devel | |
c462fd57 | 41 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 42 | BuildRequires: flac-devel |
18b90c81 SP |
43 | BuildRequires: fontconfig-devel |
44 | BuildRequires: freetype-devel | |
45 | BuildRequires: fribidi-devel | |
46 | BuildRequires: gawk | |
63ff963e | 47 | BuildRequires: gettext-autopoint |
5a2f2b01 | 48 | BuildRequires: gettext-devel |
18b90c81 SP |
49 | BuildRequires: glew-devel |
50 | BuildRequires: gperf | |
b85db44b | 51 | %if %{with hal} |
5a2f2b01 | 52 | BuildRequires: hal-devel |
b85db44b | 53 | %endif |
5a2f2b01 | 54 | BuildRequires: jasper-devel |
b85db44b AF |
55 | BuildRequires: libass-devel |
56 | BuildRequires: libbluray-devel | |
18b90c81 | 57 | BuildRequires: libcdio-devel |
b85db44b | 58 | BuildRequires: libgcrypt-devel |
18b90c81 SP |
59 | BuildRequires: libjpeg-devel |
60 | BuildRequires: libmad-devel | |
63ff963e | 61 | BuildRequires: libmicrohttpd-devel |
63ff963e | 62 | BuildRequires: libmodplug-devel |
c462fd57 | 63 | BuildRequires: libmpeg2-devel |
18b90c81 | 64 | BuildRequires: libogg-devel |
b85db44b | 65 | BuildRequires: libplist-devel |
5a2f2b01 | 66 | BuildRequires: libpng-devel |
b85db44b | 67 | BuildRequires: librtmp-devel |
18b90c81 SP |
68 | BuildRequires: libsamplerate-devel |
69 | BuildRequires: libsmbclient-devel | |
b85db44b | 70 | BuildRequires: libssh-devel |
5a2f2b01 | 71 | BuildRequires: libtiff-devel |
72 | BuildRequires: libtool | |
b85db44b | 73 | BuildRequires: libva-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 |
b85db44b | 92 | BuildRequires: udev-devel |
5a2f2b01 | 93 | BuildRequires: unzip |
b85db44b AF |
94 | BuildRequires: xorg-lib-libX11-devel |
95 | BuildRequires: xorg-lib-libXext-devel | |
5a2f2b01 | 96 | BuildRequires: xorg-lib-libXinerama-devel |
b85db44b | 97 | BuildRequires: xorg-lib-libXmu-devel |
18b90c81 | 98 | BuildRequires: xorg-lib-libXrandr-devel |
b85db44b | 99 | BuildRequires: xorg-lib-libXt-devel |
5a2f2b01 | 100 | BuildRequires: xorg-lib-libXtst-devel |
b85db44b | 101 | BuildRequires: yajl-devel |
18b90c81 SP |
102 | BuildRequires: zip |
103 | BuildRequires: zlib-devel | |
b85db44b AF |
104 | #https://github.com/sahlberg/libnfs |
105 | #BuildRequires: libnfs-devel | |
106 | #http://sites.google.com/site/alexthepuffin/home | |
107 | #BuildRequires: afpfs-ng-devel | |
108 | #http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz | |
109 | #https://github.com/albertz/shairport | |
110 | #BuildRequires: libshairport | |
111 | #http://www.broadcom.com/support/crystal_hd/ | |
112 | #BuildRequires: crystalhd-devel | |
113 | #http://libcec.pulse-eight.com/ | |
114 | #BuildRequires: libcec-devel >= 1.1.0 | |
63ff963e | 115 | Requires: /usr/bin/glxinfo |
f4f8f308 | 116 | Requires: SDL >= 1.2.14-5 |
a58652d4 SP |
117 | Requires: lsb-release |
118 | Requires: xorg-app-xdpyinfo | |
18b90c81 SP |
119 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
120 | ||
121 | %description | |
68612b1e ER |
122 | XBMC media center is a free cross-platform media-player jukebox and |
123 | entertainment hub. XBMC can play a spectrum of of multimedia formats, | |
124 | and featuring playlist, audio visualizations, slideshow, and weather | |
125 | forecast functions, together third-party plugins. | |
18b90c81 SP |
126 | |
127 | %prep | |
c1b45330 | 128 | %setup -q |
a85643db JR |
129 | %patch0 -p1 |
130 | %patch1 -p1 | |
18b90c81 SP |
131 | |
132 | %build | |
133 | ./bootstrap | |
65712ad3 | 134 | %configure \ |
51b524ca KK |
135 | --disable-debug \ |
136 | --enable-external-libraries \ | |
b85db44b AF |
137 | --enable-udev \ |
138 | --disable-libcec \ | |
139 | --disable-libusb \ | |
140 | --disable-nfs \ | |
141 | --disable-afpclient \ | |
142 | --disable-airtunes \ | |
143 | --disable-crystalhd \ | |
144 | %{__enable_disable goom} \ | |
145 | %{__enable_disable hal} | |
68612b1e | 146 | |
b85db44b | 147 | %{__make} V=1 |
18b90c81 SP |
148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
18b90c81 | 151 | %{__make} install \ |
92b96980 | 152 | DESTDIR=$RPM_BUILD_ROOT |
18b90c81 SP |
153 | |
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %files | |
158 | %defattr(644,root,root,755) | |
18b90c81 SP |
159 | %attr(755,root,root) %{_bindir}/* |
160 | %{_datadir}/%{name} | |
92b96980 | 161 | %attr(755,root,root) %{_libdir}/%{name} |
162 | %{_docdir}/%{name} | |
c1b45330 | 163 | %{_desktopdir}/%{name}.desktop |
92b96980 | 164 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png |
165 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
3a71016a | 166 | %{_datadir}/xsessions/XBMC.desktop |