%define name mpg321 %define version 0.2.10 %define release 3mdk Summary: Mpg321 is a free mpg123-clone Name: %{name} Version: %{version} Release: %{release} Group: Sound License: GPL URL: http://sourceforge.net/projects/mpg321 Source: http://prdownloads.sourceforge.net/mpg321/%name-%version.tar.bz2 BuildRequires: mad-devel >= 0.13 libao2-devel >= 0.8.0 perl BuildRequires: libid3tag-devel BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} # since this package is not mainstream yet. #Provides: mpg123 #Obsoletes: mpg123 %description mpg321 is a Free clone of mpg123, a command-line MP3 player. It is designed to be a drop-in replacement for mpg123, and therefore its interface has been designed around that of mpg123, without using any of its code. mpg321 has been designed for use with frontends such as gqmpeg, although it is just as useful on the command-line. Unlike mpg123, it supports ESD and ALSA output without recompiling, and it does all MP3 decoding with only fixed-point math by using the mad MPEG audio decoder library. %prep rm -rf $RPM_BUILD_ROOT %setup -q #fix path in man page perl -pi -e "s!/usr/share/doc/mpg321!/usr/share/doc/mpg321-%{version}!" mpg321.1 %build %configure2_5x --enable-mpg123-symlink=no # Uncomment option once mainstream. %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) %doc AUTHORS COPYING ChangeLog HACKING NEWS README* TODO %{_mandir}/man1/* %{_bindir}/* # Other option to test and create symlink. #%post #test -e /usr/bin/mpg123 || ln -s /usr/bin/mpg321 /usr/bin/mpg123 #%postun #test -L /usr/bin/mpg123 && rm -f /usr/bin/mpg123 %changelog * Thu Jun 26 2003 Götz Waschk <waschk@linux-mandrake.com> 0.2.10-3mdk - fix buildrequires * Thu Jan 30 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.2.10-2mdk - rebuild * Fri Mar 29 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2.10-1mdk - 0.2.10 * Tue Mar 19 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2.9-1mdk - %%configure2_5x - 0.2.9 * Wed Dec 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.2.3-1mdk - 0.2.3 * Sun Nov 11 2001 Götz Waschk <waschk@linux-mandrake.com> 0.2.2-4mdk - fix path in man page - add missing README.remote * Wed Nov 7 2001 Götz Waschk <waschk@linux-mandrake.com> 0.2.2-3mdk - make rpmlint happy - rebuilt against libmad0 - make tar quiet * Wed Oct 17 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.2.2-2mdk - addes by Han Boetes <han@mijncomputer.nl> : - Minor cosmetic fixes. * Sun Oct 14 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.2.2-1mdk - Don't obsolete it ... until it is in the main distib ... - Newest shiniest version. - Minor cosmetic fixes. * Fri Oct 12 2001 Han Boetes <han@mijncomputer.nl> 0.2.0-5mdk - Solved quarell with mpg123 * Fri Oct 12 2001 Han Boetes <han@mijncomputer.nl> 0.2.0-4mdk - Solved lots off details ; cheers to niven * Fri Oct 12 2001 Han Boetes <han@mijncomputer.nl> 0.2.0-1mdk - First attempt # end of file