%define audio alsa %{!?_without_pulse: %define audio pulse} Summary: A fast console MPEG Audio Player Name: mpg123 Version: 1.4.1 Release: 7%{?dist} License: LGPLv2 Source0: http://www.mpg123.de/download/%{name}-%{version}.tar.bz2 Group: Applications/Multimedia URL: http://www.mpg123.de/index.shtml BuildRequires: alsa-lib-devel libtool-ltdl-devel %{!?_without_arts:BuildRequires: arts-devel} %{!?_without_esd:BuildRequires: esound-devel} %{!?_without_jack:BuildRequires: jack-audio-connection-kit-devel} %{!?_without_nas:BuildRequires: nas-devel} %{!?_without_oss:BuildRequires: alsa-oss-devel} %{!?_without_portaudio:BuildRequires: portaudio-devel} %{!?_without_pulse:BuildRequires: pulseaudio-libs-devel} %{!?_without_sdl:BuildRequires: SDL-devel} Requires: alsa-lib BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: mpg321 Obsoletes: mpg321 < %{version} %description mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer3 (MPEG 2.0 with Layer1/2 not heavily tested). Among others, it is working with Linux, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x and SGI Irix. It is a free software licensed under LGPL (the officially released sources, but some files in subversion repository may differ). This package uses %{audio} as the default audio interface. Available rpmbuild rebuild options : --without arts esd jack nas oss portaudio pulse sdl %package devel Summary: Development files for mpg123 Group: Development/Libraries Requires: %{name} = %{version} %description devel This package contains development files for mpg123. %prep %setup -q -n %{name}-%{version} # Avoid standard rpaths on lib64 archs sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure %build ./configure --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --with-default-audio=%{audio} make %{_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install sed -i 's/\r//' $RPM_BUILD_DIR/%{name}-%{version}/doc/README.WIN32 %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc ChangeLog COPYING NEWS README INSTALL %{_bindir}/%{name} %{_libdir}/libmpg123.so.* %{_libdir}/libmpg123.la %{_libdir}/%{name}/output_*.so %{_libdir}/%{name}/output_*.la %{_mandir}/man1/%{name}.1.gz %files devel %defattr(-, root, root,-) %doc doc/* %{_includedir}/%{name}.h %{_libdir}/pkgconfig/libmpg123.pc %{_libdir}/libmpg123.so %changelog * Tue Apr 08 2008 Paulo Roma 1.4.1-7 - Updated to 1.4.1 * Tue Mar 11 2008 Paulo Roma 1.3.1-7 - Updated to 1.3.1 - Bugfix release. Just revives snd_pcm_sw_params_set_xfer_align(pcm, sw, 1) for alsa-lib < 1.0.16 * Sun Mar 02 2008 Paulo Roma 1.3.0-6 - Updated to 1.3.0 * Tue Feb 19 2008 Paulo Roma 1.2.1-6 - Updated to 1.2.1 * Wed Feb 06 2008 Paulo Roma 1.2.0-6 - Updated to 1.2.0 - Removed rpaths from binaries. * Wed Jan 30 2008 Paulo Roma 1.1.0-5 - Updated to 1.1.0 - Added arts plugin. * Fri Jan 11 2008 Paulo Roma 1.0.1-4 - Updated to 1.0.1 - Created devel package. - Built with the following modules: alsa esd jack nas oss portaudio pulse sdl * Sat Nov 24 2007 Paulo Roma 0.68-4 - Updated to 0.68. - Fixed bug #1807964 - Low sample rate mp3 files are distorted. - Added pulseaudio and esd as a possibility for rebuilding. * Fri Aug 24 2007 Paulo Roma 0.67-4 - Updated to 0.67. * Fri Jun 08 2007 Paulo Roma 0.66-4 - Should be ./configure * Mon Jun 04 2007 Paulo Roma 0.66-3 - Updated to 0.66. - Fixed obsolete-not-provided (mpg321). * Wed Feb 14 2007 Paulo Roma 0.65-3 - Updated to 0.65. * Fri Jan 12 2007 Paulo Roma 0.62-3 - Updated to 0.62. * Wed Nov 15 2006 Paulo Roma 0.61-2 - Updated to 0.61. * Sun Sep 17 2006 Paulo Roma 0.60-1 - Initial release for Fedora 5.