File portaudio.spec of Package portaudio

#
# spec file for package portaudio (Version 19)
#
# 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/
#

# norootforbuild


Name:           portaudio
BuildRequires:  alsa-devel doxygen jack-devel
%define package_date 20071207
Summary:        Portable Real-Time Audio Library
Version:        19
Release:        262
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:       %{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
* Tue Jan 13 2009 crrodriguez@suse.de
- remove static libraries
* 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.
openSUSE Build Service is sponsored by