mpg123/mpg123.spec

Name: mpg123
Summary: MPEG audio player
Version: 1.15.1
Release: 1
License: GPL/LGPL
Group: Applications/Multimedia
URL: http://mpg123.org/
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}'

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%{!?audio:%define audio alsa esd oss}

%{?el6:%define _without_jack 1}
%{?el6:%define _without_nas 1}

%{?el5:%define audio alsa esd oss}
%{?el5:%define _without_jack 1}
%{?el5:%define _without_nas 1}
%{?el4:%define _without_ltdl_devel 1}

%{?el4:%define audio alsa esd oss}
%{?el4:%define _without_jack 1}
%{?el4:%define _without_nas 1}

%{?el3:%define audio esd oss}
%{?el3:%define _without_alsa 1}
%{?el3:%define _without_jack 1}
%{?el3:%define _without_nas 1}

Summary: MPEG audio player
Name: mpg123
Version: 1.15.1
Release: 1%{?dist}
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: portaudio-devel
BuildRequires: SDL-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}
%{!?_without_ltdl_devel:BuildRequires: libtool-ltdl-devel}
%{?_without_ltdl_devel:BuildRequires: libtool}

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}'

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup

%build
export SDL_CFLAGS="$(sdl-config --cflags)"
export SDL_LIBS="$(sdl-config --libs)"
%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 %{_mandir}/man1/mpg123.1*
%{_bindir}/mpg123
%{_libdir}/libmpg123.so.*
%{_libdir}/mpg123/
#exclude %{_libdir}/mpg123/*.la

%files devel
%defattr(-, root, root, 0755)
%doc doc/
%{_includedir}/mpg123.h
%{_libdir}/libmpg123.so
%{_libdir}/pkgconfig/libmpg123.pc
%exclude %{_libdir}/libmpg123.la

%changelog
* Wed Mar 20 2013 Dag Wieers <dag@wieers.com> - 1.15.1-1
- Updated to release 1.15.1.

* Fri Aug 31 2012 Tom G. Christensen <tgc@jupiterrise.com> - 1.14.4-2
- Plugins need libltdl from libtool

* Wed Aug 01 2012 Dag Wieers <dag@wieers.com> - 1.14.4-1
- Updated to release 1.14.4.

* Fri Jun 08 2012 Dag Wieers <dag@wieers.com> - 1.14.2-1
- Updated to release 1.14.2.

* Fri Jun 08 2012 Dag Wieers <dag@wieers.com> - 1.14.0-1
- Updated to release 1.14.0.

* Sun Apr 08 2012 Dag Wieers <dag@wieers.com> - 1.13.7-1
- Updated to release 1.13.7.

* Mon Mar 12 2012 Dag Wieers <dag@wieers.com> - 1.13.6-1
- Updated to release 1.13.6.

* Sun Mar 11 2012 Dag Wieers <dag@wieers.com> - 1.13.5-1
- Updated to release 1.13.5.

* Fri Sep 16 2011 Dag Wieers <dag@wieers.com> - 1.13.4-1
- Updated to release 1.13.4.

* Fri Apr 22 2011 Dag Wieers <dag@wieers.com> - 1.13.3-1
- Updated to release 1.13.3.

* Wed Mar 09 2011 Dag Wieers <dag@wieers.com> - 1.13.2-1
- Cleaned up doc/ directory.
- Enabled esound dependency on EL6.
- Updated to release 1.13.2.

* Thu Oct 07 2010 Dag Wieers <dag@wieers.com> - 1.12.5-1
- Updated to release 1.12.5.

* Sun Sep 19 2010 Dag Wieers <dag@wieers.com> - 1.12.4-1
- Updated to release 1.12.4.

* Tue Jul 13 2010 Dag Wieers <dag@wieers.com> - 1.12.3-1
- Updated to release 1.12.3.

* Tue Jun 22 2010 Dag Wieers <dag@wieers.com> - 1.12.2-1
- Updated to release 1.12.2.

* Wed Mar 31 2010 Dag Wieers <dag@wieers.com> - 1.12.0-1
- Updated to release 1.12.0.

