# - 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: 12.2
-Release: 2
+Release: 5
License: GPL v2+ and GPL v3+
Group: Applications/Multimedia
Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz
# 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
-BuildRequires: libcec-devel
+%{?with_cec:BuildRequires: libcec-devel}
+%ifarch i686 pentium4 athlon %{x8664}
BuildRequires: libcrystalhd-devel
+%endif
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: libmad-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
%prep
%setup -q
+%patch0 -p1
%build
./bootstrap
--disable-afpclient \
--disable-airtunes \
%{__enable_disable goom} \
- %{__enable_disable hal}
+ %{__enable_disable hal} \
+ %{__enable_disable libcec}
LIBS="-lpthread"
%{__make} V=1