]> git.pld-linux.org Git - packages/jack-audio-connection-kit.git/blame - jack-audio-connection-kit.spec
- use waf -j1 to avoid hangs on x86_64
[packages/jack-audio-connection-kit.git] / jack-audio-connection-kit.spec
CommitLineData
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 8Summary: The JACK Audio Connection Kit
0069929a 9Summary(pl.UTF-8): JACK - zestaw do połączeń audio
1c656cb4 10Name: jack-audio-connection-kit
98111ea0 11Version: 1.9.8
ada23d69 12Release: 2
89464d60 13License: LGPL v2.1+ (libjack), GPL v2+ (the rest)
1c656cb4 14Group: Daemons
98111ea0
JB
15#Source0Download: http://jackaudio.org/download
16Source0: https://dl.dropbox.com/u/28869550/jack-%{version}.tgz
17# Source0-md5: 1dd2ff054cab79dfc11d134756f27165
18Patch0: jack-doxygen-output-dirs.patch
57188eed 19URL: http://jackaudio.org/
4ce9074d 20BuildRequires: alsa-lib-devel >= 1.0.18
739996c8 21BuildRequires: autoconf >= 2.50
b7bfb55b 22BuildRequires: automake
4ce9074d
JB
23BuildRequires: celt-devel >= 0.5.0
24BuildRequires: dbus-devel >= 1.0.0
cdd9c438 25%{?with_apidocs:BuildRequires: doxygen}
4ce9074d
JB
26BuildRequires: expat-devel
27%{?with_ffado:BuildRequires: libffado-devel >= 1.999.17}
dd3d2338 28%{?with_freebob:BuildRequires: libfreebob-devel >= 1.0.0}
020e10fa 29BuildRequires: libsamplerate-devel
1c656cb4 30BuildRequires: libsndfile-devel >= 1.0.0
4ce9074d 31BuildRequires: libstdc++-devel
89464d60 32BuildRequires: libtool
bb41d8ef 33BuildRequires: pkgconfig
37c04f05 34BuildRequires: readline-devel
b0cf22dc 35BuildRequires: rpmbuild(macros) >= 1.98
4bd65e6d 36%{?with_apidocs:BuildRequires: texlive-pdftex}
020e10fa 37Requires: %{name}-libs = %{version}-%{release}
98111ea0 38Requires: alsa-lib >= 1.0.18
90bf4965 39Obsoletes: jack-audio-connection-kit-driver-alsa
8a746c22 40Obsoletes: jack-audio-connection-kit-driver-iec61883
f7e4f27c 41Obsoletes: jack-audio-connection-kit-static
1c656cb4
JB
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
1c656cb4
JB
44%description
45JACK is a low-latency audio server, written primarily for the Linux
46operating system. It can connect a number of different applications to
47an audio device, as well as allowing them to share audio between
48themselves. Its clients can run in their own processes (ie. as a
49normal application), or can they can run within a JACK server (ie. a
50"plugin").
51
52JACK is different from other audio server efforts in that it has been
53designed from the ground up to be suitable for professional audio
54work. This means that it focuses on two key areas: synchronous
55execution of all clients, and low latency operation.
56
d511aa56
JR
57%description -l pl.UTF-8
58JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla
59systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych
60aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie
61dźwięku pomiędzy siebie. Programy klienckie działają jako własne
62procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera
1c656cb4
JB
63JACK (jako wtyczki).
64
d511aa56
JR
65JACK różni się od innych serwerów dźwięku tym, że został
66zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku.
67Oznacza to, że skupia się na dwóch rzeczach: synchronicznym
68wykonywaniu wszystkich klientów i małych opóźnieniach działania.
1c656cb4 69
739996c8
JB
70%package libs
71Summary: JACK library
0069929a 72Summary(pl.UTF-8): Biblioteka JACK-a
e1bd1db0 73License: LGPL v2.1+
739996c8 74Group: Libraries
98111ea0 75Requires: dbus-libs >= 1.0.0
739996c8
JB
76Conflicts: jack-audio-connection-kit < 0.100.7
77
78%description libs
79Shared JACK library.
80
d511aa56
JR
81%description libs -l pl.UTF-8
82Biblioteka współdzielona JACK-a.
739996c8 83
1c656cb4 84%package devel
778387a3 85Summary: Header files for JACK
0069929a 86Summary(pl.UTF-8): JACK - pliki nagłówkowe
e1bd1db0 87License: LGPL v2.1+
1c656cb4 88Group: Development/Libraries
bf28afd4 89Requires: %{name}-libs = %{version}-%{release}
1c656cb4
JB
90
91%description devel
778387a3 92Header files for the JACK Audio Connection Kit.
1c656cb4 93
d511aa56
JR
94%description devel -l pl.UTF-8
95Pliki nagłówkowe dla zestawu do połączeń audio JACK.
1c656cb4 96
cdd9c438
MB
97%package apidocs
98Summary: JACK Audio Connection Kit API documentation
99Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit
100Group: Documentation
101Requires: gtk-doc-common
102
103%description apidocs
104JACK Audio Connection Kit API documentation.
105
106%description apidocs -l pl.UTF-8
107Dokumentacja API JACK Audio Connection Kit.
108
0dcae788
JR
109%package driver-firewire
110Summary: FireWire (FFADO) sound driver for JACK
111Summary(pl.UTF-8): Sterownik dźwięku FireWire (FFADO) dla JACK-a
112License: GPL v2+
113Group: Libraries
114Requires: %{name} = %{version}-%{release}
4ce9074d 115Requires: libffado >= 1.999.17
0dcae788
JR
116
117%description driver-firewire
118FireWire (FFADO) sound driver for JACK.
119
120%description driver-firewire -l pl.UTF-8
121Sterownik dźwięku FireWire (FFADO) dla JACK-a.
122
9bf22e57
JB
123%package driver-freebob
124Summary: FreeBoB sound driver for JACK
0069929a 125Summary(pl.UTF-8): Sterownik dźwięku FreeBoB dla JACK-a
e1bd1db0 126License: GPL v2+
9bf22e57
JB
127Group: Libraries
128Requires: %{name} = %{version}-%{release}
4ce9074d 129Requires: libfreebob >= 1.0.0
9bf22e57
JB
130
131%description driver-freebob
132FreeBoB (BeBoB platform) sound driver for JACK.
133
d511aa56
JR
134%description driver-freebob -l pl.UTF-8
135Sterownik dźwięku FreeBoB (do platformy BeBoB) dla JACK-a.
9bf22e57 136
1c656cb4 137%package example-clients
778387a3 138Summary: Example clients that use JACK
4ce9074d 139Summary(pl.UTF-8): Przykładowe programy klienckie używające JACK-a
e1bd1db0 140License: GPL v2+
1c656cb4 141Group: Applications/Sound
bb41d8ef 142Requires: %{name} = %{version}-%{release}
1c656cb4
JB
143
144%description example-clients
778387a3 145Small example clients that use the JACK Audio Connection Kit.
1c656cb4 146
d511aa56
JR
147%description example-clients -l pl.UTF-8
148Małe, przykładowe programy klienckie, które używają zestawu do
149połączeń audio JACK.
1c656cb4
JB
150
151%package example-jackrec
778387a3 152Summary: Example JACK client: jackrec
0069929a 153Summary(pl.UTF-8): Przykładowy klient zestawu JACK: jackrec
e1bd1db0 154License: GPL v2+
1c656cb4 155Group: Applications/Sound
bb41d8ef 156Requires: %{name} = %{version}-%{release}
1c656cb4
JB
157
158%description example-jackrec
778387a3 159Example JACK client: jackrec. It's separated because it uses
1c656cb4
JB
160libsndfile library.
161
d511aa56
JR
162%description example-jackrec -l pl.UTF-8
163Przykładowy klient zestawu JACK: jackrec. Jest wydzielony, ponieważ
1c656cb4
JB
164wymaga biblioteki libsndfile.
165
1c656cb4 166%prep
69ca5e61 167%setup -q -n jack-%{version}
98111ea0 168cd jack-%{version}
68679a6c 169%patch0 -p1
1c656cb4
JB
170
171%build
98111ea0 172cd jack-%{version}
69ca5e61
JR
173export CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
174export CXXFLAGS="%{rpmcxxflags} -I/usr/include/ncurses"
175export CPPFLAGS="%{rpmcxxflags} -I/usr/include/ncurses"
176export 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
194rm -rf $RPM_BUILD_ROOT
98111ea0 195cd jack-%{version}
1c656cb4 196
69ca5e61
JR
197HTML_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
204mv $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)
211chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so*
212chmod a+x $RPM_BUILD_ROOT%{_libdir}/jack/*.so
213
1c656cb4
JB
214%clean
215rm -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
221if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then
69ca5e61 222 echo "/dev/shm is not mounted, but JACK requires it"
851bfd45 223fi
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*
This page took 0.077167 seconds and 4 git commands to generate.