Changes of Revision 5
[-] | Added | portaudio19.spec |
x 1
2 +# norootforbuild 3 + 4 +%define _prefix /usr 5 + 6 +Name: portaudio18 7 +Summary: Portable Real-Time Audio Library 8 +Version: 19.1 9 +Release: 1 10 +License: BSD 11 +Group: System/Libraries 12 +Source: pa_stable_v19_061121.tar.gz 13 +URL: http://www.portaudio.com/ 14 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 15 +BuildRequires: dos2unix 16 + 17 +%description 18 +PortAudio is a portable audio I/O library designed for cross-platform support 19 +of audio. It uses a callback mechanism to request audio processing. Audio can 20 +be generated in various formats, including 32 bit floating point, and will be 21 +converted to the native format internally. 22 + 23 +Authors: 24 +Phil Burk 25 +Ross Bencina 26 + 27 +%package devel 28 +Summary: Development package for the portaudio library 29 +Group: Development/Languages/C and C++ 30 +Requires: %{name} = %{version} 31 + 32 +%description devel 33 +This package contains the files needed to compile programs that use the 34 +portaudio library. 35 + 36 +The include portaudio.h was renamed to portaudio19.h. 37 + 38 +%debug_package 39 + 40 +%prep 41 +%setup -q -n pa_stable_v19_061121 42 + 43 +autoreconf --force --install 44 +%{?suse_update_config:%{suse_update_config -f}} 45 + 46 +%suse_update_libdir Makefile.in 47 + 48 +dos2unix README.txt LICENSE.txt pa_unix_oss/*.txt docs/*.html docs/*.txt index.html 49 +%__chmod 644 README.txt LICENSE.txt pa_unix_oss/*.txt docs/*.html docs/*.txt index.html 50 + 51 +%build 52 +chmod +x configure 53 +CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" \ 54 +./configure \ 55 + --prefix=%{_prefix} \ 56 + --libdir=%{_libdir} \ 57 + --mandir=%{_mandir} 58 + 59 +%__make \ 60 + PALIB=lib%{name}.a \ 61 + PADLL=lib%{name}.so \ 62 + PADLLV=lib%{name}.so.0.0.19 63 + 64 +%install 65 +# make Makefile happy ;) 66 +%__install -dm 755 %{buildroot}%{_libdir} 67 +%__install -dm 755 %{buildroot}%{_includedir} 68 + 69 +%__make install \ 70 + PREFIX=%{buildroot}%{_prefix} \ 71 + PALIB=lib%{name}.a \ 72 + PADLL=lib%{name}.so \ 73 + PADLLV=lib%{name}.so.0.0.19 74 + 75 +# change name of includefile 76 +%__mv %{buildroot}%{_includedir}/portaudio.h %{buildroot}%{_includedir}/%{name}.h 77 + 78 +# tests and samples 79 +%__install -dm 755 %{buildroot}%{_bindir} 80 +%__install -s -m 755 bin/patest_* %{buildroot}%{_bindir} 81 + 82 +%post -p /sbin/ldconfig 83 + 84 +%postun -p /sbin/ldconfig 85 + 86 +%clean 87 +[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot} 88 + 89 +%files 90 +%defattr(-,root,root) 91 +%doc README.txt LICENSE.txt pa_unix_oss/low_latency_tip.txt 92 +%{_libdir}/lib*.so.* 93 + 94 +%files devel 95 +%defattr(-,root,root) 96 +%doc index.html docs 97 +%{_libdir}/lib*.a 98 +%{_libdir}/lib*.so 99 +%{_includedir}/*.h 100 +%{_bindir}/patest_* 101 + 102 +%changelog 103 +* Sat Nov 24 2007 Carsten Schoene <cs@linux-administrator.com> - 19.1-0 104 +- build v19 105 |
||
Added | pa_stable_v19_061121.tar.gz ^ |