0c3f2be
%define real_version v18_1
cvsextras 18aa14f
0c3f2be
Summary: Free, cross platform, open-source, audio I/O library
cvsextras 18aa14f
Name: portaudio
cvsextras 18aa14f
Version: 18.1
ca078b3
Release: 4
ca078b3
cvsextras 18aa14f
License: BSD-like
cvsextras 18aa14f
Group: System Environment/Libraries
cvsextras 18aa14f
URL: http://www.portaudio.com/
0c3f2be
Source: http://www.portaudio.com/archives/portaudio_%{real_version}.zip
cvsextras 18aa14f
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
0c3f2be
Provides: %{name}-devel = %{version}-%{release}
cvsextras 18aa14f
cvsextras 18aa14f
%description
cvsextras 18aa14f
PortAudio is a portable audio I/O library designed for cross-platform
cvsextras 18aa14f
support of audio. It uses a callback mechanism to request audio processing.
cvsextras 18aa14f
Audio can be generated in various formats, including 32 bit floating point,
cvsextras 18aa14f
and will be converted to the native format internally.
cvsextras 18aa14f
0c3f2be
cvsextras 18aa14f
%prep
f4f582b
%setup -n %{name}_%{real_version}
0c3f2be
%{__perl} -pi.orig -e 's|^(LIBINST) = /usr/local/lib|$1 = %{_libdir}|' \
0c3f2be
    Makefile.linux
cvsextras 18aa14f
cvsextras 18aa14f
cvsextras 18aa14f
%build
cvsextras 18aa14f
%{__make} %{?_smp_mflags} -f Makefile.linux sharedlib \
0c3f2be
    CFLAGS="%{optflags} -fPIC"
0c3f2be
cvsextras 18aa14f
cvsextras 18aa14f
%install
cvsextras 18aa14f
%{__rm} -rf %{buildroot}
0c3f2be
%{__install} -D -m0755 pa_unix_oss/libportaudio.so \
0c3f2be
    %{buildroot}%{_libdir}/libportaudio.so
0c3f2be
%{__install} -D -m0644 pa_common/portaudio.h \
0c3f2be
    %{buildroot}%{_includedir}/portaudio.h
0c3f2be
cvsextras 18aa14f
cvsextras 18aa14f
%clean
cvsextras 18aa14f
%{__rm} -rf %{buildroot}
cvsextras 18aa14f
0c3f2be
cvsextras 18aa14f
%files
0c3f2be
%defattr(-, root, root, 0755)
cvsextras 18aa14f
%doc LICENSE.txt README.txt docs/
cvsextras 18aa14f
%{_includedir}/*.h
0c3f2be
%{_libdir}/*.so
0c3f2be
cvsextras 18aa14f
cvsextras 18aa14f
%changelog
ca078b3
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
ca078b3
- rebuilt
ca078b3
0c3f2be
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 18.1-3
0c3f2be
- Bump release to provide Extras upgrade path.
0c3f2be
0c3f2be
* Fri Nov  5 2004 Matthias Saou <http://freshrpms.net/> 18.1-2
0c3f2be
- Add -devel provides.
0c3f2be
- Fix .so 644 mode (overidden in defattr).
0c3f2be
cvsextras 18aa14f
* Thu Jun 10 2004 Dag Wieers <dag@wieers.com> - 18.1-1
cvsextras 18aa14f
- Added -fPIC for x86_64.
cvsextras 18aa14f
cvsextras 18aa14f
* Sat Sep 13 2003 Dag Wieers <dag@wieers.com> - 18.1-0
cvsextras 18aa14f
- Initial package. (using DAR)
cvsextras 18aa14f