%define lversion 3.1.11 Summary: A MOD music file player Name: mikmod322 Version: 3.2.2 Release: 6%{?dist} License: GPLv2 and LGPLv2+ Group: Applications/Multimedia Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel texinfo esound-devel URL: http://mikmod.raphnet.net/ Source0: http://mikmod.raphnet.net/files/mikmod-%{version}-beta1.tar.gz Source1: http://mikmod.raphnet.net/files/libmikmod-%{lversion}.tar.gz Patch0: http://mikmod.raphnet.net/files/libmikmod-3.1.11-a.diff Patch1: libmikmod-esd.patch Patch2: libmikmod-64bit.patch Patch3: libmikmod-strip-lib.patch Patch4: mikmod-3.1.6-multilib.patch Patch5: libmikmod-info.patch %description MikMod is one of the best and most well known MOD music file players for UNIX-like systems. This particular distribution is intended to compile fairly painlessly in a Linux environment. MikMod uses the OSS /dev/dsp driver including all recent kernels for output, and will also write .wav files. Supported file formats include MOD, STM, S3M, MTM, XM, ULT, and IT. The player uses ncurses for console output and supports transparent loading from gzip/pkzip/zoo archives and the loading/saving of playlists. Install the mikmod package if you need a MOD music file player. %package devel Group: Development/Libraries Summary: Header files and documentation for compiling mikmod applications. Requires: %{name} = %{version}-%{release} PreReq: /sbin/install-info %description devel This package includes the header files you will need to compile applications for mikmod. %prep %setup -q -a 1 -n mikmod-%{version}-beta1 %patch0 -p0 %patch1 -p1 -b .esd %patch2 -p1 -b .64bit %patch3 -p1 -b .lib-strip %patch4 -p1 -b .multi %patch5 -p1 -b .info %build pushd libmikmod-%{lversion} %configure make popd # Trick it into compiling while libmikmod is not installed... export LD_LIBRARY_PATH=`pwd`/libmikmod-%{lversion}/libmikmod/.libs:$LD_LIBRARY_PATH cp -a libmikmod-%{lversion}/libmikmod-config . perl -pi -e "s,-lmikmod,-L`pwd`/libmikmod-%{lversion}/libmikmod/.libs -lmikmod,g" libmikmod-config export LIBMIKMOD_CONFIG=`pwd`/libmikmod-config %configure --disable-libmikmodtest --with-libmikmod-prefix=`pwd`/libmikmod-%{lversion} make %install rm -rf $RPM_BUILD_ROOT pushd libmikmod-%{lversion} make install DESTDIR=$RPM_BUILD_ROOT popd make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_infodir}/dir find $RPM_BUILD_ROOT | grep "\\.la$" | xargs rm -f rm -f $RPM_BUILD_ROOT%{_bindir}/mikmod %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/mikmod.info.gz %{_infodir}/dir || : %postun -p /sbin/ldconfig %postun devel if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/mikmod.info.gz %{_infodir}/dir || : fi %files %defattr(-, root, root) %doc AUTHORS COPYING NEWS README %doc libmikmod-%{lversion}/TODO %{_mandir}/man1/mikmod* %{_libdir}/*.so.* %files devel %defattr(-, root, root) %{_bindir}/*-config %{_libdir}/*.a %{_libdir}/*.so %{_datadir}/aclocal/* %{_datadir}/mikmod/mikmodrc %{_includedir}/* %{_infodir}/mikmod* %{_mandir}/man1/libmikmod-config* %changelog * Mon Feb 18 2008 Hans de Goede 3.2.2-6 - Fix MikMod_InfoLoader() and MikMod_InfoDriver() functions, fixing mikmod -n output * Mon Feb 18 2008 Hans de Goede 3.2.2-5 - Add BuildRequires esound-devel, so that the esd output driver gets build - Replace completely braindead (hint to author, drink coffee first, then code) esd non blocking patch with one that actually works. This fixes using mikmod with pulseaudio (bz 247865) - Note: this makes the 2 supported output devices oss and esd (and pulseaudio's esd emulation) alsa is not supported, this requires a rewrite of the mikmod alsa code which was written for alsa-0.5 and never updated for the new alsa 0.9/1.0 api - Do not do library make install in %%build, move it to %%install, this fixes building with the new rpm-check-buildroot build-check * Thu Aug 23 2007 Jindrich Novy 3.2.2-3 - update License - rebuild for BuildID * Sat Apr 21 2007 Jindrich Novy 3.2.2-2 - downgrade libmikmod to avoid dependency problems before F7 release - minor spec fixes * Tue Apr 17 2007 Jindrich Novy 3.2.2-1 - update to mikmod-3.2.2-beta1 - drop useless libtool, texinfo BuildRequires - don't use undefined macros, spec fixes - fix install-info scriptlet usage (#223711), thanks to Ville Skytta * Thu Nov 9 2006 Martin Stransky - 3.1.6-39 - removed obsoletes on tracker (#214112) * Wed Jul 12 2006 Jesse Keating - 3.1.6-38.1 - rebuild * Wed Jun 7 2006 Jeremy Katz - 3.1.6-38 - put .so symlink in -devel subpackage * Wed May 31 2006 Martin Stransky 3.1.6-37 - fixed multilib issue (#192732), thx. to Radek Biba * Fri Feb 10 2006 Jesse Keating - 3.1.6-36.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 3.1.6-36.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Nov 9 2005 Martin Stransky 3.1.6-36 - remove .la file (#172620) * Mon Jun 6 2005 Martin Stransky 3.1.6-35 - fixed #159290,#159291 - CAN-2003-0427 - fixed playing mod files from tar archive * Wed Mar 2 2005 Bill Nottingham 3.1.6-34 - new compiler. old code. * Tue Dec 21 2004 Martin Stransky 3.1.6-33 - strip library (#143258) * Mon Dec 13 2004 Bill Nottingham 3.1.6-31 - move mikmod binary back to main package (#142668) * Fri Oct 8 2004 Bill Nottingham 3.1.6-30 - add texinfo buildreqs (#135088) * Wed Oct 6 2004 Bill Nottingham 3.1.6-29 - install-info scripts go with -devel (#134882) * Wed Sep 22 2004 Than Ngo 3.1.6-28 - increase release number * Wed Sep 22 2004 Than Ngo 3.1.6-27 - new devel sub package, multiarch problem - add /sbin/ldconfig in Prereq - cleanup specfile * Wed Aug 4 2004 Miloslav Trmac - 3.1.6-26 - Update to libmikmod-3.1.11-a, fixes #116182 * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jul 23 2003 Bill Nottingham 3.1.6-23 - remove URL (#77375) * Mon Jul 14 2003 Bill Nottingham 3.1.6-22 - fix build with gcc-3.3 some more * Wed Jun 04 2003 Elliot Lee - rebuilt * Thu May 22 2003 Bill Nottingham 3.1.6-21 - fix build with gcc-3.3 * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 7 2003 Jeff Johnson 3.1.6-19 - don't include -debuginfo files in package. * Sat Nov 02 2002 Florian La Roche - add further lib64 support, clean up spec file * Sat Oct 12 2002 Florian La Roche - add 64bit patch * Thu Jul 18 2002 Bill Nottingham - don't strip binaries - fix buffering with esd output (#57154, ) * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Fri Jul 20 2001 Bill Nottingham - add buildprereq for ncurses-devel (#49524) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Thu Dec 7 2000 Bill Nottingham - fix %%doc generation * Wed Jul 12 2000 Prospector - automatic rebuild * Sat Jun 10 2000 Bill Nottingham - FHS fixes, etc. * Mon Apr 3 2000 Bernhard Rosenkraenzer - rebuild with current ncurses - library 3.1.9 - fix build when libmikmod is not already installed * Thu Feb 3 2000 Bernhard Rosenkraenzer - gzip info page (Bug #9035) - Update URL and Source fields to present location * Wed Feb 02 2000 Cristian Gafton - fix description - get rid of useless defines * Tue Jan 11 2000 Bill Nottingham - update lib to 3.1.8 * Mon Aug 2 1999 Bill Nottingham - add more patches * Fri Jul 30 1999 Bill Nottingham - update to 3.1.6/3.1.7 * Mon Mar 22 1999 Cristian Gafton - fixed spec file description and group according to sepcspo * Mon Mar 22 1999 Michael Maher - changed spec file, updated package - added libmikmod to the package * Mon Feb 15 1999 Miodrag Vallat - Created for 3.1.5 * Tue Jan 24 1999 Michael Maher - changed group - fixed bug #145 * Fri Sep 04 1998 Michael Maher - added patch for alpha * Wed Sep 02 1998 Michael Maher - built package; obsoletes the ancient tracker program.