]>
Commit | Line | Data |
---|---|---|
1c656cb4 JB |
1 | # |
2 | # Conditional build: | |
cdd9c438 | 3 | %bcond_without apidocs # don't generate documentation with doxygen |
89464d60 | 4 | %bcond_without cap # don't use capabilities to get real-time priority (needs suid root binary) |
89464d60 | 5 | %bcond_without posix_shm # don't use posix shm |
80de25ca | 6 | %bcond_without static_libs # don't build static libs |
e1b028be | 7 | %bcond_without ffado # don't build firewire (FFADO) driver |
010408c1 | 8 | %bcond_without freebob # don't build freebob driver |
1c656cb4 | 9 | # |
778387a3 | 10 | Summary: The JACK Audio Connection Kit |
0069929a | 11 | Summary(pl.UTF-8): JACK - zestaw do połączeń audio |
1c656cb4 | 12 | Name: jack-audio-connection-kit |
9290b699 | 13 | Version: 0.126.0 |
5e55e3af | 14 | Release: 1 |
89464d60 | 15 | License: LGPL v2.1+ (libjack), GPL v2+ (the rest) |
1c656cb4 | 16 | Group: Daemons |
9290b699 JB |
17 | #Source0Download: https://github.com/jackaudio/jack1/releases |
18 | Source0: https://github.com/jackaudio/jack1/releases/download/%{version}/jack1-%{version}.tar.gz | |
19 | # Source0-md5: 5913c06644855f472894da53a624e63f | |
57188eed | 20 | Patch0: %{name}-gcc4.patch |
b2776e1f | 21 | Patch2: link.patch |
9a1803f8 | 22 | Patch3: %{name}-update.patch |
c4c52f59 | 23 | Patch4: %{name}-man.patch |
9290b699 | 24 | URL: https://jackaudio.org/ |
5e55e3af | 25 | BuildRequires: alsa-lib-devel >= 1.0.18 |
739996c8 | 26 | BuildRequires: autoconf >= 2.50 |
b7bfb55b | 27 | BuildRequires: automake |
5e55e3af | 28 | BuildRequires: celt-devel >= 0.5.0 |
9a1803f8 | 29 | BuildRequires: db-devel |
cdd9c438 | 30 | %{?with_apidocs:BuildRequires: doxygen} |
74cff43a | 31 | %{?with_cap:BuildRequires: libcap-devel} |
5e55e3af | 32 | %{?with_ffado:BuildRequires: libffado-devel >= 1.999.17} |
dd3d2338 | 33 | %{?with_freebob:BuildRequires: libfreebob-devel >= 1.0.0} |
5e55e3af | 34 | BuildRequires: libsamplerate-devel >= 0.1.2 |
89464d60 | 35 | BuildRequires: libtool |
bb41d8ef | 36 | BuildRequires: pkgconfig |
b0cf22dc | 37 | BuildRequires: rpmbuild(macros) >= 1.98 |
4bd65e6d | 38 | %{?with_apidocs:BuildRequires: texlive-pdftex} |
020e10fa | 39 | Requires: %{name}-libs = %{version}-%{release} |
72de034e | 40 | Requires: alsa-lib >= 1.0.18 |
9290b699 JB |
41 | Obsoletes: jack-audio-connection-kit-driver-alsa < 0.101.1-2 |
42 | Obsoletes: jack-audio-connection-kit-driver-iec61883 < 0.99.0 | |
1c656cb4 JB |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
1c656cb4 JB |
45 | %description |
46 | JACK is a low-latency audio server, written primarily for the Linux | |
47 | operating system. It can connect a number of different applications to | |
48 | an audio device, as well as allowing them to share audio between | |
49 | themselves. Its clients can run in their own processes (ie. as a | |
50 | normal application), or can they can run within a JACK server (ie. a | |
51 | "plugin"). | |
52 | ||
53 | JACK is different from other audio server efforts in that it has been | |
54 | designed from the ground up to be suitable for professional audio | |
55 | work. This means that it focuses on two key areas: synchronous | |
56 | execution of all clients, and low latency operation. | |
57 | ||
d511aa56 JR |
58 | %description -l pl.UTF-8 |
59 | JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla | |
60 | systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych | |
61 | aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie | |
62 | dźwięku pomiędzy siebie. Programy klienckie działają jako własne | |
63 | procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera | |
1c656cb4 JB |
64 | JACK (jako wtyczki). |
65 | ||
d511aa56 JR |
66 | JACK różni się od innych serwerów dźwięku tym, że został |
67 | zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku. | |
68 | Oznacza to, że skupia się na dwóch rzeczach: synchronicznym | |
69 | wykonywaniu wszystkich klientów i małych opóźnieniach działania. | |
1c656cb4 | 70 | |
739996c8 JB |
71 | %package libs |
72 | Summary: JACK library | |
0069929a | 73 | Summary(pl.UTF-8): Biblioteka JACK-a |
e1bd1db0 | 74 | License: LGPL v2.1+ |
739996c8 JB |
75 | Group: Libraries |
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 JB |
96 | |
97 | %package static | |
778387a3 | 98 | Summary: Static JACK library |
0069929a | 99 | Summary(pl.UTF-8): Statyczna biblioteka JACK |
e1bd1db0 | 100 | License: LGPL v2.1+ |
1c656cb4 | 101 | Group: Development/Libraries |
bb41d8ef | 102 | Requires: %{name}-devel = %{version}-%{release} |
1c656cb4 JB |
103 | |
104 | %description static | |
778387a3 | 105 | Static JACK library. |
1c656cb4 | 106 | |
d511aa56 | 107 | %description static -l pl.UTF-8 |
778387a3 | 108 | Statyczna biblioteka JACK. |
1c656cb4 | 109 | |
cdd9c438 MB |
110 | %package apidocs |
111 | Summary: JACK Audio Connection Kit API documentation | |
112 | Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit | |
113 | Group: Documentation | |
114 | Requires: gtk-doc-common | |
115 | ||
116 | %description apidocs | |
117 | JACK Audio Connection Kit API documentation. | |
118 | ||
119 | %description apidocs -l pl.UTF-8 | |
120 | Dokumentacja API JACK Audio Connection Kit. | |
121 | ||
5e55e3af JB |
122 | %package driver-firewire |
123 | Summary: FireWire (FFADO) sound driver for JACK | |
124 | Summary(pl.UTF-8): Sterownik dźwięku FireWire (FFADO) dla JACK-a | |
125 | License: GPL v2+ | |
126 | Group: Libraries | |
127 | Requires: %{name} = %{version}-%{release} | |
72de034e | 128 | Requires: libffado >= 1.999.17 |
5e55e3af JB |
129 | |
130 | %description driver-firewire | |
131 | FireWire (FFADO) sound driver for JACK. | |
132 | ||
133 | %description driver-firewire -l pl.UTF-8 | |
134 | Sterownik dźwięku FireWire (FFADO) dla JACK-a. | |
135 | ||
9bf22e57 JB |
136 | %package driver-freebob |
137 | Summary: FreeBoB sound driver for JACK | |
0069929a | 138 | Summary(pl.UTF-8): Sterownik dźwięku FreeBoB dla JACK-a |
e1bd1db0 | 139 | License: GPL v2+ |
9bf22e57 JB |
140 | Group: Libraries |
141 | Requires: %{name} = %{version}-%{release} | |
72de034e | 142 | Requires: libfreebob >= 1.0.0 |
9bf22e57 JB |
143 | |
144 | %description driver-freebob | |
145 | FreeBoB (BeBoB platform) sound driver for JACK. | |
146 | ||
d511aa56 JR |
147 | %description driver-freebob -l pl.UTF-8 |
148 | Sterownik dźwięku FreeBoB (do platformy BeBoB) dla JACK-a. | |
9bf22e57 | 149 | |
1c656cb4 | 150 | %prep |
9290b699 | 151 | %setup -q -n jack1-%{version} |
68679a6c | 152 | %patch0 -p1 |
b2776e1f | 153 | %patch2 -p1 |
9a1803f8 | 154 | %patch3 -p1 |
c4c52f59 | 155 | %patch4 -p1 |
1c656cb4 JB |
156 | |
157 | %build | |
89464d60 | 158 | %{__libtoolize} |
159 | %{__aclocal} -I config | |
9a1803f8 | 160 | %{__autoconf} |
89464d60 | 161 | %{__autoheader} |
162 | %{__automake} | |
89464d60 | 163 | |
1c656cb4 | 164 | %configure \ |
57188eed | 165 | --enable-dynsimd \ |
80de25ca | 166 | %{?debug:--enable-debug} \ |
167 | --disable-coreaudio \ | |
5e55e3af | 168 | %{!?with_ffado:--disable-ffado} \ |
010408c1 | 169 | %{!?with_freebob:--disable-freebob} \ |
89464d60 | 170 | --disable-oldtrans \ |
80de25ca | 171 | --disable-portaudio \ |
89464d60 | 172 | --enable-oss \ |
74cff43a | 173 | %{?with_cap:--enable-capabilities %{!?debug:--enable-stripped-jackd}} \ |
5e55e3af | 174 | --enable-posix-shm%{!?with_posix_shm:=no} \ |
77ad9376 | 175 | %{?with_static_libs:--enable-static} \ |
89464d60 | 176 | --enable-preemption-check \ |
739996c8 | 177 | --enable-resize \ |
c4c52f59 | 178 | --disable-silent-rules \ |
739996c8 JB |
179 | --enable-timestamps \ |
180 | --with-default-tmpdir=/tmp \ | |
cdd9c438 | 181 | --with-html-dir=%{_gtkdocdir}/%{name} |
1c656cb4 JB |
182 | |
183 | %{__make} | |
184 | ||
185 | %install | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | %{__make} install \ | |
189 | DESTDIR=$RPM_BUILD_ROOT \ | |
cdd9c438 MB |
190 | HTML_DIR=%{_gtkdocdir}/%{name} |
191 | ||
7e8e4d6e | 192 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
1c656cb4 | 193 | |
72de034e | 194 | # loadable modules |
9a1803f8 JB |
195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/jack/*.la |
196 | %if %{with static_libs} | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/jack/*.a | |
198 | %endif | |
9290b699 JB |
199 | |
200 | # tools/clients moved to jack-example-tools.spec | |
201 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/alsa_{in,out}.1* \ | |
202 | $RPM_BUILD_ROOT%{_mandir}/man1/jack_{bufsize,connect,disconnect,freewheel,impulse_grabber,load_test,lsp,metro,monitor_client,netsource,samplerate,showtime,transport,wait}.1* \ | |
203 | $RPM_BUILD_ROOT%{_mandir}/man1/jackrec.1* | |
60ef980a | 204 | |
1c656cb4 JB |
205 | %clean |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
bf28afd4 | 208 | %post libs -p /sbin/ldconfig |
209 | %postun libs -p /sbin/ldconfig | |
1c656cb4 | 210 | |
851bfd45 JB |
211 | %if %{with posix_shm} |
212 | %verifyscript libs | |
213 | if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then | |
214 | echo "/dev/shm is not mounted, but JACK compiled with POSIX_SHM requires it" | |
215 | fi | |
216 | %endif | |
217 | ||
1c656cb4 JB |
218 | %files |
219 | %defattr(644,root,root,755) | |
220 | # note: COPYING only specifies which parts fall under GPL and LGPL | |
221 | %doc AUTHORS TODO COPYING | |
9a1803f8 JB |
222 | %attr(755,root,root) %{_bindir}/jackd |
223 | %{?with_cap:%attr(4755,root,root) %{_bindir}/jackstart} | |
1c656cb4 | 224 | %dir %{_libdir}/jack |
90bf4965 | 225 | %attr(755,root,root) %{_libdir}/jack/jack_alsa.so |
72de034e | 226 | %attr(755,root,root) %{_libdir}/jack/jack_alsa_midi.so |
76df8802 | 227 | %attr(755,root,root) %{_libdir}/jack/jack_dummy.so |
57188eed | 228 | %attr(755,root,root) %{_libdir}/jack/jack_net.so |
bb41d8ef | 229 | %attr(755,root,root) %{_libdir}/jack/jack_oss.so |
9a1803f8 JB |
230 | %{_mandir}/man1/jack_iodelay.1* |
231 | %{_mandir}/man1/jack_load.1* | |
232 | %{_mandir}/man1/jack_property.1* | |
233 | %{_mandir}/man1/jack_unload.1* | |
e1bd1db0 JB |
234 | %{_mandir}/man1/jackd.1* |
235 | %{_mandir}/man1/jackstart.1* | |
1c656cb4 | 236 | |
739996c8 JB |
237 | %files libs |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/libjack.so.*.*.* | |
dd3d2338 | 240 | %attr(755,root,root) %ghost %{_libdir}/libjack.so.0 |
57188eed ŁK |
241 | %attr(755,root,root) %{_libdir}/libjackserver.so.*.*.* |
242 | %attr(755,root,root) %ghost %{_libdir}/libjackserver.so.0 | |
739996c8 | 243 | |
1c656cb4 JB |
244 | %files devel |
245 | %defattr(644,root,root,755) | |
023795b8 | 246 | %attr(755,root,root) %{_libdir}/libjack.so |
e1bd1db0 | 247 | %attr(755,root,root) %{_libdir}/libjackserver.so |
1c656cb4 | 248 | %{_libdir}/libjack.la |
57188eed | 249 | %{_libdir}/libjackserver.la |
023795b8 | 250 | %{_includedir}/jack |
1c656cb4 | 251 | %{_pkgconfigdir}/jack.pc |
1c656cb4 | 252 | |
80de25ca | 253 | %if %{with static_libs} |
1c656cb4 JB |
254 | %files static |
255 | %defattr(644,root,root,755) | |
256 | %{_libdir}/libjack.a | |
57188eed | 257 | %{_libdir}/libjackserver.a |
80de25ca | 258 | %endif |
1c656cb4 | 259 | |
cdd9c438 MB |
260 | %if %{with apidocs} |
261 | %files apidocs | |
262 | %defattr(644,root,root,755) | |
263 | %{_gtkdocdir}/%{name} | |
264 | %endif | |
265 | ||
5e55e3af JB |
266 | %if %{with ffado} |
267 | %files driver-firewire | |
268 | %defattr(644,root,root,755) | |
269 | %attr(755,root,root) %{_libdir}/jack/jack_firewire.so | |
270 | %endif | |
271 | ||
cf5ed69c | 272 | %if %{with freebob} |
9bf22e57 JB |
273 | %files driver-freebob |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libdir}/jack/jack_freebob.so | |
cf5ed69c | 276 | %endif |