* Sun Mar 21 2010 Dag Wieers <dag@wieers.com> - 1.11.0-1
- Updated to release 1.11.0.

* Sat Dec 26 2009 Dag Wieers <dag@wieers.com> - 1.10.0-1
- Updated to release 1.10.0.

* Thu Oct 22 2009 Dag Wieers <dag@wieers.com> - 1.9.1-1
- Updated to release 1.9.1.

* Wed Jul 22 2009 Dag Wieers <dag@wieers.com> - 1.8.1-2
- Rebuild against portaudio-19.

* Thu Jun 18 2009 Dag Wieers <dag@wieers.com> - 1.8.1-1
- Updated to release 1.8.1.

* Fri Apr 17 2009 Dag Wieers <dag@wieers.com> - 1.7.2-1
- Updated to release 1.7.2.

* Sat Apr 04 2009 Dag Wieers <dag@wieers.com> - 1.7.1-1
- Updated to release 1.7.1.

* Sun Dec 21 2008 Dag Wieers <dag@wieers.com> - 1.6.3-1
- Updated to release 1.6.3.

* Wed Nov 12 2008 Dag Wieers <dag@wieers.com> - 1.6.2-1
- Updated to release 1.6.2.

* Mon Nov 10 2008 Dag Wieers <dag@wieers.com> - 1.6.1-1
- Updated to release 1.6.1.

* Wed Nov 05 2008 Dag Wieers <dag@wieers.com> - 1.6.0-1
- Updated to release 1.6.0.

* Sat Aug 30 2008 Dag Wieers <dag@wieers.com> - 1.5.1-1
- Updated to release 1.5.1.

* Sun Aug 03 2008 Dag Wieers <dag@wieers.com> - 1.5.0-1
- Updated to release 1.5.0.

* Tue May 27 2008 Dag Wieers <dag@wieers.com> - 1.4.3-1
- Updated to release 1.4.3.

* Tue Apr 22 2008 Dag Wieers <dag@wieers.com> - 1.4.2-1
- Updated to release 1.4.2.

* Tue Apr 08 2008 Dag Wieers <dag@wieers.com> - 1.4.1-1
- Updated to release 1.4.1.

* Sun Mar 09 2008 Dag Wieers <dag@wieers.com> - 1.3.1-1
- Updated to release 1.3.1.

* Mon Mar 03 2008 Dag Wieers <dag@wieers.com> - 1.3.0-1
- Updated to release 1.3.0.

* Tue Feb 26 2008 Dag Wieers <dag@wieers.com> - 1.2.1-1
- Updated to release 1.2.1.

* Sun Feb 03 2008 Dag Wieers <dag@wieers.com> - 1.2.0-1
- Updated to release 1.2.0.

* Fri Jan 18 2008 Dag Wieers <dag@wieers.com> - 1.1.0-1
- Updated to release 1.1.0.

* Sun Dec 30 2007 Dag Wieers <dag@wieers.com> - 1.0.1-1
- Updated to release 1.0.1.

* Thu Dec 27 2007 Dag Wieers <dag@wieers.com> - 1.0.0-1
- Updated to release 1.0.0.
- Added devel subpackage.

* Mon Nov 05 2007 Dag Wieers <dag@wieers.com> - 0.68-1
- Updated to release 0.68.

* Mon Jun 04 2007 Dag Wieers <dag@wieers.com> - 0.66-1
- Updated to release 0.66.

* Wed Feb 07 2007 Dag Wieers <dag@wieers.com> - 0.65-1
- Updated to release 0.65.

* Tue Jan 16 2007 Dag Wieers <dag@wieers.com> - 0.64-1
- Updated to release 0.64.

* Mon Jan 15 2007 Dag Wieers <dag@wieers.com> - 0.63-1
- Updated to release 0.63.

* Sun Oct 22 2006 Dag Wieers <dag@wieers.com> - 0.61-1
- Updated to release 0.61.

* Mon Sep  4 2006 Matthias Saou <http://freshrpms.net/> 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 <http://freshrpms.net/> 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).