2007-01-16 00:23:08 +01:00
|
|
|
#
|
2010-11-20 11:20:17 +01:00
|
|
|
# spec file for package libsamplerate (Version 0.1.7)
|
2007-01-16 00:23:08 +01:00
|
|
|
#
|
2010-11-20 11:20:17 +01:00
|
|
|
# Copyright (c) 2010 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
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-05 17:42:06 +02:00
|
|
|
|
2007-04-17 00:38:12 +02:00
|
|
|
Name: libsamplerate
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
Summary: A Sample Rate Converter Library
|
2010-06-06 18:57:40 +02:00
|
|
|
Version: 0.1.7
|
2010-11-20 11:20:17 +01:00
|
|
|
Release: 1
|
2009-12-30 00:27:01 +01:00
|
|
|
License: GPLv2+
|
2007-04-17 00:38:12 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2009-12-30 00:27:01 +01:00
|
|
|
Source2: baselibs.conf
|
2007-04-17 00:38:12 +02:00
|
|
|
Patch: %{name}-ac.diff
|
2008-06-05 17:42:06 +02:00
|
|
|
Url: http://www.mega-nerd.com/SRC/
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
|
|
|
|
|
|
%package devel
|
2009-12-30 00:27:01 +01:00
|
|
|
License: GPLv2+
|
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++
|
2010-06-06 18:57:40 +02:00
|
|
|
Requires: libsamplerate = %{version} glibc-devel
|
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
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
|
|
|
|
|
|
%package progs
|
2009-12-30 00:27:01 +01:00
|
|
|
License: GPLv2+
|
2009-04-23 22:03:48 +02:00
|
|
|
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
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
|
|
|
|
|
|
%prep
|
2010-06-06 18:57:40 +02:00
|
|
|
%setup -q
|
2007-04-17 00:38:12 +02:00
|
|
|
%patch
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%build
|
2007-04-17 00:38:12 +02:00
|
|
|
autoreconf --force --install
|
2010-06-06 18:57:40 +02:00
|
|
|
%configure --with-pic --disable-static
|
2008-06-22 03:32:22 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2007-04-17 00:38:12 +02:00
|
|
|
# remove unneeded files
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2008-11-17 17:16:59 +01:00
|
|
|
# remove document Makefiles
|
|
|
|
rm -f doc/Makefile*
|
2007-01-16 00:23:08 +01:00
|
|
|
|
2008-06-22 03:32:22 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:23:08 +01:00
|
|
|
|
2008-06-22 03:32:22 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%clean
|
2007-04-17 00:38:12 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-16 00:23:08 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-04-17 00:38:12 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL doc
|
2007-01-16 00:23:08 +01:00
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2009-04-23 22:03:48 +02:00
|
|
|
%files progs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2007-04-17 00:38:12 +02:00
|
|
|
%changelog
|