# TODO:
# - fix build flags - some files are compiled with -O3 and without rpm*flags
# - fix linking argument order
-# - fix nvidia vs. libXrandr >= 1.2 conflict (nvidia drivers still supports
-# only libXrandr 1.1 - with no gamma support; it causes application crash
-# on XRRSetCrtcGamma function called by SDL_SetVideoMode)
# - add and/or fix users/groups permissions
# - split to subpackages?
#
# Conditional build:
+%bcond_without cec # build without cec support
%bcond_without goom # build without goom visualisation
-%bcond_with hal # build with HAL
+%bcond_with hal # build with HAL
Summary: XBMC is a free and open source media-player and entertainment hub
Name: xbmc
-Version: 11.0
-Release: 2
+Version: 12.2
+Release: 4
License: GPL v2+ and GPL v3+
Group: Applications/Multimedia
Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz
-# Source0-md5: 9e8a26ee25173c7268abea7f1d82d428
-Patch0: %{name}-format-security.patch
-Patch1: %{name}-ffmpeg10.patch
+# Source0-md5: 489f3877decae4e265ece54f9eaef0ba
+Patch0: ffmpeg2.patch
URL: http://xbmc.org/
BuildRequires: Mesa-libGLU-devel
BuildRequires: OpenGL-devel
-BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: alsa-lib-devel
BuildRequires: gettext-devel
BuildRequires: glew-devel
BuildRequires: gperf
-%if %{with hal}
-BuildRequires: hal-devel
-%endif
+%{?with_hal:BuildRequires: hal-devel}
BuildRequires: jasper-devel
+BuildRequires: jre
BuildRequires: libass-devel
-BuildRequires: libbluray-devel
+BuildRequires: libbluray-devel >= 0.2.1
+BuildRequires: libcap-devel
BuildRequires: libcdio-devel
+%{?with_cec:BuildRequires: libcec-devel}
+%ifarch i686 pentium4 athlon %{x8664}
+BuildRequires: libcrystalhd-devel
+%endif
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: libmad-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: libva-devel
+BuildRequires: libva-glx-devel
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
BuildRequires: lzo-devel
%endif
BuildRequires: openssl-devel
BuildRequires: pcre-cxx-devel
-BuildRequires: pcre-devel
BuildRequires: pkgconfig
BuildRequires: pulseaudio-devel
BuildRequires: python-devel >= 2.4
# used internally
BuildRequires: sed >= 4.0
BuildRequires: sqlite3-devel
+BuildRequires: swig
+BuildRequires: taglib-devel >= 1.8
+BuildRequires: tinyxml-devel
BuildRequires: udev-devel
BuildRequires: unzip
BuildRequires: xorg-lib-libX11-devel
#http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
#https://github.com/albertz/shairport
#BuildRequires: libshairport
-#http://www.broadcom.com/support/crystal_hd/
-#BuildRequires: crystalhd-devel
-#http://libcec.pulse-eight.com/
-#BuildRequires: libcec-devel >= 1.1.0
Requires: /usr/bin/glxinfo
Requires: SDL >= 1.2.14-5
Requires: lsb-release
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
%build
./bootstrap
%configure \
--disable-debug \
--enable-external-libraries \
+ --enable-pulse \
--enable-udev \
- --disable-libcec \
--disable-libusb \
--disable-nfs \
--disable-afpclient \
--disable-airtunes \
- --disable-crystalhd \
%{__enable_disable goom} \
- %{__enable_disable hal}
+ %{__enable_disable hal} \
+ %{__enable_disable libcec}
+LIBS="-lpthread"
%{__make} V=1
%install