]>
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 |
010408c1 | 7 | %bcond_without freebob # don't build freebob driver |
1c656cb4 | 8 | # |
778387a3 | 9 | Summary: The JACK Audio Connection Kit |
0069929a | 10 | Summary(pl.UTF-8): JACK - zestaw do połączeń audio |
1c656cb4 | 11 | Name: jack-audio-connection-kit |
010408c1 | 12 | Version: 0.103.0 |
cdd9c438 | 13 | Release: 2 |
89464d60 | 14 | License: LGPL v2.1+ (libjack), GPL v2+ (the rest) |
1c656cb4 | 15 | Group: Daemons |
0bf9a234 | 16 | Source0: http://dl.sourceforge.net/jackit/%{name}-%{version}.tar.gz |
010408c1 | 17 | # Source0-md5: 03a0f63b997ce7b83a1eeaa6b80f4388 |
89464d60 | 18 | Patch0: %{name}-optimized-cflags.patch |
09f0c418 | 19 | Patch1: %{name}-gcc4.patch |
9bf22e57 | 20 | Patch2: %{name}-readline.patch |
1c656cb4 | 21 | URL: http://jackit.sourceforge.net/ |
90bf4965 | 22 | BuildRequires: alsa-lib-devel >= 0.9.0 |
739996c8 | 23 | BuildRequires: autoconf >= 2.50 |
b7bfb55b | 24 | BuildRequires: automake |
cdd9c438 | 25 | %{?with_apidocs:BuildRequires: doxygen} |
74cff43a | 26 | %{?with_cap:BuildRequires: libcap-devel} |
cf5ed69c | 27 | %{?with_freebob:BuildRequires: libfreebob-devel >= 1.0.0} |
1c656cb4 | 28 | BuildRequires: libsndfile-devel >= 1.0.0 |
89464d60 | 29 | BuildRequires: libtool |
bb41d8ef | 30 | BuildRequires: pkgconfig |
37c04f05 | 31 | BuildRequires: readline-devel |
b0cf22dc | 32 | BuildRequires: rpmbuild(macros) >= 1.98 |
90bf4965 | 33 | Obsoletes: jack-audio-connection-kit-driver-alsa |
8a746c22 | 34 | Obsoletes: jack-audio-connection-kit-driver-iec61883 |
bf28afd4 | 35 | Requires: %{name}-libs = %{version}-%{release} |
1c656cb4 JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
739996c8 JB |
38 | %define specflags_ia32 -fomit-frame-pointer -ffast-math |
39 | %define specflags_pentium3 -mfpmath=sse | |
40 | %define specflags_pentium4 -mfpmath=sse | |
bc6bbde7 | 41 | %define specflags_x86_64 -ffast-math |
739996c8 | 42 | |
1c656cb4 JB |
43 | %description |
44 | JACK is a low-latency audio server, written primarily for the Linux | |
45 | operating system. It can connect a number of different applications to | |
46 | an audio device, as well as allowing them to share audio between | |
47 | themselves. Its clients can run in their own processes (ie. as a | |
48 | normal application), or can they can run within a JACK server (ie. a | |
49 | "plugin"). | |
50 | ||
51 | JACK is different from other audio server efforts in that it has been | |
52 | designed from the ground up to be suitable for professional audio | |
53 | work. This means that it focuses on two key areas: synchronous | |
54 | execution of all clients, and low latency operation. | |
55 | ||
d511aa56 JR |
56 | %description -l pl.UTF-8 |
57 | JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla | |
58 | systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych | |
59 | aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie | |
60 | dźwięku pomiędzy siebie. Programy klienckie działają jako własne | |
61 | procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera | |
1c656cb4 JB |
62 | JACK (jako wtyczki). |
63 | ||
d511aa56 JR |
64 | JACK różni się od innych serwerów dźwięku tym, że został |
65 | zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku. | |
66 | Oznacza to, że skupia się na dwóch rzeczach: synchronicznym | |
67 | wykonywaniu wszystkich klientów i małych opóźnieniach działania. | |
1c656cb4 | 68 | |
739996c8 JB |
69 | %package libs |
70 | Summary: JACK library | |
0069929a | 71 | Summary(pl.UTF-8): Biblioteka JACK-a |
739996c8 JB |
72 | License: LGPL |
73 | Group: Libraries | |
74 | Conflicts: jack-audio-connection-kit < 0.100.7 | |
75 | ||
76 | %description libs | |
77 | Shared JACK library. | |
78 | ||
d511aa56 JR |
79 | %description libs -l pl.UTF-8 |
80 | Biblioteka współdzielona JACK-a. | |
739996c8 | 81 | |
1c656cb4 | 82 | %package devel |
778387a3 | 83 | Summary: Header files for JACK |
0069929a | 84 | Summary(pl.UTF-8): JACK - pliki nagłówkowe |
bb41d8ef | 85 | License: LGPL |
1c656cb4 | 86 | Group: Development/Libraries |
bf28afd4 | 87 | Requires: %{name}-libs = %{version}-%{release} |
1c656cb4 JB |
88 | |
89 | %description devel | |
778387a3 | 90 | Header files for the JACK Audio Connection Kit. |
1c656cb4 | 91 | |
d511aa56 JR |
92 | %description devel -l pl.UTF-8 |
93 | Pliki nagłówkowe dla zestawu do połączeń audio JACK. | |
1c656cb4 JB |
94 | |
95 | %package static | |
778387a3 | 96 | Summary: Static JACK library |
0069929a | 97 | Summary(pl.UTF-8): Statyczna biblioteka JACK |
bb41d8ef | 98 | License: LGPL |
1c656cb4 | 99 | Group: Development/Libraries |
bb41d8ef | 100 | Requires: %{name}-devel = %{version}-%{release} |
1c656cb4 JB |
101 | |
102 | %description static | |
778387a3 | 103 | Static JACK library. |
1c656cb4 | 104 | |
d511aa56 | 105 | %description static -l pl.UTF-8 |
778387a3 | 106 | Statyczna biblioteka JACK. |
1c656cb4 | 107 | |
cdd9c438 MB |
108 | %package apidocs |
109 | Summary: JACK Audio Connection Kit API documentation | |
110 | Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit | |
111 | Group: Documentation | |
112 | Requires: gtk-doc-common | |
113 | ||
114 | %description apidocs | |
115 | JACK Audio Connection Kit API documentation. | |
116 | ||
117 | %description apidocs -l pl.UTF-8 | |
118 | Dokumentacja API JACK Audio Connection Kit. | |
119 | ||
9bf22e57 JB |
120 | %package driver-freebob |
121 | Summary: FreeBoB sound driver for JACK | |
0069929a | 122 | Summary(pl.UTF-8): Sterownik dźwięku FreeBoB dla JACK-a |
9bf22e57 JB |
123 | License: GPL |
124 | Group: Libraries | |
125 | Requires: %{name} = %{version}-%{release} | |
126 | ||
127 | %description driver-freebob | |
128 | FreeBoB (BeBoB platform) sound driver for JACK. | |
129 | ||
d511aa56 JR |
130 | %description driver-freebob -l pl.UTF-8 |
131 | Sterownik dźwięku FreeBoB (do platformy BeBoB) dla JACK-a. | |
9bf22e57 | 132 | |
1c656cb4 | 133 | %package example-clients |
778387a3 | 134 | Summary: Example clients that use JACK |
0069929a | 135 | Summary(pl.UTF-8): Przykładowe programy kliencie używające JACK-a |
bb41d8ef | 136 | License: GPL |
1c656cb4 | 137 | Group: Applications/Sound |
bb41d8ef | 138 | Requires: %{name} = %{version}-%{release} |
1c656cb4 JB |
139 | |
140 | %description example-clients | |
778387a3 | 141 | Small example clients that use the JACK Audio Connection Kit. |
1c656cb4 | 142 | |
d511aa56 JR |
143 | %description example-clients -l pl.UTF-8 |
144 | Małe, przykładowe programy klienckie, które używają zestawu do | |
145 | połączeń audio JACK. | |
1c656cb4 JB |
146 | |
147 | %package example-jackrec | |
778387a3 | 148 | Summary: Example JACK client: jackrec |
0069929a | 149 | Summary(pl.UTF-8): Przykładowy klient zestawu JACK: jackrec |
bb41d8ef | 150 | License: GPL |
1c656cb4 | 151 | Group: Applications/Sound |
bb41d8ef | 152 | Requires: %{name} = %{version}-%{release} |
1c656cb4 JB |
153 | |
154 | %description example-jackrec | |
778387a3 | 155 | Example JACK client: jackrec. It's separated because it uses |
1c656cb4 JB |
156 | libsndfile library. |
157 | ||
d511aa56 JR |
158 | %description example-jackrec -l pl.UTF-8 |
159 | Przykładowy klient zestawu JACK: jackrec. Jest wydzielony, ponieważ | |
1c656cb4 JB |
160 | wymaga biblioteki libsndfile. |
161 | ||
1c656cb4 JB |
162 | %prep |
163 | %setup -q | |
68679a6c | 164 | %patch0 -p1 |
09f0c418 | 165 | %patch1 -p1 |
9bf22e57 | 166 | %patch2 -p1 |
1c656cb4 JB |
167 | |
168 | %build | |
89464d60 | 169 | %{__libtoolize} |
170 | %{__aclocal} -I config | |
171 | %{__autoheader} | |
172 | %{__automake} | |
1c656cb4 | 173 | %{__autoconf} |
89464d60 | 174 | |
1c656cb4 | 175 | %configure \ |
80de25ca | 176 | %{?debug:--enable-debug} \ |
177 | --disable-coreaudio \ | |
010408c1 | 178 | %{!?with_freebob:--disable-freebob} \ |
89464d60 | 179 | --disable-oldtrans \ |
80de25ca | 180 | --disable-portaudio \ |
89464d60 | 181 | --enable-oss \ |
74cff43a | 182 | %{?with_cap:--enable-capabilities %{!?debug:--enable-stripped-jackd}} \ |
80de25ca | 183 | --%{?with_posix_shm:en}%{!?with_posix_shm:dis}able-posix-shm \ |
77ad9376 | 184 | %{?with_static_libs:--enable-static} \ |
032e71d4 | 185 | %ifarch athlon pentium3 pentium4 %{x8664} |
89464d60 | 186 | --enable-mmx \ |
187 | %else | |
188 | --disable-mmx \ | |
189 | %endif | |
032e71d4 | 190 | %ifarch pentium3 pentium4 %{x8664} |
89464d60 | 191 | --enable-sse \ |
192 | %else | |
193 | --disable-sse \ | |
194 | %endif | |
195 | %ifarch ppc | |
196 | --enable-altivec \ | |
197 | %else | |
198 | --disable-altivec \ | |
199 | %endif | |
89464d60 | 200 | --enable-ensure-mlock \ |
89464d60 | 201 | --enable-preemption-check \ |
739996c8 JB |
202 | --enable-resize \ |
203 | --enable-timestamps \ | |
204 | --with-default-tmpdir=/tmp \ | |
cdd9c438 | 205 | --with-html-dir=%{_gtkdocdir}/%{name} |
1c656cb4 JB |
206 | |
207 | %{__make} | |
208 | ||
209 | %install | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
212 | %{__make} install \ | |
213 | DESTDIR=$RPM_BUILD_ROOT \ | |
cdd9c438 MB |
214 | HTML_DIR=%{_gtkdocdir}/%{name} |
215 | ||
216 | %{?!with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
1c656cb4 | 217 | |
60ef980a JB |
218 | rm -f $RPM_BUILD_ROOT%{_libdir}/jack/*.{la,a} |
219 | ||
1c656cb4 JB |
220 | %clean |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
bf28afd4 | 223 | %post libs -p /sbin/ldconfig |
224 | %postun libs -p /sbin/ldconfig | |
1c656cb4 | 225 | |
851bfd45 JB |
226 | %if %{with posix_shm} |
227 | %verifyscript libs | |
228 | if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then | |
229 | echo "/dev/shm is not mounted, but JACK compiled with POSIX_SHM requires it" | |
230 | fi | |
231 | %endif | |
232 | ||
1c656cb4 JB |
233 | %files |
234 | %defattr(644,root,root,755) | |
235 | # note: COPYING only specifies which parts fall under GPL and LGPL | |
236 | %doc AUTHORS TODO COPYING | |
a501abec | 237 | %{?with_cap:%attr(4755,root,root) %{_bindir}/jackstart} |
1c656cb4 | 238 | %attr(755,root,root) %{_bindir}/jackd |
ddd36c25 AF |
239 | %attr(755,root,root) %{_bindir}/jack_load |
240 | %attr(755,root,root) %{_bindir}/jack_unload | |
1c656cb4 | 241 | %dir %{_libdir}/jack |
90bf4965 | 242 | %attr(755,root,root) %{_libdir}/jack/jack_alsa.so |
76df8802 | 243 | %attr(755,root,root) %{_libdir}/jack/jack_dummy.so |
bb41d8ef | 244 | %attr(755,root,root) %{_libdir}/jack/jack_oss.so |
e675caf6 | 245 | %{_mandir}/man1/* |
1c656cb4 | 246 | |
739996c8 JB |
247 | %files libs |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libjack.so.*.*.* | |
250 | ||
1c656cb4 JB |
251 | %files devel |
252 | %defattr(644,root,root,755) | |
023795b8 | 253 | %attr(755,root,root) %{_libdir}/libjack.so |
1c656cb4 | 254 | %{_libdir}/libjack.la |
023795b8 | 255 | %{_includedir}/jack |
1c656cb4 | 256 | %{_pkgconfigdir}/jack.pc |
1c656cb4 | 257 | |
80de25ca | 258 | %if %{with static_libs} |
1c656cb4 JB |
259 | %files static |
260 | %defattr(644,root,root,755) | |
261 | %{_libdir}/libjack.a | |
80de25ca | 262 | %endif |
1c656cb4 | 263 | |
cdd9c438 MB |
264 | %if %{with apidocs} |
265 | %files apidocs | |
266 | %defattr(644,root,root,755) | |
267 | %{_gtkdocdir}/%{name} | |
268 | %endif | |
269 | ||
cf5ed69c | 270 | %if %{with freebob} |
9bf22e57 JB |
271 | %files driver-freebob |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_libdir}/jack/jack_freebob.so | |
cf5ed69c | 274 | %endif |
9bf22e57 | 275 | |
1c656cb4 JB |
276 | %files example-clients |
277 | %defattr(644,root,root,755) | |
74cff43a | 278 | %attr(755,root,root) %{_bindir}/jack_bufsize |
1c656cb4 JB |
279 | %attr(755,root,root) %{_bindir}/jack_connect |
280 | %attr(755,root,root) %{_bindir}/jack_disconnect | |
74cff43a | 281 | %attr(755,root,root) %{_bindir}/jack_freewheel |
1c656cb4 | 282 | %attr(755,root,root) %{_bindir}/jack_impulse_grabber |
0ee66f54 | 283 | %attr(755,root,root) %{_bindir}/jack_lsp |
284 | %attr(755,root,root) %{_bindir}/jack_metro | |
9bf22e57 JB |
285 | %attr(755,root,root) %{_bindir}/jack_midiseq |
286 | %attr(755,root,root) %{_bindir}/jack_midisine | |
1c656cb4 | 287 | %attr(755,root,root) %{_bindir}/jack_monitor_client |
0ee66f54 | 288 | %attr(755,root,root) %{_bindir}/jack_showtime |
1c656cb4 | 289 | %attr(755,root,root) %{_bindir}/jack_simple_client |
1f638f5d | 290 | %attr(755,root,root) %{_bindir}/jack_transport |
023795b8 | 291 | %attr(755,root,root) %{_libdir}/jack/inprocess.so |
76df8802 | 292 | %attr(755,root,root) %{_libdir}/jack/intime.so |
1c656cb4 JB |
293 | |
294 | %files example-jackrec | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_bindir}/jackrec |