]> git.pld-linux.org Git - packages/jack-audio-connection-kit.git/blame - jack-audio-connection-kit.spec
- added apidocs bcond and subpackage
[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
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 9Summary: The JACK Audio Connection Kit
0069929a 10Summary(pl.UTF-8): JACK - zestaw do połączeń audio
1c656cb4 11Name: jack-audio-connection-kit
010408c1 12Version: 0.103.0
cdd9c438 13Release: 2
89464d60 14License: LGPL v2.1+ (libjack), GPL v2+ (the rest)
1c656cb4 15Group: Daemons
0bf9a234 16Source0: http://dl.sourceforge.net/jackit/%{name}-%{version}.tar.gz
010408c1 17# Source0-md5: 03a0f63b997ce7b83a1eeaa6b80f4388
89464d60 18Patch0: %{name}-optimized-cflags.patch
09f0c418 19Patch1: %{name}-gcc4.patch
9bf22e57 20Patch2: %{name}-readline.patch
1c656cb4 21URL: http://jackit.sourceforge.net/
90bf4965 22BuildRequires: alsa-lib-devel >= 0.9.0
739996c8 23BuildRequires: autoconf >= 2.50
b7bfb55b 24BuildRequires: 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 28BuildRequires: libsndfile-devel >= 1.0.0
89464d60 29BuildRequires: libtool
bb41d8ef 30BuildRequires: pkgconfig
37c04f05 31BuildRequires: readline-devel
b0cf22dc 32BuildRequires: rpmbuild(macros) >= 1.98
90bf4965 33Obsoletes: jack-audio-connection-kit-driver-alsa
8a746c22 34Obsoletes: jack-audio-connection-kit-driver-iec61883
bf28afd4 35Requires: %{name}-libs = %{version}-%{release}
1c656cb4
JB
36BuildRoot: %{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
44JACK is a low-latency audio server, written primarily for the Linux
45operating system. It can connect a number of different applications to
46an audio device, as well as allowing them to share audio between
47themselves. Its clients can run in their own processes (ie. as a
48normal application), or can they can run within a JACK server (ie. a
49"plugin").
50
51JACK is different from other audio server efforts in that it has been
52designed from the ground up to be suitable for professional audio
53work. This means that it focuses on two key areas: synchronous
54execution of all clients, and low latency operation.
55
d511aa56
JR
56%description -l pl.UTF-8
57JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla
58systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych
59aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie
60dźwięku pomiędzy siebie. Programy klienckie działają jako własne
61procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera
1c656cb4
JB
62JACK (jako wtyczki).
63
d511aa56
JR
64JACK różni się od innych serwerów dźwięku tym, że został
65zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku.
66Oznacza to, że skupia się na dwóch rzeczach: synchronicznym
67wykonywaniu wszystkich klientów i małych opóźnieniach działania.
1c656cb4 68
739996c8
JB
69%package libs
70Summary: JACK library
0069929a 71Summary(pl.UTF-8): Biblioteka JACK-a
739996c8
JB
72License: LGPL
73Group: Libraries
74Conflicts: jack-audio-connection-kit < 0.100.7
75
76%description libs
77Shared JACK library.
78
d511aa56
JR
79%description libs -l pl.UTF-8
80Biblioteka współdzielona JACK-a.
739996c8 81
1c656cb4 82%package devel
778387a3 83Summary: Header files for JACK
0069929a 84Summary(pl.UTF-8): JACK - pliki nagłówkowe
bb41d8ef 85License: LGPL
1c656cb4 86Group: Development/Libraries
bf28afd4 87Requires: %{name}-libs = %{version}-%{release}
1c656cb4
JB
88
89%description devel
778387a3 90Header files for the JACK Audio Connection Kit.
1c656cb4 91
d511aa56
JR
92%description devel -l pl.UTF-8
93Pliki nagłówkowe dla zestawu do połączeń audio JACK.
1c656cb4
JB
94
95%package static
778387a3 96Summary: Static JACK library
0069929a 97Summary(pl.UTF-8): Statyczna biblioteka JACK
bb41d8ef 98License: LGPL
1c656cb4 99Group: Development/Libraries
bb41d8ef 100Requires: %{name}-devel = %{version}-%{release}
1c656cb4
JB
101
102%description static
778387a3 103Static JACK library.
1c656cb4 104
d511aa56 105%description static -l pl.UTF-8
778387a3 106Statyczna biblioteka JACK.
1c656cb4 107
cdd9c438
MB
108%package apidocs
109Summary: JACK Audio Connection Kit API documentation
110Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit
111Group: Documentation
112Requires: gtk-doc-common
113
114%description apidocs
115JACK Audio Connection Kit API documentation.
116
117%description apidocs -l pl.UTF-8
118Dokumentacja API JACK Audio Connection Kit.
119
9bf22e57
JB
120%package driver-freebob
121Summary: FreeBoB sound driver for JACK
0069929a 122Summary(pl.UTF-8): Sterownik dźwięku FreeBoB dla JACK-a
9bf22e57
JB
123License: GPL
124Group: Libraries
125Requires: %{name} = %{version}-%{release}
126
127%description driver-freebob
128FreeBoB (BeBoB platform) sound driver for JACK.
129
d511aa56
JR
130%description driver-freebob -l pl.UTF-8
131Sterownik dźwięku FreeBoB (do platformy BeBoB) dla JACK-a.
9bf22e57 132
1c656cb4 133%package example-clients
778387a3 134Summary: Example clients that use JACK
0069929a 135Summary(pl.UTF-8): Przykładowe programy kliencie używające JACK-a
bb41d8ef 136License: GPL
1c656cb4 137Group: Applications/Sound
bb41d8ef 138Requires: %{name} = %{version}-%{release}
1c656cb4
JB
139
140%description example-clients
778387a3 141Small example clients that use the JACK Audio Connection Kit.
1c656cb4 142
d511aa56
JR
143%description example-clients -l pl.UTF-8
144Małe, przykładowe programy klienckie, które używają zestawu do
145połączeń audio JACK.
1c656cb4
JB
146
147%package example-jackrec
778387a3 148Summary: Example JACK client: jackrec
0069929a 149Summary(pl.UTF-8): Przykładowy klient zestawu JACK: jackrec
bb41d8ef 150License: GPL
1c656cb4 151Group: Applications/Sound
bb41d8ef 152Requires: %{name} = %{version}-%{release}
1c656cb4
JB
153
154%description example-jackrec
778387a3 155Example JACK client: jackrec. It's separated because it uses
1c656cb4
JB
156libsndfile library.
157
d511aa56
JR
158%description example-jackrec -l pl.UTF-8
159Przykładowy klient zestawu JACK: jackrec. Jest wydzielony, ponieważ
1c656cb4
JB
160wymaga 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
210rm -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
218rm -f $RPM_BUILD_ROOT%{_libdir}/jack/*.{la,a}
219
1c656cb4
JB
220%clean
221rm -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
228if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then
229 echo "/dev/shm is not mounted, but JACK compiled with POSIX_SHM requires it"
230fi
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
This page took 0.110251 seconds and 4 git commands to generate.