2007-01-16 00:23:08 +01:00
|
|
|
#
|
2011-11-22 11:27:15 +01:00
|
|
|
# spec file for package libsamplerate
|
2007-01-16 00:23:08 +01:00
|
|
|
#
|
2012-03-05 00:18:13 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:08 +01:00
|
|
|
#
|
2008-11-17 17:16:59 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-04-17 00:38:12 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:23:08 +01:00
|
|
|
#
|
|
|
|
|
2008-06-05 17:42:06 +02:00
|
|
|
|
2007-04-17 00:38:12 +02:00
|
|
|
Name: libsamplerate
|
2012-03-05 00:18:13 +01:00
|
|
|
Version: 0.1.8
|
|
|
|
Release: 0
|
2007-04-17 00:38:12 +02:00
|
|
|
Summary: A Sample Rate Converter Library
|
2011-12-06 18:25:34 +01:00
|
|
|
License: GPL-2.0+
|
2007-04-17 00:38:12 +02:00
|
|
|
Group: System/Libraries
|
2008-06-05 17:42:06 +02:00
|
|
|
Url: http://www.mega-nerd.com/SRC/
|
2012-03-05 00:18:13 +01:00
|
|
|
Source0: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2007-04-17 00:38:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
|
|
|
|
audio. One example of where such a thing would be useful is in
|
|
|
|
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. The
|
|
|
|
conversion ratio can also vary with time for speeding up and slowing
|
|
|
|
down effects.
|
|
|
|
|
2012-03-06 12:59:17 +01:00
|
|
|
%package -n libsamplerate0
|
|
|
|
Summary: A Sample Rate Converter Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsamplerate0
|
|
|
|
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
|
|
|
|
audio. One example of where such a thing would be useful is in
|
|
|
|
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. The
|
|
|
|
conversion ratio can also vary with time for speeding up and slowing
|
|
|
|
down effects.
|
|
|
|
|
2007-01-16 00:23:08 +01:00
|
|
|
%package devel
|
2008-11-17 17:16:59 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-04-17 00:38:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-03-05 00:18:13 +01:00
|
|
|
Requires: glibc-devel
|
2012-03-06 12:59:17 +01:00
|
|
|
Requires: libsamplerate0 = %{version}
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
2009-04-23 22:03:48 +02:00
|
|
|
%package progs
|
|
|
|
Summary: Example Programs for libsamplerate
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
|
|
|
|
|
|
|
%description progs
|
|
|
|
This package includes the example programs for libsamplerate.
|
|
|
|
|
2007-01-16 00:23:08 +01:00
|
|
|
%prep
|
2010-06-06 18:57:40 +02:00
|
|
|
%setup -q
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%build
|
2012-03-05 00:18:13 +01:00
|
|
|
%configure --disable-silent-rules --disable-static
|
|
|
|
make %{?_smp_mflags}
|
2011-08-06 18:40:29 +02:00
|
|
|
|
2010-12-08 19:49:44 +01:00
|
|
|
%check
|
|
|
|
pushd tests
|
|
|
|
make check
|
|
|
|
popd
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%install
|
2012-03-05 00:18:13 +01:00
|
|
|
# Since configure doesn't honor --docdir set htmldocdir here
|
|
|
|
make install DESTDIR=%{?buildroot} \
|
|
|
|
htmldocdir=%{_defaultdocdir}/libsamplerate-devel
|
2007-04-17 00:38:12 +02:00
|
|
|
# remove unneeded files
|
2012-03-05 00:18:13 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:23:08 +01:00
|
|
|
|
2012-03-06 12:59:17 +01:00
|
|
|
%post -n libsamplerate0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsamplerate0 -p /sbin/ldconfig
|
2007-01-16 00:23:08 +01:00
|
|
|
|
2012-03-06 12:59:17 +01:00
|
|
|
%files -n libsamplerate0
|
2007-01-16 00:23:08 +01:00
|
|
|
%defattr(-,root,root)
|
2012-03-06 12:59:17 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
%{_libdir}/libsamplerate.so.0*
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-03-06 12:59:17 +01:00
|
|
|
%doc ChangeLog
|
2012-03-05 00:18:13 +01:00
|
|
|
%{_defaultdocdir}/libsamplerate-devel
|
2012-03-06 12:59:17 +01:00
|
|
|
%{_libdir}/libsamplerate.so
|
|
|
|
%{_includedir}/samplerate.h
|
|
|
|
%{_libdir}/pkgconfig/samplerate.pc
|
2007-01-16 00:23:08 +01:00
|
|
|
|
2009-04-23 22:03:48 +02:00
|
|
|
%files progs
|
|
|
|
%defattr(-,root,root)
|
2012-03-06 12:59:17 +01:00
|
|
|
%{_bindir}/sndfile-resample
|
2009-04-23 22:03:48 +02:00
|
|
|
|
2007-04-17 00:38:12 +02:00
|
|
|
%changelog
|