]>
Commit | Line | Data |
---|---|---|
1c656cb4 JB |
1 | # |
2 | # Conditional build: | |
cdd9c438 | 3 | %bcond_without apidocs # don't generate documentation with doxygen |
4ce9074d | 4 | %bcond_without ffado # don't build firewire (FFADO) driver |
010408c1 | 5 | %bcond_without freebob # don't build freebob driver |
69ca5e61 | 6 | %bcond_with classic # build also classic jackd server (see http://trac.jackaudio.org/wiki/JackDbusPackaging) |
1c656cb4 | 7 | # |
778387a3 | 8 | Summary: The JACK Audio Connection Kit |
0069929a | 9 | Summary(pl.UTF-8): JACK - zestaw do połączeń audio |
1c656cb4 | 10 | Name: jack-audio-connection-kit |
98111ea0 | 11 | Version: 1.9.8 |
ada23d69 | 12 | Release: 2 |
89464d60 | 13 | License: LGPL v2.1+ (libjack), GPL v2+ (the rest) |
1c656cb4 | 14 | Group: Daemons |
98111ea0 JB |
15 | #Source0Download: http://jackaudio.org/download |
16 | Source0: https://dl.dropbox.com/u/28869550/jack-%{version}.tgz | |
17 | # Source0-md5: 1dd2ff054cab79dfc11d134756f27165 | |
18 | Patch0: jack-doxygen-output-dirs.patch | |
57188eed | 19 | URL: http://jackaudio.org/ |
4ce9074d | 20 | BuildRequires: alsa-lib-devel >= 1.0.18 |
739996c8 | 21 | BuildRequires: autoconf >= 2.50 |
b7bfb55b | 22 | BuildRequires: automake |
4ce9074d JB |
23 | BuildRequires: celt-devel >= 0.5.0 |
24 | BuildRequires: dbus-devel >= 1.0.0 | |
cdd9c438 | 25 | %{?with_apidocs:BuildRequires: doxygen} |
4ce9074d JB |
26 | BuildRequires: expat-devel |
27 | %{?with_ffado:BuildRequires: libffado-devel >= 1.999.17} | |
dd3d2338 | 28 | %{?with_freebob:BuildRequires: libfreebob-devel >= 1.0.0} |
020e10fa | 29 | BuildRequires: libsamplerate-devel |
1c656cb4 | 30 | BuildRequires: libsndfile-devel >= 1.0.0 |
4ce9074d | 31 | BuildRequires: libstdc++-devel |
89464d60 | 32 | BuildRequires: libtool |
bb41d8ef | 33 | BuildRequires: pkgconfig |
37c04f05 | 34 | BuildRequires: readline-devel |
b0cf22dc | 35 | BuildRequires: rpmbuild(macros) >= 1.98 |
4bd65e6d | 36 | %{?with_apidocs:BuildRequires: texlive-pdftex} |
020e10fa | 37 | Requires: %{name}-libs = %{version}-%{release} |
98111ea0 | 38 | Requires: alsa-lib >= 1.0.18 |
90bf4965 | 39 | Obsoletes: jack-audio-connection-kit-driver-alsa |
8a746c22 | 40 | Obsoletes: jack-audio-connection-kit-driver-iec61883 |
f7e4f27c | 41 | Obsoletes: jack-audio-connection-kit-static |
1c656cb4 JB |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
1c656cb4 JB |
44 | %description |
45 | JACK is a low-latency audio server, written primarily for the Linux | |
46 | operating system. It can connect a number of different applications to | |
47 | an audio device, as well as allowing them to share audio between | |
48 | themselves. Its clients can run in their own processes (ie. as a | |
49 | normal application), or can they can run within a JACK server (ie. a | |
50 | "plugin"). | |
51 | ||
52 | JACK is different from other audio server efforts in that it has been | |
53 | designed from the ground up to be suitable for professional audio | |
54 | work. This means that it focuses on two key areas: synchronous | |
55 | execution of all clients, and low latency operation. | |
56 | ||
d511aa56 JR |
57 | %description -l pl.UTF-8 |
58 | JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla | |
59 | systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych | |
60 | aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie | |
61 | dźwięku pomiędzy siebie. Programy klienckie działają jako własne | |
62 | procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera | |
1c656cb4 JB |
63 | JACK (jako wtyczki). |
64 | ||
d511aa56 JR |
65 | JACK różni się od innych serwerów dźwięku tym, że został |
66 | zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku. | |
67 | Oznacza to, że skupia się na dwóch rzeczach: synchronicznym | |
68 | wykonywaniu wszystkich klientów i małych opóźnieniach działania. | |
1c656cb4 | 69 | |
739996c8 JB |
70 | %package libs |
71 | Summary: JACK library | |
0069929a | 72 | Summary(pl.UTF-8): Biblioteka JACK-a |
e1bd1db0 | 73 | License: LGPL v2.1+ |
739996c8 | 74 | Group: Libraries |
98111ea0 | 75 | Requires: dbus-libs >= 1.0.0 |
739996c8 JB |
76 | Conflicts: jack-audio-connection-kit < 0.100.7 |
77 | ||
78 | %description libs | |
79 | Shared JACK library. | |
80 | ||
d511aa56 JR |
81 | %description libs -l pl.UTF-8 |
82 | Biblioteka współdzielona JACK-a. | |
739996c8 | 83 | |
1c656cb4 | 84 | %package devel |
778387a3 | 85 | Summary: Header files for JACK |
0069929a | 86 | Summary(pl.UTF-8): JACK - pliki nagłówkowe |
e1bd1db0 | 87 | License: LGPL v2.1+ |
1c656cb4 | 88 | Group: Development/Libraries |
bf28afd4 | 89 | Requires: %{name}-libs = %{version}-%{release} |
1c656cb4 JB |
90 | |
91 | %description devel | |
778387a3 | 92 | Header files for the JACK Audio Connection Kit. |
1c656cb4 | 93 | |
d511aa56 JR |
94 | %description devel -l pl.UTF-8 |
95 | Pliki nagłówkowe dla zestawu do połączeń audio JACK. | |
1c656cb4 | 96 | |
cdd9c438 MB |
97 | %package apidocs |
98 | Summary: JACK Audio Connection Kit API documentation | |
99 | Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit | |
100 | Group: Documentation | |
101 | Requires: gtk-doc-common | |
102 | ||
103 | %description apidocs | |
104 | JACK Audio Connection Kit API documentation. | |
105 | ||
106 | %description apidocs -l pl.UTF-8 | |
107 | Dokumentacja API JACK Audio Connection Kit. | |
108 | ||
0dcae788 JR |
109 | %package driver-firewire |
110 | Summary: FireWire (FFADO) sound driver for JACK | |
111 | Summary(pl.UTF-8): Sterownik dźwięku FireWire (FFADO) dla JACK-a | |
112 | License: GPL v2+ | |
113 | Group: Libraries | |
114 | Requires: %{name} = %{version}-%{release} | |
4ce9074d | 115 | Requires: libffado >= 1.999.17 |
0dcae788 JR |
116 | |
117 | %description driver-firewire | |
118 | FireWire (FFADO) sound driver for JACK. | |
119 | ||
120 | %description driver-firewire -l pl.UTF-8 | |
121 | Sterownik dźwięku FireWire (FFADO) dla JACK-a. | |
122 | ||
9bf22e57 JB |
123 | %package driver-freebob |
124 | Summary: FreeBoB sound driver for JACK | |
0069929a | 125 | Summary(pl.UTF-8): Sterownik dźwięku FreeBoB dla JACK-a |
e1bd1db0 | 126 | License: GPL v2+ |
9bf22e57 JB |
127 | Group: Libraries |
128 | Requires: %{name} = %{version}-%{release} | |
4ce9074d | 129 | Requires: libfreebob >= 1.0.0 |
9bf22e57 JB |
130 | |
131 | %description driver-freebob | |
132 | FreeBoB (BeBoB platform) sound driver for JACK. | |
133 | ||
d511aa56 JR |
134 | %description driver-freebob -l pl.UTF-8 |
135 | Sterownik dźwięku FreeBoB (do platformy BeBoB) dla JACK-a. | |
9bf22e57 | 136 | |
1c656cb4 | 137 | %package example-clients |
778387a3 | 138 | Summary: Example clients that use JACK |
4ce9074d | 139 | Summary(pl.UTF-8): Przykładowe programy klienckie używające JACK-a |
e1bd1db0 | 140 | License: GPL v2+ |
1c656cb4 | 141 | Group: Applications/Sound |
bb41d8ef | 142 | Requires: %{name} = %{version}-%{release} |
1c656cb4 JB |
143 | |
144 | %description example-clients | |
778387a3 | 145 | Small example clients that use the JACK Audio Connection Kit. |
1c656cb4 | 146 | |
d511aa56 JR |
147 | %description example-clients -l pl.UTF-8 |
148 | Małe, przykładowe programy klienckie, które używają zestawu do | |
149 | połączeń audio JACK. | |
1c656cb4 JB |
150 | |
151 | %package example-jackrec | |
778387a3 | 152 | Summary: Example JACK client: jackrec |
0069929a | 153 | Summary(pl.UTF-8): Przykładowy klient zestawu JACK: jackrec |
e1bd1db0 | 154 | License: GPL v2+ |
1c656cb4 | 155 | Group: Applications/Sound |
bb41d8ef | 156 | Requires: %{name} = %{version}-%{release} |
1c656cb4 JB |
157 | |
158 | %description example-jackrec | |
778387a3 | 159 | Example JACK client: jackrec. It's separated because it uses |
1c656cb4 JB |
160 | libsndfile library. |
161 | ||
d511aa56 JR |
162 | %description example-jackrec -l pl.UTF-8 |
163 | Przykładowy klient zestawu JACK: jackrec. Jest wydzielony, ponieważ | |
1c656cb4 JB |
164 | wymaga biblioteki libsndfile. |
165 | ||
1c656cb4 | 166 | %prep |
69ca5e61 | 167 | %setup -q -n jack-%{version} |
98111ea0 | 168 | cd jack-%{version} |
68679a6c | 169 | %patch0 -p1 |
1c656cb4 JB |
170 | |
171 | %build | |
98111ea0 | 172 | cd jack-%{version} |
69ca5e61 JR |
173 | export CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
174 | export CXXFLAGS="%{rpmcxxflags} -I/usr/include/ncurses" | |
175 | export CPPFLAGS="%{rpmcxxflags} -I/usr/include/ncurses" | |
176 | export LINKFLAGS="%{rpmldflags}" | |
177 | ||
75582698 | 178 | ./waf configure -j1 \ |
69ca5e61 JR |
179 | -v \ |
180 | %{?debug:--debug} \ | |
181 | --prefix=%{_prefix} \ | |
182 | --libdir=/%{_lib} \ | |
183 | --libdir32=/lib \ | |
184 | --dbus \ | |
185 | %{?with_classic:--classic} \ | |
186 | %{?with_apidocs:--doxygen} \ | |
4ce9074d | 187 | %{?with_ffado:--firewire} \ |
69ca5e61 JR |
188 | %{?with_freebob:--freebob} \ |
189 | --alsa | |
190 | ||
191 | ./waf build %{?_smp_mflags} -v | |
1c656cb4 JB |
192 | |
193 | %install | |
194 | rm -rf $RPM_BUILD_ROOT | |
98111ea0 | 195 | cd jack-%{version} |
1c656cb4 | 196 | |
69ca5e61 JR |
197 | HTML_DIR=%{_gtkdocdir}/%{name}/reference \ |
198 | ./waf install \ | |
199 | --destdir=$RPM_BUILD_ROOT | |
cdd9c438 | 200 | |
7e8e4d6e | 201 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
1c656cb4 | 202 | |
69ca5e61 JR |
203 | # For compatibility with jack1 |
204 | mv $RPM_BUILD_ROOT%{_bindir}/jack_rec $RPM_BUILD_ROOT%{_bindir}/jackrec | |
60ef980a | 205 | |
98111ea0 JB |
206 | # not built or packaged |
207 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/jack_impulse_grabber.1 \ | |
208 | %{!?with_classic:$RPM_BUILD_ROOT%{_mandir}/man1/jackd.1} | |
209 | ||
e718df3f MB |
210 | # fix perms (needed for autorequires/provides) |
211 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
212 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/jack/*.so | |
213 | ||
1c656cb4 JB |
214 | %clean |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
bf28afd4 | 217 | %post libs -p /sbin/ldconfig |
218 | %postun libs -p /sbin/ldconfig | |
1c656cb4 | 219 | |
851bfd45 JB |
220 | %verifyscript libs |
221 | if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then | |
69ca5e61 | 222 | echo "/dev/shm is not mounted, but JACK requires it" |
851bfd45 | 223 | fi |
851bfd45 | 224 | |
1c656cb4 JB |
225 | %files |
226 | %defattr(644,root,root,755) | |
98111ea0 | 227 | %doc jack-%{version}/{ChangeLog,README*,TODO} |
dd3d2338 | 228 | %attr(755,root,root) %{_bindir}/jack_alias |
69ca5e61 JR |
229 | %attr(755,root,root) %{_bindir}/jack_control |
230 | %attr(755,root,root) %{_bindir}/jack_cpu | |
dd3d2338 | 231 | %attr(755,root,root) %{_bindir}/jack_evmon |
69ca5e61 | 232 | %attr(755,root,root) %{_bindir}/jack_iodelay |
ddd36c25 | 233 | %attr(755,root,root) %{_bindir}/jack_load |
69ca5e61 | 234 | %attr(755,root,root) %{_bindir}/jack_midi_dump |
98111ea0 JB |
235 | %attr(755,root,root) %{_bindir}/jack_net_master |
236 | %attr(755,root,root) %{_bindir}/jack_net_slave | |
69ca5e61 JR |
237 | %attr(755,root,root) %{_bindir}/jack_server_control |
238 | %attr(755,root,root) %{_bindir}/jack_session_notify | |
239 | %attr(755,root,root) %{_bindir}/jack_test | |
ddd36c25 | 240 | %attr(755,root,root) %{_bindir}/jack_unload |
69ca5e61 JR |
241 | %{?with_classic:%attr(755,root,root) %{_bindir}/jackd} |
242 | %attr(755,root,root) %{_bindir}/jackdbus | |
1c656cb4 | 243 | %dir %{_libdir}/jack |
69ca5e61 | 244 | %attr(755,root,root) %{_libdir}/jack/audioadapter.so |
90bf4965 | 245 | %attr(755,root,root) %{_libdir}/jack/jack_alsa.so |
98111ea0 | 246 | %attr(755,root,root) %{_libdir}/jack/jack_alsarawmidi.so |
76df8802 | 247 | %attr(755,root,root) %{_libdir}/jack/jack_dummy.so |
69ca5e61 JR |
248 | %attr(755,root,root) %{_libdir}/jack/jack_loopback.so |
249 | %attr(755,root,root) %{_libdir}/jack/jack_netone.so | |
57188eed | 250 | %attr(755,root,root) %{_libdir}/jack/jack_net.so |
69ca5e61 JR |
251 | %attr(755,root,root) %{_libdir}/jack/netadapter.so |
252 | %attr(755,root,root) %{_libdir}/jack/netmanager.so | |
253 | %attr(755,root,root) %{_libdir}/jack/profiler.so | |
254 | %{_datadir}/dbus-1/services/org.jackaudio.service | |
255 | %{?with_classic:%{_mandir}/man1/jackd.1*} | |
256 | %{_mandir}/man1/jack_iodelay.1* | |
257 | %{_mandir}/man1/jack_load.1* | |
258 | %{_mandir}/man1/jack_unload.1* | |
1c656cb4 | 259 | |
739996c8 JB |
260 | %files libs |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libjack.so.*.*.* | |
dd3d2338 | 263 | %attr(755,root,root) %ghost %{_libdir}/libjack.so.0 |
98111ea0 JB |
264 | %attr(755,root,root) %{_libdir}/libjacknet.so.*.*.* |
265 | %attr(755,root,root) %ghost %{_libdir}/libjacknet.so.0 | |
57188eed ŁK |
266 | %attr(755,root,root) %{_libdir}/libjackserver.so.*.*.* |
267 | %attr(755,root,root) %ghost %{_libdir}/libjackserver.so.0 | |
739996c8 | 268 | |
1c656cb4 JB |
269 | %files devel |
270 | %defattr(644,root,root,755) | |
023795b8 | 271 | %attr(755,root,root) %{_libdir}/libjack.so |
98111ea0 | 272 | %attr(755,root,root) %{_libdir}/libjacknet.so |
e1bd1db0 | 273 | %attr(755,root,root) %{_libdir}/libjackserver.so |
023795b8 | 274 | %{_includedir}/jack |
1c656cb4 | 275 | %{_pkgconfigdir}/jack.pc |
1c656cb4 | 276 | |
cdd9c438 MB |
277 | %if %{with apidocs} |
278 | %files apidocs | |
279 | %defattr(644,root,root,755) | |
280 | %{_gtkdocdir}/%{name} | |
281 | %endif | |
282 | ||
4ce9074d | 283 | %if %{with ffado} |
0dcae788 JR |
284 | %files driver-firewire |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/jack/jack_firewire.so | |
287 | %endif | |
288 | ||
cf5ed69c | 289 | %if %{with freebob} |
9bf22e57 JB |
290 | %files driver-freebob |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_libdir}/jack/jack_freebob.so | |
cf5ed69c | 293 | %endif |
9bf22e57 | 294 | |
1c656cb4 JB |
295 | %files example-clients |
296 | %defattr(644,root,root,755) | |
57188eed ŁK |
297 | %attr(755,root,root) %{_bindir}/alsa_in |
298 | %attr(755,root,root) %{_bindir}/alsa_out | |
74cff43a | 299 | %attr(755,root,root) %{_bindir}/jack_bufsize |
1c656cb4 | 300 | %attr(755,root,root) %{_bindir}/jack_connect |
4ce9074d | 301 | %attr(755,root,root) %{_bindir}/jack_cpu_load |
1c656cb4 | 302 | %attr(755,root,root) %{_bindir}/jack_disconnect |
74cff43a | 303 | %attr(755,root,root) %{_bindir}/jack_freewheel |
4ce9074d | 304 | %attr(755,root,root) %{_bindir}/jack_latent_client |
0ee66f54 | 305 | %attr(755,root,root) %{_bindir}/jack_lsp |
306 | %attr(755,root,root) %{_bindir}/jack_metro | |
98111ea0 | 307 | %attr(755,root,root) %{_bindir}/jack_midi_latency_test |
9bf22e57 JB |
308 | %attr(755,root,root) %{_bindir}/jack_midiseq |
309 | %attr(755,root,root) %{_bindir}/jack_midisine | |
1c656cb4 | 310 | %attr(755,root,root) %{_bindir}/jack_monitor_client |
69ca5e61 | 311 | %attr(755,root,root) %{_bindir}/jack_multiple_metro |
57188eed ŁK |
312 | %attr(755,root,root) %{_bindir}/jack_netsource |
313 | %attr(755,root,root) %{_bindir}/jack_samplerate | |
0ee66f54 | 314 | %attr(755,root,root) %{_bindir}/jack_showtime |
1c656cb4 | 315 | %attr(755,root,root) %{_bindir}/jack_simple_client |
69ca5e61 | 316 | %attr(755,root,root) %{_bindir}/jack_simple_session_client |
4ce9074d | 317 | %attr(755,root,root) %{_bindir}/jack_thru |
1f638f5d | 318 | %attr(755,root,root) %{_bindir}/jack_transport |
57188eed | 319 | %attr(755,root,root) %{_bindir}/jack_wait |
4ce9074d | 320 | %attr(755,root,root) %{_bindir}/jack_zombie |
023795b8 | 321 | %attr(755,root,root) %{_libdir}/jack/inprocess.so |
69ca5e61 JR |
322 | %{_mandir}/man1/alsa_in.1* |
323 | %{_mandir}/man1/alsa_out.1* | |
324 | %{_mandir}/man1/jack_bufsize.1* | |
325 | %{_mandir}/man1/jack_connect.1* | |
326 | %{_mandir}/man1/jack_disconnect.1* | |
327 | %{_mandir}/man1/jack_freewheel.1* | |
328 | %{_mandir}/man1/jack_lsp.1* | |
329 | %{_mandir}/man1/jack_metro.1* | |
330 | %{_mandir}/man1/jack_monitor_client.1* | |
331 | %{_mandir}/man1/jack_netsource.1* | |
332 | %{_mandir}/man1/jack_samplerate.1* | |
333 | %{_mandir}/man1/jack_showtime.1* | |
334 | %{_mandir}/man1/jack_simple_client.1* | |
335 | %{_mandir}/man1/jack_transport.1* | |
336 | %{_mandir}/man1/jack_wait.1* | |
1c656cb4 JB |
337 | |
338 | %files example-jackrec | |
339 | %defattr(644,root,root,755) | |
340 | %attr(755,root,root) %{_bindir}/jackrec | |
69ca5e61 | 341 | %{_mandir}/man1/jackrec.1* |