Back to the mpg123 rpmsCurrent spec in pydar2:
# $Id: mpg123.spec 5977 2007-11-10 12:22:14Z dag $
# Authority: matthias
%{!?audio:%define audio alsa}
%{?dist: %{expand: %%define %dist 1}}
%{?el5:%define _without_jack 1}
%{?el5:%define _without_nas 1}
%{?el4:%define _without_jack 1}
%{?el4:%define _without_nas 1}
%{?fc3:%define _without_jack 1}
%{?fc3:%define _without_nas 1}
%{?fc2:%define _without_jack 1}
%{?fc2:%define _without_nas 1}
%{?fc1:%define audio esd}
%{?fc1:%define _without_alsa 1}
%{?fc1:%define _without_jack 1}
%{?fc1:%define _without_nas 1}
%{?el3:%define audio esd}
%{?el3:%define _without_alsa 1}
%{?el3:%define _without_jack 1}
%{?el3:%define _without_nas 1}
%{?rh9:%define audio esd}
%{?rh9:%define _without_alsa 1}
%{?rh9:%define _without_jack 1}
%{?rh9:%define _without_nas 1}
%{?rh7:%define audio esd}
%{?rh7:%define _without_alsa 1}
%{?rh7:%define _without_jack 1}
%{?rh7:%define _without_nas 1}
%{?el2:%define audio oss}
%{?el2:%define _without_alsa 1}
%{?el2:%define _without_esound 1}
%{?el2:%define _without_jack 1}
%{?el2:%define _without_nas 1}
Summary: MPEG audio player
Name: mpg123
Version: 0.68
Release: 1
License: GPL/LGPL
Group: Applications/Multimedia
URL: http://mpg123.org/
Source: http://mpg123.org/download/mpg123-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: pkgconfig
BuildRequires: SDL-devel
BuildRequires: portaudio-devel
# We actually only need one, but it doesn't hurt to have them all
%{!?_without_jack:BuildRequires: jack-audio-connection-kit-devel}
%{!?_without_esound:BuildRequires: esound-devel}
%{!?_without_nas:BuildRequires: nas-devel}
%{!?_without_alsa:BuildRequires: alsa-lib-devel}
Obsoletes: mpg321 <= 0.2.10-9
%description
Real time command line MPEG audio player for Layer 1, 2 and Layer3.
Available rpmbuild rebuild option :
--define 'audio {alsa,esd,jack,nas,oss,portaudio,sdl}'
%prep
%setup
%build
%configure \
--program-prefix="%{?_program_prefix}" \
--enable-gapless="yes" \
--with-audio="%{audio}"
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README doc/
%{_bindir}/mpg123
%{_mandir}/man1/mpg123.1*
%changelog
* Mon Nov 05 2007 Dag Wieers - 0.68-1
- Updated to release 0.68.
* Mon Jun 04 2007 Dag Wieers - 0.66-1
- Updated to release 0.66.
* Wed Feb 07 2007 Dag Wieers - 0.65-1
- Updated to release 0.65.
* Tue Jan 16 2007 Dag Wieers - 0.64-1
- Updated to release 0.64.
* Mon Jan 15 2007 Dag Wieers - 0.63-1
- Updated to release 0.63.
* Sun Oct 22 2006 Dag Wieers - 0.61-1
- Updated to release 0.61.
* Mon Sep 4 2006 Matthias Saou 0.60-1
- Update to 0.60 final.
- Add support for all available compatible outputs, unfortunately it's a build
time choice, so default to alsa.
- Obsolete mpg321 up to the last know package version.
* Tue Jul 25 2006 Matthias Saou 0.60-0.1.beta2
- Initial RPM release, now that mpg123 is maintained again and went GPL/LGPL.
- Audio output type is not (yet?) plugin-based, so use libao (for ALSA).