]>
Commit | Line | Data |
---|---|---|
021c3232 | 1 | # TODO: --iio (BR: gtkIOStream >= 1.4.0, eigen3 >= 3.1.2) |
1c656cb4 JB |
2 | # |
3 | # Conditional build: | |
3fcd3481 JB |
4 | %bcond_without apidocs # Doxygen docs |
5 | %bcond_without ffado # firewire (FFADO) driver | |
69ca5e61 | 6 | %bcond_with classic # build also classic jackd server (see http://trac.jackaudio.org/wiki/JackDbusPackaging) |
0157defb | 7 | |
778387a3 | 8 | Summary: The JACK Audio Connection Kit |
0069929a | 9 | Summary(pl.UTF-8): JACK - zestaw do połączeń audio |
1c656cb4 | 10 | Name: jack-audio-connection-kit |
ba4090da | 11 | Version: 1.9.22 |
82feef82 | 12 | Release: 1 |
89464d60 | 13 | License: LGPL v2.1+ (libjack), GPL v2+ (the rest) |
1c656cb4 | 14 | Group: Daemons |
82feef82 | 15 | #Source0Download: https://jackaudio.org/downloads/ |
3fcd3481 JB |
16 | #Source0: https://github.com/jackaudio/jack2/releases/download/v%{version}/jack2-%{version}.tar.gz |
17 | Source0: https://github.com/jackaudio/jack2/archive/v%{version}/jack2-%{version}.tar.gz | |
ba4090da | 18 | # Source0-md5: e57c8ad3de75f78b6eb7aacea4e25755 |
82feef82 | 19 | URL: https://jackaudio.org/ |
4ce9074d | 20 | BuildRequires: alsa-lib-devel >= 1.0.18 |
e7ac5016 | 21 | BuildRequires: celt-devel >= 0.11.0 |
4ce9074d | 22 | BuildRequires: dbus-devel >= 1.0.0 |
cdd9c438 | 23 | %{?with_apidocs:BuildRequires: doxygen} |
4ce9074d JB |
24 | BuildRequires: expat-devel |
25 | %{?with_ffado:BuildRequires: libffado-devel >= 1.999.17} | |
020e10fa | 26 | BuildRequires: libsamplerate-devel |
4ce9074d | 27 | BuildRequires: libstdc++-devel |
bb41d8ef | 28 | BuildRequires: pkgconfig |
ba4090da | 29 | BuildRequires: rpm-build >= 4.6 |
021c3232 | 30 | BuildRequires: rpmbuild(macros) >= 1.752 |
e7ac5016 JB |
31 | # with opus_custom interface |
32 | BuildRequires: opus-devel >= 1.0.3-2 | |
4bd65e6d | 33 | %{?with_apidocs:BuildRequires: texlive-pdftex} |
020e10fa | 34 | Requires: %{name}-libs = %{version}-%{release} |
98111ea0 | 35 | Requires: alsa-lib >= 1.0.18 |
7f2d1ef3 JB |
36 | Obsoletes: jack-audio-connection-kit-driver-alsa < 0.101.1-2 |
37 | Obsoletes: jack-audio-connection-kit-driver-iec61883 < 0.99.0 | |
ba4090da | 38 | Obsoletes: jack-audio-connection-kit-example-jackrec < 1.9.22 |
7f2d1ef3 | 39 | Obsoletes: jack-audio-connection-kit-static < 1.9.7 |
1c656cb4 JB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
1c656cb4 JB |
42 | %description |
43 | JACK is a low-latency audio server, written primarily for the Linux | |
44 | operating system. It can connect a number of different applications to | |
45 | an audio device, as well as allowing them to share audio between | |
46 | themselves. Its clients can run in their own processes (ie. as a | |
47 | normal application), or can they can run within a JACK server (ie. a | |
48 | "plugin"). | |
49 | ||
50 | JACK is different from other audio server efforts in that it has been | |
51 | designed from the ground up to be suitable for professional audio | |
52 | work. This means that it focuses on two key areas: synchronous | |
53 | execution of all clients, and low latency operation. | |
54 | ||
d511aa56 JR |
55 | %description -l pl.UTF-8 |
56 | JACK to serwer dźwięku o małych opóźnieniach, napisany głównie dla | |
57 | systemu operacyjnego Linux. Może przyjąć połączenia od wielu różnych | |
58 | aplikacji do urządzenia dźwiękowego, a także pozwolić im na dzielenie | |
59 | dźwięku pomiędzy siebie. Programy klienckie działają jako własne | |
60 | procesy (tzn. normalne aplikacje) lub mogą działać wewnątrz serwera | |
1c656cb4 JB |
61 | JACK (jako wtyczki). |
62 | ||
d511aa56 JR |
63 | JACK różni się od innych serwerów dźwięku tym, że został |
64 | zaprojektowany od początku z myślą o profesjonalnej obróbce dźwięku. | |
65 | Oznacza to, że skupia się na dwóch rzeczach: synchronicznym | |
66 | wykonywaniu wszystkich klientów i małych opóźnieniach działania. | |
1c656cb4 | 67 | |
739996c8 JB |
68 | %package libs |
69 | Summary: JACK library | |
0069929a | 70 | Summary(pl.UTF-8): Biblioteka JACK-a |
e1bd1db0 | 71 | License: LGPL v2.1+ |
739996c8 | 72 | Group: Libraries |
e7ac5016 | 73 | Requires: celt >= 0.11.0 |
98111ea0 | 74 | Requires: dbus-libs >= 1.0.0 |
e7ac5016 | 75 | Requires: opus >= 1.0.3-2 |
739996c8 JB |
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 | 96 | |
cdd9c438 MB |
97 | %package apidocs |
98 | Summary: JACK Audio Connection Kit API documentation | |
99 | Summary(pl.UTF-8): Dokumentacja API JACK Audio Connection Kit | |
100 | Group: Documentation | |
101 | Requires: gtk-doc-common | |
093189e5 | 102 | BuildArch: noarch |
cdd9c438 MB |
103 | |
104 | %description apidocs | |
105 | JACK Audio Connection Kit API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API JACK Audio Connection Kit. | |
109 | ||
0dcae788 JR |
110 | %package driver-firewire |
111 | Summary: FireWire (FFADO) sound driver for JACK | |
112 | Summary(pl.UTF-8): Sterownik dźwięku FireWire (FFADO) dla JACK-a | |
113 | License: GPL v2+ | |
114 | Group: Libraries | |
115 | Requires: %{name} = %{version}-%{release} | |
4ce9074d | 116 | Requires: libffado >= 1.999.17 |
3fcd3481 | 117 | Obsoletes: jack-driver-freebob < 1.9.13 |
0dcae788 JR |
118 | |
119 | %description driver-firewire | |
120 | FireWire (FFADO) sound driver for JACK. | |
121 | ||
122 | %description driver-firewire -l pl.UTF-8 | |
123 | Sterownik dźwięku FireWire (FFADO) dla JACK-a. | |
124 | ||
1c656cb4 | 125 | %prep |
a312c01c | 126 | %setup -q -n jack2-%{version} |
1c656cb4 JB |
127 | |
128 | %build | |
69ca5e61 JR |
129 | export CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
130 | export CXXFLAGS="%{rpmcxxflags} -I/usr/include/ncurses" | |
131 | export CPPFLAGS="%{rpmcxxflags} -I/usr/include/ncurses" | |
132 | export LINKFLAGS="%{rpmldflags}" | |
133 | ||
75582698 | 134 | ./waf configure -j1 \ |
69ca5e61 JR |
135 | -v \ |
136 | %{?debug:--debug} \ | |
137 | --prefix=%{_prefix} \ | |
e7ac5016 | 138 | --libdir=%{_libdir} \ |
a312c01c | 139 | --htmldir=%{_gtkdocdir}/%{name}/reference \ |
e7ac5016 | 140 | --alsa \ |
69ca5e61 | 141 | %{?with_classic:--classic} \ |
e7ac5016 | 142 | --dbus \ |
69ca5e61 | 143 | %{?with_apidocs:--doxygen} \ |
ba4090da | 144 | %{?with_ffado:--firewire} |
69ca5e61 JR |
145 | |
146 | ./waf build %{?_smp_mflags} -v | |
1c656cb4 JB |
147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
69ca5e61 JR |
151 | ./waf install \ |
152 | --destdir=$RPM_BUILD_ROOT | |
cdd9c438 | 153 | |
7e8e4d6e | 154 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
1c656cb4 | 155 | |
98111ea0 | 156 | # not built or packaged |
ba4090da JB |
157 | %if %{without classic} |
158 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/jackd.1 | |
159 | %endif | |
98111ea0 | 160 | |
e718df3f MB |
161 | # fix perms (needed for autorequires/provides) |
162 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
163 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/jack/*.so | |
164 | ||
1c656cb4 JB |
165 | %clean |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
bf28afd4 | 168 | %post libs -p /sbin/ldconfig |
169 | %postun libs -p /sbin/ldconfig | |
1c656cb4 | 170 | |
851bfd45 JB |
171 | %verifyscript libs |
172 | if ! grep -q -s '^[^ ]* /dev/shm tmpfs ' /proc/mounts ; then | |
69ca5e61 | 173 | echo "/dev/shm is not mounted, but JACK requires it" |
851bfd45 | 174 | fi |
851bfd45 | 175 | |
1c656cb4 JB |
176 | %files |
177 | %defattr(644,root,root,755) | |
3fcd3481 | 178 | %doc AUTHORS.rst ChangeLog.rst README* |
69ca5e61 | 179 | %attr(755,root,root) %{_bindir}/jack_control |
69ca5e61 JR |
180 | %{?with_classic:%attr(755,root,root) %{_bindir}/jackd} |
181 | %attr(755,root,root) %{_bindir}/jackdbus | |
1c656cb4 | 182 | %dir %{_libdir}/jack |
69ca5e61 | 183 | %attr(755,root,root) %{_libdir}/jack/audioadapter.so |
90bf4965 | 184 | %attr(755,root,root) %{_libdir}/jack/jack_alsa.so |
98111ea0 | 185 | %attr(755,root,root) %{_libdir}/jack/jack_alsarawmidi.so |
76df8802 | 186 | %attr(755,root,root) %{_libdir}/jack/jack_dummy.so |
69ca5e61 JR |
187 | %attr(755,root,root) %{_libdir}/jack/jack_loopback.so |
188 | %attr(755,root,root) %{_libdir}/jack/jack_netone.so | |
57188eed | 189 | %attr(755,root,root) %{_libdir}/jack/jack_net.so |
a312c01c | 190 | %attr(755,root,root) %{_libdir}/jack/jack_proxy.so |
69ca5e61 JR |
191 | %attr(755,root,root) %{_libdir}/jack/netadapter.so |
192 | %attr(755,root,root) %{_libdir}/jack/netmanager.so | |
193 | %attr(755,root,root) %{_libdir}/jack/profiler.so | |
194 | %{_datadir}/dbus-1/services/org.jackaudio.service | |
195 | %{?with_classic:%{_mandir}/man1/jackd.1*} | |
1c656cb4 | 196 | |
739996c8 JB |
197 | %files libs |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/libjack.so.*.*.* | |
dd3d2338 | 200 | %attr(755,root,root) %ghost %{_libdir}/libjack.so.0 |
98111ea0 JB |
201 | %attr(755,root,root) %{_libdir}/libjacknet.so.*.*.* |
202 | %attr(755,root,root) %ghost %{_libdir}/libjacknet.so.0 | |
57188eed ŁK |
203 | %attr(755,root,root) %{_libdir}/libjackserver.so.*.*.* |
204 | %attr(755,root,root) %ghost %{_libdir}/libjackserver.so.0 | |
739996c8 | 205 | |
1c656cb4 JB |
206 | %files devel |
207 | %defattr(644,root,root,755) | |
023795b8 | 208 | %attr(755,root,root) %{_libdir}/libjack.so |
98111ea0 | 209 | %attr(755,root,root) %{_libdir}/libjacknet.so |
e1bd1db0 | 210 | %attr(755,root,root) %{_libdir}/libjackserver.so |
023795b8 | 211 | %{_includedir}/jack |
1c656cb4 | 212 | %{_pkgconfigdir}/jack.pc |
1c656cb4 | 213 | |
cdd9c438 MB |
214 | %if %{with apidocs} |
215 | %files apidocs | |
216 | %defattr(644,root,root,755) | |
217 | %{_gtkdocdir}/%{name} | |
218 | %endif | |
219 | ||
4ce9074d | 220 | %if %{with ffado} |
0dcae788 JR |
221 | %files driver-firewire |
222 | %defattr(644,root,root,755) | |
223 | %attr(755,root,root) %{_libdir}/jack/jack_firewire.so | |
224 | %endif |