%define majversion %(echo %version|cut -d. -f1-2) %define pkgversion %(echo %version|cut -d. -f1-3) Name: libavifile Version: 0.7.45.20060306 Release: 7mamba Summary: The avifile library used to play AVI streams, including DivX ;-). Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://avifile.sourceforge.net/ Source: http://ovh.dl.sourceforge.net/sourceforge/avifile/avifile-%{majversion}-%{pkgversion}.tar.bz2 Patch: %{name}-0.7-0.7.38-libdir.patch Patch1: %{name}-0.7-0.7.45-gcc4.patch Patch2: %{name}-0.7-0.7.45-gcc42.patch Patch3: %{name}-0.7.45-gcc44.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libaudio-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libICE-devel BuildRequires: libjpeg-devel BuildRequires: libqt-devel BuildRequires: libSDL-devel BuildRequires: libSM-devel BuildRequires: libstdc++6-devel BuildRequires: libvorbis-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libxcb-devel BuildRequires: libXdmcp-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: libXi-devel BuildRequires: libXinerama-devel BuildRequires: libXrender-devel BuildRequires: libXt-devel BuildRequires: libXv-devel BuildRequires: libxvidcore-devel BuildRequires: libXxf86dga-devel BuildRequires: libXxf86vm-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: liba52dec-devel BuildRequires: liblame-devel BuildRequires: libvorbis-devel %ifarch %ix86 x86_64 BuildRequires: divx4linux-devel %endif BuildRequires: libfaad2-devel BuildRequires: libalsa-devel BuildRequires: libmng-devel >= 1.0.5 BuildRequires: libpng-devel >= 1.2.5 Obsoletes: avifile #Requires: divx4linux BuildRoot: %{_tmppath}/%{name}-%{version}-root # FIXME: the 'xvid' plugin (DivX4, XviD) cannot be compiled # (but the 'xvid4' plugin is build with no errors) %description Avifile is a library that allows you to read and write compressed AVI files in most common video & audio formats (Indeo Video, DivX, etc.) under x86 Linux. Compression and decompression are performed with Win32 DLLs. To use this program, you will need to get the Win32 binaries from %{URL} and put uncompress them under /usr/lib/win32. %{URL} and put uncompress them under /usr/lib/win32. %package devel Summary: Headers for developing programs that will use avifile Group: Development/Libraries Obsoletes: avifile-devel Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Avifile is a library that allows you to read and write compressed AVI files in most common video & audio formats (Indeo Video, DivX, etc.) under x86 Linux. Compression and decompression are performed with Win32 DLLs. This package contains the headers that programmers will need to develop applications which will use %{name}. %package -n avifile-utils Summary: Simple AVI player, a Video4Linux capture program and other tools Group: Applications/Multimedia Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n avifile-utils Avifile is a library that allows you to read and write compressed AVI files in most common video & audio formats (Indeo Video, DivX, etc.) under x86 Linux. Compression and decompression are performed with Win32 DLLs. It includes a simple AVI player and a Video4Linux capture program. %prep %setup -q -n avifile-%{majversion}-%{pkgversion} # patch not necessary (just modify '${exec_prefix}/lib' into '${lib_dir}') #%patch -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %configure \ --enable-static \ --enable-release \ --enable-lame-bin \ --enable-divxbin \ --enable-quiet \ --with-x find ./ -name Makefile \ -exec sed -i "s/\(.*\)-mcpu=[^ ]*\(.*\)/\1-mtune=%{_target_cpu}\2/g" {} \; \ -exec sed -i "s/\(.*-march=\)[^ ]*\(.*\)/\1%{_target_cpu}\2/g" {} \; %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root,-) %{_libdir}/*.so.* %dir %{_libdir}/avifile-%{majversion} %{_libdir}/avifile-%{majversion}/* %dir %{_datadir}/avifile-%{majversion} %{_datadir}/avifile-%{majversion}/* %{_mandir}/man1/* %doc COPYING ChangeLog README doc %files devel %defattr(-,root,root,-) %{_bindir}/avifile-config %{_datadir}/aclocal/avifile.m4 %dir %{_includedir}/avifile-%{majversion} %{_includedir}/avifile-%{majversion}/* %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/avifile.pc %files -n avifile-utils %defattr(-,root,root,-) %{_bindir}/avibench %{_bindir}/avicap %{_bindir}/avicat %{_bindir}/avimake %{_bindir}/aviplay %{_bindir}/avirec %{_bindir}/avirecompress %{_bindir}/avitype %attr(4755, root, root) %{_bindir}/kv4lsetup %changelog * Sun Aug 22 2010 Automatic Build System 0.7.45.20060306-7mamba - automatic rebuild by autodist * Mon Jun 29 2009 Automatic Build System 0.7.45.20060306-6mamba - automatic rebuild by autodist * Mon Jun 29 2009 Automatic Build System 0.7.45.20060306-5mamba - automatic rebuild by autodist * Wed May 20 2009 Automatic Build System 0.7.45.20060306-4mamba - automatic rebuild by autodist * Fri Mar 20 2009 Silvan Calarco 0.7.45.20060306-1mamba - automatic update by autodist * Sun Jun 01 2008 Silvan Calarco 0.7.45-2mamba - specfile updated * Mon Jun 26 2006 Stefano Cotta Ramusino 0.7.45-1qilnx - update to version 0.7.45 by autospec * Mon Oct 18 2004 Davide Madrisan 0.7.41-1qilnx - updated to 0.7.41 by autospec * Thu Oct 15 2004 Davide Madrisan 0.7.40-3qilnx - all files in '%{_libdir}/avifile-%{major_ver}' moved to the main package * Sun Oct 03 2004 Davide Madrisan 0.7.40-2qilnx - specfile modified to match QiLinux standards - added an hack to force the compilation for %{_target_cpu} cpus - added the package avifile-utils * Sat Sep 18 2004 Matteo Bernasconi 0.7.40-1qilnx - first build