# _without_qt - disables QT support
# _with_divx - enables divx4linux support (proprietary, binary-only
# lib) note: if disabled, divx is decoded by ffmpeg
+# _with_nas - enables nas support
#
-%define _snapver 20030219
+%define _snapver 20030319
%define _snap %{_snapver}
Summary: Library for playing AVI files
Summary(pl): Biblioteka do odtwarzania plików AVI
Summary(pt_BR): Biblioteca para reproduzir formatos de áudio e vídeo usando binários win32
Name: avifile
-Version: 0.7.32
+Version: 0.7.34
Release: 0.%{_snap}%{?_with_divx:+divx}
Epoch: 3
License: GPL
Patch0: %{name}-shareware.patch
Patch1: %{name}-no_libnsl.patch
Patch2: %{name}-fix-keys.patch
+Patch3: %{name}-etc_dir.patch
+Patch4: %{name}-nolibtooltest.patch
+Patch5: %{name}-aviplay_h.patch
URL: http://avifile.sourceforge.net/
BuildRequires: SDL-devel >= 1.2.0
BuildRequires: XFree86-devel
BuildRequires: lame-libs-devel
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
-BuildRequires: libtool >= 0:1.4.2-9
+BuildRequires: libtool >= 1:1.4.3
BuildRequires: libvorbis-devel >= 1:1.0
-BuildRequires: nas-devel
+%{?_with_nas:BuildRequires: nas-devel}
%{?!_without_qt:BuildRequires: qt-devel >= 2.0.0}
BuildRequires: unzip
%ifarch %{ix86} ppc
%prep
%setup -q -n avifile0.7-%{version}
%patch0 -p1
-%patch1 -p1
+%patch1 -p0
%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
%{__autoconf}