Summary: An MPEG audio player.
Summary(ja): MPEG オーディオプレーヤー
Name: mpg321
Version: 0.2.10
Release: 5%{?_dist_release}
License: GPL
Group: Applications/Multimedia
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL: http://mpg321.sourceforge.net/
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: libao >= 0.8.0, libmad >= 0.14.2b, libid3tag, zlib
BuildRequires: libao-devel >= 0.8.0, libmad-devel >= 0.14.2b, libid3tag-devel
BuildRequires: zlib-devel
Obsoletes: mpg123
Provides: mpg123

%description
mpg321 is a Free replacement for mpg123, a very popular command-line mp3
player. mpg123 is used for frontends, as an mp3 player and as an mp3 to
wave file decoder (primarily for use with CD-recording software.) In all 
of these capacities, mpg321 can be used as a drop-in replacement for
mpg123.

%prep
%setup -q

%build
%configure --with-default-audio=esd
make

%install
rm -rf %{buildroot}
%makeinstall

pushd $RPM_BUILD_ROOT%{_mandir}/man1
ln -sf mpg321.1 mpg123.1
popd

%clean
rm -rf %{buildroot}

%files 
%defattr(-, root, root)
%doc AUTHORS BUGS ChangeLog COPYING HACKING NEWS README* THANKS TODO
%{_bindir}/*
%{_mandir}/man1/*

%changelog
* Sat Oct 04 2008 Shu KONNO <owa@bg.wakwak.com> 0.2.10-5vl5
- applied new versioning policy, spec in utf-8

* Sun Mar 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.10-4vl2
- added Provides: mpg123
- added mpg123.1 (sybolic link for mpg321.1)

* Thu Mar 11 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.10-4vl1
- based on freshrpms
- Rebuild for Vine Linux
- added Japanese Summary

* Sun Nov  2 2003 Matthias Saou <http://freshrpms.net/> - 0.2.10-4.fr
- Rebuild for Fedora Core 1.

* Mon Jul 21 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update libmad-devel and libid3tag-devel build deps.

* Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Rebuilt for Red Hat Linux 9.

* Mon Sep 30 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.2.10.
- Spec file cleanup.

* Tue Apr  9 2002 Bill Nottingham <notting@redhat.com> 0.2.9-3
- add patch from author to fix id3 segfaults (#62714)
- fix audio device fallback to match upstream behavior

* Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 0.2.9-2
- fix possible format string exploit
- add simple audio device fallback

* Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.2.9-1
- update to 0.2.9

* Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
- rebuild

* Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
- update to 0.2.3, libmad is now separate

* Mon Aug 13 2001 Bill Nottingham <notting@redhat.com>
- update to 0.1.5
- fix build with new libao

* Fri Jul 20 2001 Bill Nottingham <notting@redhat.com>
- initial build
