File portaudio.spec of Package portaudio
#
# spec file for package portaudio
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: portaudio
BuildRequires: alsa-devel doxygen libjack-devel
%define package_date 20071207
Summary: Portable Real-Time Audio Library
Version: 19
Release: 271
License: BSD3c
Group: System/Libraries
Source: pa_stable_v19_%{package_date}.tar.bz2
Source1: baselibs.conf
Patch: portaudio.diff
Url: http://www.portaudio.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PortAudio is a portable audio I/O library designed for cross-platform
support of audio. It uses a callback mechanism to request audio
processing. Audio can be generated in various formats, including 32 bit
floating point, and will be converted to the native format internally.
Authors:
--------
Phil Burk
Ross Bencina
%package devel
License: BSD3c
Summary: Development package for the portaudio library
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
%description devel
This package contains the files needed to compile programs that use the
portaudio library.
%prep
%setup -q -n portaudio
%patch
%build
autoreconf -fiv
%configure --disable-static --with-pic\
--with-alsa=yes \
--with-jack=yes \
--with-oss=yes
%{__make} %{?jobs:-j%jobs}
doxygen
%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%doc V19-devel-readme.txt
%doc doc/html
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so
%changelog