Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
portaudio19
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 5
[-]
[+]
Added
portaudio19.spec
@@ -0,0 +1,103 @@ +# norootforbuild + +%define _prefix /usr + +Name: portaudio18 +Summary: Portable Real-Time Audio Library +Version: 19.1 +Release: 1 +License: BSD +Group: System/Libraries +Source: pa_stable_v19_061121.tar.gz +URL: http://www.portaudio.com/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: dos2unix + +%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 +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. + +The include portaudio.h was renamed to portaudio19.h. + +%debug_package + +%prep +%setup -q -n pa_stable_v19_061121 + +autoreconf --force --install +%{?suse_update_config:%{suse_update_config -f}} + +%suse_update_libdir Makefile.in + +dos2unix README.txt LICENSE.txt pa_unix_oss/*.txt docs/*.html docs/*.txt index.html +%__chmod 644 README.txt LICENSE.txt pa_unix_oss/*.txt docs/*.html docs/*.txt index.html + +%build +chmod +x configure +CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" \ +./configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} + +%__make \ + PALIB=lib%{name}.a \ + PADLL=lib%{name}.so \ + PADLLV=lib%{name}.so.0.0.19 + +%install +# make Makefile happy ;) +%__install -dm 755 %{buildroot}%{_libdir} +%__install -dm 755 %{buildroot}%{_includedir} + +%__make install \ + PREFIX=%{buildroot}%{_prefix} \ + PALIB=lib%{name}.a \ + PADLL=lib%{name}.so \ + PADLLV=lib%{name}.so.0.0.19 + +# change name of includefile +%__mv %{buildroot}%{_includedir}/portaudio.h %{buildroot}%{_includedir}/%{name}.h + +# tests and samples +%__install -dm 755 %{buildroot}%{_bindir} +%__install -s -m 755 bin/patest_* %{buildroot}%{_bindir} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc README.txt LICENSE.txt pa_unix_oss/low_latency_tip.txt +%{_libdir}/lib*.so.* + +%files devel +%defattr(-,root,root) +%doc index.html docs +%{_libdir}/lib*.a +%{_libdir}/lib*.so +%{_includedir}/*.h +%{_bindir}/patest_* + +%changelog +* Sat Nov 24 2007 Carsten Schoene <cs@linux-administrator.com> - 19.1-0 +- build v19
Added
pa_stable_v19_061121.tar.gz
^