%define name libsamplerate %define version 0.0.15 %define release 2mdk %define major 0 %define libname %mklibname samplerate %major Summary: Audio Sample Rate Converter library Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 URL: http://www.mega-nerd.com/SRC/index.html License: GPL Group: Sound BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} %description Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. One example of where such a thing would be useful is converting audio from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT players. SRC is capable of arbitrary and time varying conversions ; from downsampling by a factor of 12 to upsampling by the same factor. Arbitrary in this case means that the ratio of input and output sample rates can be an irrational number. The conversion ratio can also vary with time for speeding up and slowing down effects. SRC provides a small set of converters to allow quality to be traded off against computation cost. The current best converter provides a signal-to-noise ratio of 97dB with -3dB passband extending from DC to 96% of the theoretical best bandwidth for a given pair of input and output sample rates. %package -n %libname Summary: Audio Sample Rate Converter shared library Group: System/Libraries %description -n %libname Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. One example of where such a thing would be useful is converting audio from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT players. SRC is capable of arbitrary and time varying conversions ; from downsampling by a factor of 12 to upsampling by the same factor. Arbitrary in this case means that the ratio of input and output sample rates can be an irrational number. The conversion ratio can also vary with time for speeding up and slowing down effects. SRC provides a small set of converters to allow quality to be traded off against computation cost. The current best converter provides a signal-to-noise ratio of 97dB with -3dB passband extending from DC to 96% of the theoretical best bandwidth for a given pair of input and output sample rates. This package contains the shared library required for running programs using %name. %package -n %libname-devel Summary: Audio Sample Rate Converter development files Group: Development/C Requires: %libname = %version-%release Provides: %{name}-devel = %version-%release Requires: pkgconfig %description -n %libname-devel Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. One example of where such a thing would be useful is converting audio from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT players. SRC is capable of arbitrary and time varying conversions ; from downsampling by a factor of 12 to upsampling by the same factor. Arbitrary in this case means that the ratio of input and output sample rates can be an irrational number. The conversion ratio can also vary with time for speeding up and slowing down effects. SRC provides a small set of converters to allow quality to be traded off against computation cost. The current best converter provides a signal-to-noise ratio of 97dB with -3dB passband extending from DC to 96% of the theoretical best bandwidth for a given pair of input and output sample rates. This package contains the C headers and other files needed to compile programs with %name. %package progs Summary: Audio Sample Rate Converter Group: Sound %description progs Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio. One example of where such a thing would be useful is converting audio from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT players. SRC is capable of arbitrary and time varying conversions ; from downsampling by a factor of 12 to upsampling by the same factor. Arbitrary in this case means that the ratio of input and output sample rates can be an irrational number. The conversion ratio can also vary with time for speeding up and slowing down effects. SRC provides a small set of converters to allow quality to be traded off against computation cost. The current best converter provides a signal-to-noise ratio of 97dB with -3dB passband extending from DC to 96% of the theoretical best bandwidth for a given pair of input and output sample rates. This package contains a command line utility based on %name. %prep %setup -q rm -f doc/NEWS %build %configure2_5x %make make check %install rm -rf $RPM_BUILD_ROOT %makeinstall_std transform="" %clean rm -rf $RPM_BUILD_ROOT %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files -n %libname %defattr(-,root,root) %_libdir/*.so.* %files -n %libname-devel %defattr(-,root,root) %doc doc/* %_libdir/*.so %_libdir/*a %_libdir/pkgconfig/samplerate.pc %_includedir/samplerate.h %files progs %defattr(-,root,root) %doc AUTHORS ChangeLog %_bindir/sndfile-resample %changelog * Thu Jul 10 2003 Götz Waschk <waschk@linux-mandrake.com> 0.0.15-2mdk - rebuild for new rpm * Sun May 4 2003 Götz Waschk <waschk@linux-mandrake.com> 0.0.15-1mdk - remove zero-length file NEWS - devel package needs pkgconfig - new version * Tue Mar 11 2003 Götz Waschk <waschk@linux-mandrake.com> 0.0.13-3mdk - mklibname macro * Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 0.0.13-2mdk - rebuild * Wed Dec 11 2002 Götz Waschk <waschk@linux-mandrake.com> 0.0.13-1mdk - initial package