File mingw32-libsamplerate.spec of Package mingw32-libsamplerate

#
# spec file for package mingw32-libsamplerate (Version 0.1.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-libsamplerate
Version:        0.1.8
Release:        0
Summary:        A Sample Rate Converter Library

License:        GPL 2+
Url:            http://www.mega-nerd.com/SRC/
Group:          System/Libraries
Source:         http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
Patch0:         libsamplerate-0.1.7-mingw.patch
Patch1:         libsamplerate-0.1.8-canonical_host.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config

%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.


%package devel
License:        GPL 2+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.


%{_mingw32_debug_package}

%package tools
License:        GPL 2+
Summary:        Example Programs for libsamplerate
Group:          Productivity/Multimedia/Sound/Utilities

%description tools
This package includes the example programs for libsamplerate.


%prep
%setup -q -n libsamplerate-%{version}
%patch0
%patch1


%build
autoreconf --force --install -I M4
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	  --enable-shared --disable-static
make %{?_smp_mflags}


%install
make DESTDIR="$RPM_BUILD_ROOT" install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/libsamplerate-0.dll

%files devel
%defattr(-,root,root)
%{_mingw32_docdir}/libsamplerate0-dev/
%{_mingw32_libdir}/libsamplerate.dll.a
%{_mingw32_includedir}/samplerate.h
%{_mingw32_libdir}/pkgconfig/samplerate.pc

%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/*.exe


%changelog
openSUSE Build Service is sponsored by