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