3 # - fix build flags - some files are compiled with -O3 and without rpm*flags
4 # - fix linking argument order
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)
8 # - add and/or fix users/groups permissions
9 # - split to subpackages?
12 %bcond_without goom # build without goom visualisation
13 %bcond_with hal # build with HAL
15 Summary: XBMC is a free and open source media-player and entertainment hub
19 License: GPL v2+ and GPL v3+
20 Group: Applications/Multimedia
21 Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz
22 # Source0-md5: a79128b9d094a046947bfd9bb4550809
23 Patch0: %{name}-format-security.patch
25 BuildRequires: Mesa-libGLU-devel
26 BuildRequires: OpenGL-devel
27 BuildRequires: SDL-devel
28 BuildRequires: SDL_image-devel
29 BuildRequires: SDL_mixer-devel
30 BuildRequires: alsa-lib-devel
31 BuildRequires: autoconf
32 BuildRequires: automake
33 BuildRequires: avahi-devel
34 BuildRequires: bluez-libs-devel >= 4.99
35 BuildRequires: boost-devel
36 BuildRequires: bzip2-devel
38 BuildRequires: curl-devel
39 BuildRequires: dbus-devel
40 BuildRequires: ffmpeg-devel
41 BuildRequires: flac-devel
42 BuildRequires: fontconfig-devel
43 BuildRequires: freetype-devel
44 BuildRequires: fribidi-devel
46 BuildRequires: gettext-autopoint
47 BuildRequires: gettext-devel
48 BuildRequires: glew-devel
51 BuildRequires: hal-devel
53 BuildRequires: jasper-devel
54 BuildRequires: libass-devel
55 BuildRequires: libbluray-devel
56 BuildRequires: libcdio-devel
57 BuildRequires: libgcrypt-devel
58 BuildRequires: libjpeg-devel
59 BuildRequires: libmad-devel
60 BuildRequires: libmicrohttpd-devel
61 BuildRequires: libmodplug-devel
62 BuildRequires: libmpeg2-devel
63 BuildRequires: libogg-devel
64 BuildRequires: libplist-devel
65 BuildRequires: libpng-devel
66 BuildRequires: librtmp-devel
67 BuildRequires: libsamplerate-devel
68 BuildRequires: libsmbclient-devel
69 BuildRequires: libssh-devel
70 BuildRequires: libtiff-devel
71 BuildRequires: libtool
72 BuildRequires: libva-devel
73 BuildRequires: libvdpau-devel
74 BuildRequires: libvorbis-devel
75 BuildRequires: lzo-devel
76 BuildRequires: mysql-devel
80 BuildRequires: openssl-devel
81 BuildRequires: pcre-cxx-devel
82 BuildRequires: pcre-devel
83 BuildRequires: pkgconfig
84 BuildRequires: pulseaudio-devel
85 BuildRequires: python-devel >= 2.4
86 BuildRequires: rpm-pythonprov
87 BuildRequires: rpmbuild(macros) >= 1.566
89 BuildRequires: sed >= 4.0
90 BuildRequires: sqlite3-devel
91 BuildRequires: tinyxml-devel
92 BuildRequires: udev-devel
94 BuildRequires: xorg-lib-libX11-devel
95 BuildRequires: xorg-lib-libXext-devel
96 BuildRequires: xorg-lib-libXinerama-devel
97 BuildRequires: xorg-lib-libXmu-devel
98 BuildRequires: xorg-lib-libXrandr-devel
99 BuildRequires: xorg-lib-libXt-devel
100 BuildRequires: xorg-lib-libXtst-devel
101 BuildRequires: yajl-devel
103 BuildRequires: zlib-devel
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
115 Requires: /usr/bin/glxinfo
116 Requires: SDL >= 1.2.14-5
117 Requires: lsb-release
118 Requires: xorg-app-xdpyinfo
119 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
135 --enable-external-libraries \
140 --disable-afpclient \
142 --disable-crystalhd \
143 %{__enable_disable goom} \
144 %{__enable_disable hal}
149 rm -rf $RPM_BUILD_ROOT
151 DESTDIR=$RPM_BUILD_ROOT
154 rm -rf $RPM_BUILD_ROOT
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/*
160 %attr(755,root,root) %{_libdir}/%{name}
162 %{_desktopdir}/%{name}.desktop
163 %{_iconsdir}/hicolor/256x256/apps/%{name}.png
164 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
165 %{_datadir}/xsessions/XBMC.desktop