%define major 1 %define apiver 1.0 %define libname %mklibname %name %{apiver} %{major} %define develname %mklibname %{name} -d %define staticname %mklibname %{name} -d -s %define oldlibname %mklibname %name 1.0 Summary: An abstract SDL sound-file decoder Name: SDL_sound Version: 1.0.3 Release: %mkrel 12 Group: System/Libraries License: LGPLv2+ URL: http://www.icculus.org/SDL_sound Source: http://www.icculus.org/SDL_sound/downloads/%{name}-%{version}.tar.gz BuildRequires: SDL-devel BuildRequires: libflac-devel BuildRequires: libmikmod-devel BuildRequires: libmodplug-devel BuildRequires: libvorbis-devel BuildRequires: libspeex-devel BuildRequires: physfs-devel BuildRequires: doxygen %description SDL_sound is a library that handles the decoding of several popular sound file formats, such as .WAV and .MP3. It is meant to make the programmer's sound playback tasks simpler. The programmer gives SDL_sound a file-name, or feeds it data directly from one of many sources, and then reads the decoded waveform data back at her leisure. If resource constraints are a concern, SDL_sound can process sound data in programmer-specified blocks. Alternately, SDL_sound can decode a whole sound file and hand back a single pointer to the whole waveform. SDL_sound can also handle sample rate, audio format, and channel conversion on-the-fly and behind-the-scenes, if the programmer desires. %package -n %{libname} Summary: SDL graphics drawing primitives and other support functions Group: System/Libraries Obsoletes: %oldlibname < 1.0.1-15 %description -n %{libname} SDL_sound is a library that handles the decoding of several popular sound file formats, such as .WAV and .MP3. It is meant to make the programmer's sound playback tasks simpler. The programmer gives SDL_sound a file-name, or feeds it data directly from one of many sources, and then reads the decoded waveform data back at her leisure. If resource constraints are a concern, SDL_sound can process sound data in programmer-specified blocks. Alternately, SDL_sound can decode a whole sound file and hand back a single pointer to the whole waveform. SDL_sound can also handle sample rate, audio format, and channel conversion on-the-fly and behind-the-scenes, if the programmer desires. %package -n %{develname} Summary: Header files and more to develop SDL_sound applications Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %oldlibname-devel < 1.0.1-15 %description -n %{develname} Header files and more to develop SDL_sound applications. %package -n %{staticname} Summary: Static SDL_sound libraries Group: Development/C Requires: %{develname} = %{version}-%{release} Obsoletes: %oldlibname-static-devel < 1.0.1-15 %description -n %{staticname} Static SDL_sound libraries. %prep %setup -q %build export CPPFLAGS="-I%{_includedir}/libmodplug" %configure2_5x --enable-static %make doxygen %install %makeinstall_std rm -f %buildroot%_libdir/*.la %files %doc README %{_bindir}/* %files -n %{libname} %{_libdir}/lib*%{apiver}.so.%{major}* %files -n %{develname} %doc CHANGELOG TODO CREDITS docs/html %{_libdir}/lib*.so %{_includedir}/SDL/* %files -n %{staticname} %{_libdir}/lib*.a %changelog * Fri Jan 11 2013 umeabot <umeabot> 1.0.3-12.mga3 + Revision: 345117 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Nov 20 2012 barjac <barjac> 1.0.3-11.mga3 + Revision: 319907 - Changed group to new policy - minor spec clean * Mon Sep 12 2011 fwang <fwang> 1.0.3-10.mga2 + Revision: 142658 - drop .la files * Thu Jan 27 2011 stewb <stewb> 1.0.3-9.mga1 + Revision: 42284 - forgot to clean mdkversion - imported package SDL_sound