File portaudio.spec of Package portaudio
#
# spec file for package portaudio (Version 19)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: portaudio
BuildRequires: alsa-devel doxygen jack-devel
%define package_date 20071207
Summary: Portable Real-Time Audio Library
Version: 19
Release: 234
License: BSD 3-Clause
Group: System/Libraries
Source: pa_stable_v19_%{package_date}.tar.bz2
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: BSD 3-Clause
Summary: Development package for the portaudio library
Group: Development/Languages/C and C++
Requires: portaudio glibc-devel
%description devel
This package contains the files needed to compile programs that use the
portaudio library.
%prep
%setup -n portaudio
%patch
%build
autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
# pa_jack is buggy yet...
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
--with-alsa=yes \
--with-jack=yes \
--with-oss=yes
make
doxygen
%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && 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
%{_libdir}/lib*.a
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%changelog
* Wed Jun 18 2008 schwab@suse.de
- Remove useless SHARED_FLAGS.
* Tue Jan 15 2008 tiwai@suse.de
- updated to the latet stable version (20071207)
* added debugging message to JACK back-end
* fixed issue with reopening full duplex streams
* ALSA: Pick device "default" for default input device as well
* added PA JACK extensions for getting and setting JACK client
name
* do not automatically start jackd server
* Fri Apr 20 2007 tiwai@suse.de
- removed unnecessary requires
- use bz2
- move documents to devel packages
* Tue Feb 27 2007 anschneider@suse.de
- updated to the latest stable:
* fixed alsa support
* fixed dmix support
* fixed Pa_OpenDefaultStream crash
* fixed memory bug in pa_jack.c
* fixed ph_audio_play_cbk to be called too often
* Thu Sep 21 2006 tiwai@suse.de
- updated to the latest snapshot:
* versioned so files
* pkgconfig support
* reorganized src structures
* many bugfixes
- generate devel documents using doxygen
* Fri Mar 24 2006 tiwai@suse.de
- fixed bogus assert (#159993)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 12 2005 tiwai@suse.de
- removed glib* from neededforbuild.
* Thu Jun 16 2005 meissner@suse.de
- use RPM_OPT_FLAGS again.
* Mon Jan 24 2005 tiwai@suse.de
- updated to snapshot-20050124.
* Tue Nov 09 2004 tiwai@suse.de
- updated to snapshot-20041109.
- fixed the lib path for jack (bug #47590).
* Fri Mar 05 2004 tiwai@suse.de
- updated to snapshot-20040305.
* Wed Jan 14 2004 tiwai@suse.de
- initial version: v19 snapshot-20040114.