# norootforbuild # Packmangroup: Libraries # Packmanpackagename: portaudio18 # Packman: Oliver Bengs Name: portaudio18 Summary: Portable Real-Time Audio Library Version: 18.1 Release: 0.pm.1 License: BSD Group: System/Libraries Source: portaudio_v18_1.zip URL: http://www.portaudio.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Packager: %packager Vendor: %vendor Distribution: %distribution %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. This package renames portaudio.so* to portaudio18.so* So both versions, the actual portaudio-v19 and v18 can coexist. 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. This package renames portaudio.a to portaudio18.a. So both versions, the actual portaudio-v19 and v18 can coexist. The include portaudio.h was renamed to portaudio18.h. %prep %setup -q -n portaudio_v18_1 %suse_update_libdir Makefile.in autoreconf --force --install %{?suse_update_config:%{suse_update_config -f}} %build chmod +x configure CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" \ %configure %__make \ PALIB=lib%{name}.a \ PADLL=lib%{name}.so \ PADLLV=lib%{name}.so.0.0.18 %install [ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot} # make Makefile happy ;) mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} %makeinstall \ PREFIX=%{buildroot}%{_prefix} \ PALIB=lib%{name}.a \ PADLL=lib%{name}.so \ PADLLV=lib%{name}.so.0.0.18 # change name of includefile mv %{buildroot}%{_includedir}/portaudio.h %{buildroot}%{_includedir}/%{name}.h # tests and samples mkdir -p %{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.0.0.18 %files devel %defattr(-,root,root) %doc index.html docs %{_libdir}/lib*.a %{_includedir}/*.h %{_bindir}/patest_* %{_libdir}/lib*.so %changelog -n portaudio * Wed Sep 13 2006 - Oliver Bengs - rebuild for packman * Tue May 23 2006 - r.neike@gmx.de 18.1-0.jacklab.1 - build for SuSE-10.1 * Fri Jan 27 2006 - r.neike@gmx.de 18.1-0.jacklab.1 - build for JackLab * Sun Jan 22 2005 - oc2pus@arcor.de 18.1-0.oc2pus.1 - initial version for v18_1