%bcond_without alsa # don't build alsa plugin
%bcond_without ggi # don't build ggi plugin
%bcond_with mozilla # build mozilla plugin
+%bcond_with live # build with live.com support
#
Summary: VLC - a multimedia player and stream server
Summary(pl): VLC - odtwarzacz multimedialny oraz serwer strumieni
Patch2: %{name}-buildflags.patch
Patch3: %{name}-wxgtk2.patch
Patch4: %{name}-defaultfont.patch
+Patch5: %{name}-speex.patch
URL: http://www.videolan.org/vlc/
BuildRequires: OpenGL-devel
BuildRequires: SDL-devel >= 1.2
BuildRequires: flac-devel
BuildRequires: fribidi-devel
BuildRequires: gettext-devel
+BuildRequires: hal-devel >= 0.2.97
BuildRequires: libcaca-devel
BuildRequires: libcdio-devel
BuildRequires: libcddb-devel
BuildRequires: libvorbis-devel
BuildRequires: libxml2-devel
BuildRequires: lirc-devel
+%{?with_live:BuildRequires: live >= 2005.03.11}
BuildRequires: mpeg2dec-devel
%{?with_mozilla:BuildRequires: mozilla-devel}
BuildRequires: ncurses-devel
%patch2 -p0
%patch3 -p1
%patch4 -p1
+%patch5 -p1
mv -f po/{no,nb}.po
%{!?with_ggi:--disable-ggi} \
--disable-glide \
--enable-lirc \
- --enable-livedotcom \
--enable-mad \
--enable-mga \
%{?with_mozilla:--enable-mozilla } \
+ %{?with_live:--enable-livedotcom } \
+ %{!?with_live:--disable-livedotcom } \
--enable-ncurses \
--enable-pvr \
--enable-sdl \