#
# TODO:
# - fix build flags - some files are compiled with -O3 and without rpm*flags
-# - fix linking order
+# - fix linking argument order
# - fix install - add DESTDIR support
# - don't put binary in %{_datadir} and fix start scripts
#
Release: 0.1
License: GPL v3
Group: Applications/Multimedia
-Source0: http://downloads.sourceforge.net/project/xbmc/XBMC%20Source%20Code/Camelot%20-%209.11/xbmc-9.11.tar.gz
+Source0: http://downloads.sourceforge.net/project/xbmc/XBMC%20Source%20Code/Camelot%20-%209.11/%{name}-%{version}.tar.gz
# Source0-md5: 9a68ac1e2f44a54cc3803fcdb1265767
URL: http://xbmc.org
Patch0: %{name}-nobash.patch
BuildRequires: libvorbis-devel
BuildRequires: lzo-devel
BuildRequires: mysql-devel
+%ifarch %{ix86}
BuildRequires: nasm
+%endif
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: pulseaudio-devel
%description
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%patch0 -p1
%build
%{_datadir}/%{name}
%attr(755,root,root) %{_datadir}/%{name}/xbmc.bin
%attr(755,root,root) %{_datadir}/%{name}/xbmc-xrandr
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
%{_datadir}/xsessions/XBMC.desktop