]> git.pld-linux.org Git - packages/avifile.git/blobdiff - avifile.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/avifile.git] / avifile.spec
index e6f27b05e2eb409a635f6baefcfa49168968985b..45f93ef8d53672b05e105c63fb515f69d9865ef0 100644 (file)
@@ -2,19 +2,16 @@
 #
 # 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
@@ -22,6 +19,8 @@ Source0:      http://avifile.sourceforge.net/%{name}-%{version}-%{_snap}.tgz
 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
@@ -29,7 +28,7 @@ BuildRequires:        a52dec-libs-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
@@ -38,7 +37,7 @@ BuildRequires:        libvorbis-devel >= 1:1.0
 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
@@ -57,9 +56,16 @@ Avifile jest bibliotek
 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}
@@ -71,6 +77,9 @@ Header files required to build programs using libavifile.
 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
@@ -204,15 +213,17 @@ XVID decoder and encoder.
 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}
 
@@ -237,10 +248,8 @@ for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
        --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
@@ -295,6 +304,7 @@ rm -rf $RPM_BUILD_ROOT
 %files aviplay
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/aviplay
+%{_mandir}/man1/aviplay.1*
 %{_datadir}/%{name}*
 %{_applnkdir}/Multimedia/*
 %{_pixmapsdir}/*
@@ -317,7 +327,7 @@ rm -rf $RPM_BUILD_ROOT
 %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*
@@ -339,7 +349,7 @@ rm -rf $RPM_BUILD_ROOT
 %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*
This page took 0.054316 seconds and 4 git commands to generate.