]>
Commit | Line | Data |
---|---|---|
c8f595a2 | 1 | # |
00d295bc | 2 | # TODO: portaudio_asihpi_406.patch is broken |
3 | # | |
c8f595a2 | 4 | # Conditional build: |
14b1b15d SS |
5 | %bcond_without static_libs # don't build static libraries |
6 | %bcond_without apidocs # documentation generated with doxygen | |
03ea5b45 | 7 | %bcond_with asihpi # ASI HPI support |
c8f595a2 | 8 | # |
88092056 | 9 | Summary: Free, cross platform, open-source, audio I/O library |
8231bf35 | 10 | Summary(pl.UTF-8): Darmowa, międzyplatformowa i otwarta biblioteka I/O audio |
0566ea20 | 11 | Name: portaudio |
d4c9e03c | 12 | Version: 19 |
7ab9982e | 13 | %define snap 20110326 |
7eb3d4f1 | 14 | Release: 1.%{snap}.1 |
dbfa21f0 | 15 | License: MIT-like (see LICENSE.txt) |
0566ea20 | 16 | Group: Libraries |
7ab9982e MB |
17 | Source0: http://www.portaudio.com/archives/pa_stable_v%{version}_%{snap}.tgz |
18 | # Source0-md5: 8f266ce03638419ef46e4efcb0fabde6 | |
c8f595a2 | 19 | Patch0: %{name}-ac.patch |
dbfa21f0 | 20 | Patch1: http://audioscience.com/internet/download/drivers/released/v4/06/portaudio_asihpi_406.patch |
b0d7d18d | 21 | URL: http://www.portaudio.com/ |
b6a293b9 JB |
22 | BuildRequires: alsa-lib-devel >= 0.9 |
23 | BuildRequires: autoconf >= 2.13 | |
d4c9e03c | 24 | BuildRequires: automake |
14b1b15d | 25 | %{?with_apidocs:BuildRequires: doxygen} |
03ea5b45 | 26 | %{?with_asihpi:BuildRequires: hpklinux-devel >= 4.06} |
b6a293b9 | 27 | BuildRequires: jack-audio-connection-kit-devel |
dbfa21f0 | 28 | BuildRequires: libstdc++-devel |
b6a293b9 | 29 | BuildRequires: pkgconfig |
03ea5b45 | 30 | %{?with_asihpi:Requires: hpklinux-libs >= 4.06} |
0566ea20 AG |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
88092056 AG |
34 | PortAudio is a free, cross platform, open-source, audio I/O library. |
35 | It lets you write simple audio programs in 'C' that will compile and | |
36 | run on many platforms including Windows, Macintosh (8,9,X), Unix | |
37 | (OSS), SGI, and BeOS. | |
0566ea20 | 38 | |
20e59c95 JR |
39 | %description -l pl.UTF-8 |
40 | PortAudio to darmowa, międzyplatformowa i otwarta biblioteka I/O | |
41 | audio. Pozwala na pisanie prostych programów w "C", które będą się | |
42 | kompilować i uruchamiać na wielu platformach, w tym Windows, Macintosh | |
88092056 | 43 | (8,9,X), Unix (OSS), SGI, i BeOS. |
0566ea20 AG |
44 | |
45 | %package devel | |
46 | Summary: Header files for PortAudio library | |
8231bf35 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PortAudio |
0566ea20 AG |
48 | Group: Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
e5ed4a49 | 50 | Requires: alsa-lib-devel >= 0.9 |
03ea5b45 | 51 | %{?with_asihpi:Requires: hpklinux-devel >= 4.06} |
e5ed4a49 | 52 | Requires: jack-audio-connection-kit-devel |
0566ea20 AG |
53 | |
54 | %description devel | |
55 | Header files for PortAudio library. | |
56 | ||
20e59c95 JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe biblioteki PortAudio. | |
0566ea20 | 59 | |
d4c9e03c | 60 | %package static |
61 | Summary: Static PortAudio library | |
8231bf35 | 62 | Summary(pl.UTF-8): Statyczna biblioteka PortAudio |
d4c9e03c | 63 | Group: Development/Libraries |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static PortAudio library. | |
68 | ||
20e59c95 | 69 | %description static -l pl.UTF-8 |
d4c9e03c | 70 | Statyczna biblioteka PortAudio. |
71 | ||
14b1b15d SS |
72 | %package apidocs |
73 | Summary: portaudio API documentation | |
74 | Summary(pl.UTF-8): Documentacja API portaudio | |
75 | Group: Documentation | |
76 | ||
77 | %description apidocs | |
78 | Documentation for portaudio API in HTML format generated from portaudio | |
79 | sources by doxygen. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API portaudio w formacie HTML generowane ze | |
83 | źrodeł portaudio przez doxygen. | |
84 | ||
dbfa21f0 JB |
85 | %package c++ |
86 | Summary: C++ binding for PortAudio library | |
87 | Summary(pl.UTF-8): Wiązanie C++ do biblioteki PortAudio | |
88 | Group: Libraries | |
89 | Requires: %{name} = %{version}-%{release} | |
90 | ||
91 | %description c++ | |
92 | C++ binding for PortAudio library. | |
93 | ||
94 | %description c++ -l pl.UTF-8 | |
95 | Wiązanie C++ do biblioteki PortAudio. | |
96 | ||
97 | %package c++-devel | |
98 | Summary: Header files for C++ binding for PortAudio library | |
99 | Summary(pl.UTF-8): Pliki nagłówkowe wiązania C++ do biblioteki PortAudio | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-c++ = %{version}-%{release} | |
102 | Requires: %{name}-devel = %{version}-%{release} | |
103 | Requires: libstdc++-devel | |
104 | ||
105 | %description c++-devel | |
106 | Header files for C++ binding for PortAudio library. | |
107 | ||
108 | %description c++-devel -l pl.UTF-8 | |
109 | Pliki nagłówkowe wiązania C++ do biblioteki PortAudio. | |
110 | ||
111 | %package c++-static | |
112 | Summary: Static library of C++ binding for PortAudio library | |
113 | Summary(pl.UTF-8): Statyczna biblioteka wiązania C++ do biblioteki PortAudio | |
114 | Group: Development/Libraries | |
115 | Requires: %{name}-c++-devel = %{version}-%{release} | |
116 | ||
117 | %description c++-static | |
118 | Static library of C++ binding for PortAudio library. | |
119 | ||
120 | %description c++-static -l pl.UTF-8 | |
121 | Statyczna biblioteka wiązania C++ do biblioteki PortAudio. | |
122 | ||
0566ea20 | 123 | %prep |
d4c9e03c | 124 | %setup -q -n %{name} |
c8f595a2 | 125 | %patch0 -p1 |
3d56fe96 | 126 | %{?with_asihpi:%patch1 -p0} |
b6a293b9 | 127 | |
0566ea20 | 128 | %build |
ae0e7bd5 | 129 | cp -f /usr/share/automake/config.sub . |
c8f595a2 | 130 | %{__libtoolize} |
dbfa21f0 JB |
131 | cd bindings/cpp |
132 | %{__aclocal} | |
133 | %{__autoconf} | |
134 | %{__automake} | |
135 | cd ../.. | |
d4c9e03c | 136 | %{__aclocal} |
137 | %{__autoconf} | |
c8f595a2 | 138 | %configure \ |
dbfa21f0 | 139 | --enable-cxx \ |
03ea5b45 | 140 | --enable-static%{!?with_static_libs:=no} \ |
141 | %{!?with_asihpi:--without-asihpi} | |
c8f595a2 | 142 | |
143 | %{__make} | |
14b1b15d | 144 | %{?with_apidocs:/usr/bin/doxygen} |
0566ea20 AG |
145 | |
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
b6a293b9 | 148 | |
d4c9e03c | 149 | %{__make} install \ |
c8f595a2 | 150 | DESTDIR=$RPM_BUILD_ROOT |
860400d6 | 151 | |
7ab9982e MB |
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
153 | ||
0566ea20 AG |
154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %post -p /sbin/ldconfig | |
158 | %postun -p /sbin/ldconfig | |
159 | ||
160 | %files | |
161 | %defattr(644,root,root,755) | |
162 | %doc README.txt LICENSE.txt | |
af7e9fa1 | 163 | %attr(755,root,root) %{_libdir}/libportaudio.so.*.*.* |
0ac8c5fd | 164 | %attr(755,root,root) %ghost %{_libdir}/libportaudio.so.2 |
0566ea20 AG |
165 | |
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
b6a293b9 | 168 | %attr(755,root,root) %{_libdir}/libportaudio.so |
7ab9982e MB |
169 | %{_includedir}/pa_jack.h |
170 | %{_includedir}/pa_linux_alsa.h | |
0566ea20 | 171 | %{_includedir}/portaudio.h |
0ac8c5fd | 172 | %{_pkgconfigdir}/portaudio-2.0.pc |
d4c9e03c | 173 | |
c8f595a2 | 174 | %if %{with static_libs} |
d4c9e03c | 175 | %files static |
176 | %defattr(644,root,root,755) | |
0ac8c5fd | 177 | %{_libdir}/libportaudio.a |
c8f595a2 | 178 | %endif |
14b1b15d SS |
179 | |
180 | %if %{with apidocs} | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %doc doc/html/* | |
184 | %endif | |
dbfa21f0 JB |
185 | |
186 | %files c++ | |
187 | %defattr(644,root,root,755) | |
188 | %doc bindings/cpp/{COPYING,ChangeLog} | |
189 | %attr(755,root,root) %{_libdir}/libportaudiocpp.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libportaudiocpp.so.0 | |
191 | ||
192 | %files c++-devel | |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_libdir}/libportaudiocpp.so | |
195 | %{_includedir}/portaudiocpp | |
196 | %{_pkgconfigdir}/portaudiocpp.pc | |
197 | ||
198 | %files c++-static | |
199 | %defattr(644,root,root,755) | |
200 | %{_libdir}/libportaudiocpp.a |