%define name moc %define version 2.3.2 %define release 2.te %define mocroot %{_builddir}/%{name}-%{version} Summary: MOC is a console audio player for LINUX/UNIX Name: %{name} Version: %{version} Release: %{release} Group: Applications/Multimedia License: GPL Vendor: Damian Pietras Packager: Troy Engel Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-player.patch URL: http://moc.daper.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libmad-devel, speex-devel, libid3tag-devel, libvorbis-devel, flac-devel, libsndfile-devel, curl-devel, libsamplerate-devel, libmpcdec-devel %description MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use. MOC plays smoothly, regardless of system or I/O load because it uses the output buffer in a separate thread. Internet stream (Icecast, Shoutcast) are supported. Key mapping can be fully customized. Supported file formats are: mp3, Ogg Vorbis, FLAC, Musepack, Speex, WAVE, AIFF, AU (and other less popular formats supported by libsndfile). The binary file is called mocp due to conflict with other program on many systems. %prep %setup -q %patch0 -p1 %build %configure %{__make} %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} make DESTDIR=%{buildroot} install %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} [ "%{mocroot}" != "/" ] && rm -rf %{mocroot} %files %defattr(-,root,root) %attr(0644,root,root) %doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO %attr(0644,root,root) %doc config.example keymap.example %attr(-,root,root) %{_bindir}/* %attr(-,root,root) %{_libdir}/* %attr(-,root,root) %{_datadir}/* %attr(-,root,root) %{_mandir}/man1/* %changelog * Sat Dec 10 2005 Troy Engel 2.3.2-2.te - add memory leak patch from forum (http://moc.daper.net/node/71) * Sat Dec 10 2005 Troy Engel 2.3.2-1.te - Initial RPM build