Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > c3aa604e8f691d37a09b22db659f03a6 > files > 5

mpg321-0.2.11-3mdv2010.1.src.rpm

Summary:	Mpg123-clone
Name:		mpg321
Version:	0.2.11
Release:	%mkrel 3
Group:		Sound
License:	GPL
URL: 		http://sourceforge.net/projects/mpg321
Source: 	http://prdownloads.sourceforge.net/mpg321/%name-%version.tar.gz
Patch0:		mpg321-help.patch
Patch1:		mpg321-0.2.11-fix-str-fmt.patch
Patch2:		mpg321-0.2.11-set-channel-mapping.patch
BuildRequires:	mad-devel >= 0.13 libao-devel >= 0.8.0 perl
BuildRequires:  libid3tag-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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
%setup -qn %name
%patch0 -p0
%patch1 -p0
%patch2 -p1

#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
* Tue May 11 2010 Pascal Terjan <pterjan@mandriva.org> 0.2.11-3mdv2010.1
+ Revision: 544471
- Set a channel mapping to avoid crash on recent libao (#59019)

* Sun Mar 28 2010 Funda Wang <fwang@mandriva.org> 0.2.11-2mdv2010.1
+ Revision: 528369
- rebuild

* Sun Nov 15 2009 Funda Wang <fwang@mandriva.org> 0.2.11-1mdv2010.1
+ Revision: 466207
- new version 0.2.11

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Tue Jul 29 2008 Thierry Vignaud <tv@mandriva.org> 0.2.10-10mdv2009.0
+ Revision: 252961
- rebuild

* Tue Mar 25 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.10-8mdv2008.1
+ Revision: 189862
- fix #37847 (mpg321 doesn't list pulseaudio output)

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.2.10-7mdv2008.1
+ Revision: 170988
- rebuild
- summary is not licence tag
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
- fix spacing at top of description

* Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 0.2.10-6mdv2008.1
+ Revision: 140963
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Thu Jan 11 2007 Götz Waschk <waschk@mandriva.org> 0.2.10-6mdv2007.0
+ Revision: 107459
- Import mpg321

* Thu Jan 11 2007 Götz Waschk <waschk@mandriva.org> 0.2.10-6mdv2007.1
- Rebuild

* Fri Oct 07 2005 Lenny Cartier <lenny@mandriva.com> 0.2.10-5mdk
- rebuild

* Fri Jul 23 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.2.10-4mdk
- rebuild