#
# Conditional build:
# _without_qt - disables QT support
-# _without_divx4 - disables divx4linux support
+# _with_divx4 - enables divx4linux support (proprietary, binary-only lib)
#
-%ifnarch %{ix86}
-%define _without_divx4 1
-%endif
-%define _snapver 20020816
+%define _snapver 20020913
%define _snap %{_snapver}
-%define _ver 0.7.15
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: %{_ver}
-Release: 0.%{_snap}.2
+Version: 0.7.16
+Release: 0.%{_snap}.3%{?_with_divx4:+divx4}
Epoch: 3
License: GPL
Group: X11/Libraries
Source1: %{name}.desktop
Patch0: %{name}-shareware.patch
Patch1: %{name}-no_libnsl.patch
+Patch2: %{name}-vidix.patch
+Patch3: %{name}-configure.patch
URL: http://avifile.sourceforge.net/
BuildRequires: SDL-devel >= 1.2.0
BuildRequires: XFree86-devel
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
-%{!?_without_divx4:BuildRequires: divx4linux-devel}
+%{?_with_divx4:BuildRequires: divx4linux-devel}
BuildRequires: lame-libs-devel
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
BuildRequires: nas-devel
%{?!_without_qt:BuildRequires: qt-devel >= 3.0.5}
BuildRequires: unzip
-%ifarch %{ix86} ppc sparc sparc64 sparcv9
+%ifarch %{ix86} ppc
BuildRequires: xvid-devel
%endif
BuildConflicts: wine-devel
skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
+%description -l pt_BR
+Avifile busca criar uma biblioteca usável de suporte a arquivos AVI e
+um conjunto básico de utilitários (para reprodução, captura e edição)
+para o Linux. Contém classes C++ para leitura e criação de AVIs e
+interfaces para compressores e descompresseores de áudio e vídeo.
+
%package devel
Summary: Header file required to build programs using libavifile
Summary(pl): Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
+Summary(pt_BR): Componentes para desenvolvimento com a avifile
Group: X11/Development/Libraries
Requires: XFree86-devel
Requires: %{name} = %{version}
Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
libavifile.
+%description devel -l pt_BR
+Componentes para desenvolvimento com a avifile.
+
%package aviplay
Summary: Player for AVI/ASF/WMF files
Summary(pl): Odtwarzacz plików AVI/ASF/WMF
Dekoder i koder XVID.
%prep
-%setup -q -n avifile0.7-%{_ver}
+%setup -q -n avifile0.7-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
rm -f missing aclocal.m4
%{__libtoolize}
%{__aclocal}
-autoheader
+%{__autoheader}
%{__autoconf}
%{__automake}
--enable-release \
--enable-ffmpeg \
--enable-ffmpeg-a52 \
- %{?_without_divx4:--disable-divx4} \
-%ifarch i586 i686 athlon
- --enable-x86opt \
-%endif
+ %{?_with_divx4:--enable-divx4} \
+ --disable-x86opt \
%{?_without_qt:--without-qt}
touch lib/dummy.cpp
%files aviplay
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/aviplay
+%{_mandir}/man1/aviplay.1*
%{_datadir}/%{name}*
%{_applnkdir}/Multimedia/*
%{_pixmapsdir}/*
%attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
%attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
-%if %{?_without_divx4:0}%{!?_without_divx4:1}
+%if %{?_with_divx4:1}%{!?_with_divx4:0}
%files divx
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/avifile*/divx*.so*
%attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
%attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
-%ifarch %{ix86} ppc sparc sparc64 sparcv9
+%ifarch %{ix86} ppc
%files xvid
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/avifile*/xvid.so*