# # Conditional build: %bcond_without cap # don't use capabilities to get real-time priority (needs suid root binary) %bcond_without alsa # don't build ALSA driver %bcond_without posix_shm # don't use posix shm %bcond_without static_libs # don't build static libs # Summary: The JACK Audio Connection Kit Summary(pl): JACK - zestaw do połączeń audio Name: jack-audio-connection-kit Version: 0.100.0 Release: 1 License: LGPL v2.1+ (libjack), GPL v2+ (the rest) Group: Daemons Source0: http://dl.sourceforge.net/jackit/%{name}-%{version}.tar.gz # Source0-md5: dc28b3e8a663c090227e83be6fc1f2d4 Patch0: %{name}-optimized-cflags.patch URL: http://jackit.sourceforge.net/ %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0} BuildRequires: autoconf BuildRequires: automake BuildRequires: doxygen %{?with_cap:BuildRequires: libcap-devel} BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: readline-devel Obsoletes: jack-audio-connection-kit-driver-iec61883 Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description JACK is a low-latency audio server, written primarily for the Linux operating system. It can connect a number of different applications to an audio device, as well as allowing them to share audio between themselves. Its clients can run in their own processes (ie. as a normal application), or can they can run within a JACK server (ie. a "plugin"). JACK is different from other audio server efforts in that it has been designed from the ground up to be suitable for professional audio work. This means that it focuses on two key areas: synchronous execution of all clients, and low latency operation. %description -l pl JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie dźwięku pomiędzy siebie. Programy klienckie działają jako własne procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera JACK (jako wtyczki). JACK różni się od innych serwerów dźwięku tym, że został zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku. Oznacza to, że skupia się na dwóch rzeczach: synchronicznym wykonywaniu wszystkich klientów i małych opóźnieniach działania. %package devel Summary: Header files for JACK Summary(pl): JACK - pliki nagłówkowe License: LGPL Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel Header files for the JACK Audio Connection Kit. %description devel -l pl Pliki nagłówkowe dla zestawu do połączeń audio JACK. %package static Summary: Static JACK library Summary(pl): Statyczna biblioteka JACK License: LGPL Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static JACK library. %description static -l pl Statyczna biblioteka JACK. %package libs Summary: JACK library Summary(pl): Biblioteka JACK-a License: GPL Group: Libraries %description libs Shared JACK library. %description libs -l pl Biblioteka współdzielona JACK-a. %package driver-alsa Summary: ALSA driver for JACK Summary(pl): Sterownik ALSA dla JACK-a License: GPL Group: Libraries Requires: %{name} = %{version}-%{release} %description driver-alsa ALSA driver for JACK. %description driver-alsa -l pl Sterownik ALSA dla JACK-a. %package example-clients Summary: Example clients that use JACK Summary(pl): Przykładowe programy kliencie używające JACK-a License: GPL Group: Applications/Sound Requires: %{name} = %{version}-%{release} %description example-clients Small example clients that use the JACK Audio Connection Kit. %description example-clients -l pl Małe, przykładowe programy klienckie, które używają zestawu do połączeń audio JACK. %package example-jackrec Summary: Example JACK client: jackrec Summary(pl): Przykładowy klient zestawu JACK: jackrec License: GPL Group: Applications/Sound Requires: %{name} = %{version}-%{release} %description example-jackrec Example JACK client: jackrec. It's separated because it uses libsndfile library. %description example-jackrec Przykładowy klient zestawu JACK: jackrec. Jest wydzielony, ponieważ wymaga biblioteki libsndfile. %prep %setup -q %patch0 -p1 %build cp -f /usr/share/automake/config.sub config %{__libtoolize} %{__aclocal} -I config %{__autoheader} %{__automake} %{__autoconf} %configure \ %{?debug:--enable-debug} \ --disable-coreaudio \ --disable-oldtrans \ --disable-portaudio \ --enable-optimize \ --enable-oss \ %{!?with_alsa:--disable-alsa} \ %{?with_cap:--enable-capabilities %{!?debug:--enable-stripped-jackd}} \ --%{?with_posix_shm:en}%{!?with_posix_shm:dis}able-posix-shm \ %{?with_static_libs:--enable-static} \ %ifarch athlon pentium3 pentium4 amd64 --enable-mmx \ %else --disable-mmx \ %endif %ifarch pentium3 pentium4 amd64 --enable-sse \ %else --disable-sse \ %endif %ifarch ppc --enable-altivec \ %else --disable-altivec \ %endif --enable-shared \ --enable-static \ --enable-resize \ --enable-ensure-mlock \ --enable-timestamps \ --enable-preemption-check \ --with-html-dir=%{_gtkdocdir} \ --with-default-tmpdir=/tmp %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ HTML_DIR=%{_gtkdocdir} rm -f $RPM_BUILD_ROOT%{_libdir}/jack/*.{la,a} %clean rm -rf $RPM_BUILD_ROOT %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) # note: COPYING only specifies which parts fall under GPL and LGPL %doc AUTHORS TODO COPYING %{?with_cap:%attr(4755,root,root) %{_bindir}/jackstart} %attr(755,root,root) %{_bindir}/jackd %attr(755,root,root) %{_bindir}/jack_load %attr(755,root,root) %{_bindir}/jack_unload %dir %{_libdir}/jack %attr(755,root,root) %{_libdir}/jack/jack_dummy.so %attr(755,root,root) %{_libdir}/jack/jack_oss.so %{_mandir}/man1/* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libjack.so %{_libdir}/libjack.la %{_includedir}/jack %{_pkgconfigdir}/jack.pc %{_gtkdocdir}/* %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libjack.a %endif %files libs %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libjack.so.*.* %if %{with alsa} %files driver-alsa %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/jack/jack_alsa.so %endif %files example-clients %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/jack_bufsize %attr(755,root,root) %{_bindir}/jack_connect %attr(755,root,root) %{_bindir}/jack_disconnect %attr(755,root,root) %{_bindir}/jack_freewheel %attr(755,root,root) %{_bindir}/jack_impulse_grabber %attr(755,root,root) %{_bindir}/jack_lsp %attr(755,root,root) %{_bindir}/jack_metro %attr(755,root,root) %{_bindir}/jack_monitor_client %attr(755,root,root) %{_bindir}/jack_showtime %attr(755,root,root) %{_bindir}/jack_simple_client %attr(755,root,root) %{_bindir}/jack_transport %attr(755,root,root) %{_libdir}/jack/inprocess.so %attr(755,root,root) %{_libdir}/jack/intime.so %files example-jackrec %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/jackrec