Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > e6f7f69ab571c390adb91be085b3989d > files > 2

libsamplerate-0.1.2-1mdk.src.rpm

%define name libsamplerate
%define version 0.1.2
%define release 1mdk
%define major 0
%define libname %mklibname samplerate %major

Summary: Audio Sample Rate Converter library
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.mega-nerd.com/SRC/%{name}-%{version}.tar.bz2
URL: http://www.mega-nerd.com/SRC/index.html
License: GPL
Group: Sound
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: libsndfile-devel
BuildRequires: fftw-devel >= 3

%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 

%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

%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
* Tue Nov  9 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.1.2-1mdk
- New release 0.1.2

* Mon Jul 19 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.1-1mdk
- reenable unit-at-a-time
- New release 0.1.1

* Mon Jun 14 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.0-2mdk
- fix buildrequires
- lower optflags
- reenable libtoolize

* Thu May  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.0-1mdk
- don't libtoolize
- drop prefix
- add source URL
- new version

* 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