%define debug_package %{nil} Name: win32codecs Version: 20071007 Release: 1 Summary: Win32 codec binaries License: Redistributable, no modification permitted Group: System/Libraries URL: http://www.mplayerhq.hu Source0: http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-%{version}.tar.bz2 Source1: http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-%{version}-MD5SUMS Buildroot: %{_tmppath}/%{name}-buildroot ExclusiveArch: %ix86 %description These are binary codecs for use with MPlayer. They are useless for normal Windows players (like Windows Media Player, QuickTime, RealPlayer, ...) as they only contain the DLLs without installer and other fancy stuff needed to use them with common Windows players. Put the files contained in this archive in a directory where MPlayer will find them. The default directory is /usr/local/lib/codecs/ ($prefix/lib/codecs/) if you are compiling from source, but you can change that value by passing the '--with-codecsdir' option to './configure'. If you use a prebuilt MPlayer package it will most likely be /usr/lib/codecs, see the documentation of your package for details. In the past /usr/local/lib/win32 or /usr/lib/win32 was the default directory, some packages as well as a few other Unix players like xine and avifile still use it, refer to their documentation for further details. On Windows if you are using a prebuilt MPlayer, put the contents of this package in the codecs folder within your main MPlayer installation folder. %prep %setup -q -n all-%{version} %build %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/local/lib/win32 install -m 644 *.* $RPM_BUILD_ROOT%{_prefix}/local/lib/win32 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/local/lib/win32 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_prefix}/local/lib $RPM_BUILD_ROOT%{_prefix}/lib #ln -s %{_prefix}/local/lib/win32 $RPM_BUILD_ROOT%{_prefix}/lib/codecs ln -s %{_prefix}/local/lib/win32 $RPM_BUILD_ROOT%{_prefix}/local/lib/codecs ln -s %{_prefix}/local/lib/win32 $RPM_BUILD_ROOT%{_prefix}/lib/win32 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %dir %{_prefix}/local/lib/win32 %{_prefix}/local/lib/win32/* #/usr/lib/codecs /usr/local/lib/codecs /usr/lib/win32 %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} %{packager} %{version}-%{release} - Rebuild %{name} %{version}-%{release}