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: 9e8a26ee25173c7268abea7f1d82d428
24 BuildRequires: Mesa-libGLU-devel
25 BuildRequires: OpenGL-devel
26 BuildRequires: SDL-devel
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
33 BuildRequires: bluez-libs-devel >= 4.99
34 BuildRequires: boost-devel
35 BuildRequires: bzip2-devel
37 BuildRequires: curl-devel
38 BuildRequires: dbus-devel
39 BuildRequires: ffmpeg-devel
40 BuildRequires: flac-devel
41 BuildRequires: fontconfig-devel
42 BuildRequires: freetype-devel
43 BuildRequires: fribidi-devel
45 BuildRequires: gettext-autopoint
46 BuildRequires: gettext-devel
47 BuildRequires: glew-devel
50 BuildRequires: hal-devel
52 BuildRequires: jasper-devel
53 BuildRequires: libass-devel
54 BuildRequires: libbluray-devel
55 BuildRequires: libcdio-devel
56 BuildRequires: libgcrypt-devel
57 BuildRequires: libjpeg-devel
58 BuildRequires: libmad-devel
59 BuildRequires: libmicrohttpd-devel
60 BuildRequires: libmodplug-devel
61 BuildRequires: libmpeg2-devel
62 BuildRequires: libogg-devel
63 BuildRequires: libplist-devel
64 BuildRequires: libpng-devel
65 BuildRequires: librtmp-devel
66 BuildRequires: libsamplerate-devel
67 BuildRequires: libsmbclient-devel
68 BuildRequires: libssh-devel
69 BuildRequires: libtiff-devel
70 BuildRequires: libtool
71 BuildRequires: libva-devel
72 BuildRequires: libvdpau-devel
73 BuildRequires: libvorbis-devel
74 BuildRequires: lzo-devel
75 BuildRequires: mysql-devel
79 BuildRequires: openssl-devel
80 BuildRequires: pcre-cxx-devel
81 BuildRequires: pcre-devel
82 BuildRequires: pkgconfig
83 BuildRequires: pulseaudio-devel
84 BuildRequires: python-devel >= 2.4
85 BuildRequires: rpm-pythonprov
86 BuildRequires: rpmbuild(macros) >= 1.566
88 BuildRequires: sed >= 4.0
89 BuildRequires: sqlite3-devel
90 BuildRequires: udev-devel
92 BuildRequires: xorg-lib-libX11-devel
93 BuildRequires: xorg-lib-libXext-devel
94 BuildRequires: xorg-lib-libXinerama-devel
95 BuildRequires: xorg-lib-libXmu-devel
96 BuildRequires: xorg-lib-libXrandr-devel
97 BuildRequires: xorg-lib-libXt-devel
98 BuildRequires: xorg-lib-libXtst-devel
99 BuildRequires: yajl-devel
101 BuildRequires: zlib-devel
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
113 Requires: /usr/bin/glxinfo
114 Requires: SDL >= 1.2.14-5
115 Requires: lsb-release
116 Requires: xorg-app-xdpyinfo
117 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
132 --enable-external-libraries \
137 --disable-afpclient \
139 --disable-crystalhd \
140 %{__enable_disable goom} \
141 %{__enable_disable hal}
146 rm -rf $RPM_BUILD_ROOT
148 DESTDIR=$RPM_BUILD_ROOT
151 rm -rf $RPM_BUILD_ROOT
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_bindir}/*
157 %attr(755,root,root) %{_libdir}/%{name}
159 %{_desktopdir}/%{name}.desktop
160 %{_iconsdir}/hicolor/256x256/apps/%{name}.png
161 %{_iconsdir}/hicolor/48x48/apps/%{name}.png
162 %{_datadir}/xsessions/XBMC.desktop