1 |
colin |
559066 |
%define fullgit 2747c961015ba00ec9a1cad8a8a95b4a34db9ee0 |
2 |
fwang |
599292 |
%define git 0 |
3 |
ghibo |
1076241 |
%define rel 4 |
4 |
colin |
214 |
%if %{git} |
5 |
colin |
955534 |
%define release %mkrel 0.%{git}.%rel |
6 |
colin |
214 |
%else |
7 |
colin |
955534 |
%define release %mkrel %rel |
8 |
colin |
214 |
%endif |
9 |
|
|
|
10 |
colin |
51778 |
%define bootstrap 0 |
11 |
colin |
214 |
%{?_without_bootstrap: %global bootstrap 0} |
12 |
|
|
%{?_with_bootstrap: %global bootstrap 1} |
13 |
|
|
|
14 |
|
|
# (cg) Lennart has introduced a circular dependancy in the libraries |
15 |
|
|
# libpulse requires libpulsecommon but libpulsecommon requires libpulse. |
16 |
|
|
# This breaks no-undefined. |
17 |
|
|
# Further issues in some test apps (maybe more) require that disabling |
18 |
|
|
# as-needed is also required. |
19 |
|
|
%define _disable_ld_no_undefined 1 |
20 |
tv |
677387 |
%global __requires_exclude devel\\(libpulsecommon |
21 |
colin |
214 |
|
22 |
|
|
# Majors |
23 |
|
|
%define major 0 |
24 |
|
|
%define zeroconfmajor 0 |
25 |
|
|
%define glib2major 0 |
26 |
luigiwalser |
1048260 |
%define apiver 9.0 |
27 |
colin |
214 |
|
28 |
|
|
# Library names |
29 |
|
|
%define libname %mklibname %{name} %{major} |
30 |
|
|
%define libname_devel %mklibname -d %{name} |
31 |
|
|
|
32 |
|
|
%define glib2libname %mklibname pulseglib2 %{glib2major} |
33 |
|
|
|
34 |
colin |
223043 |
# API libs (not real shared libs - mostly private but needed by other libs and server) |
35 |
|
|
%define corelibname %mklibname pulsecore %{apiver} |
36 |
|
|
%define commonlibname %mklibname pulsecommon %{apiver} |
37 |
colin |
214 |
|
38 |
colin |
223043 |
|
39 |
colin |
214 |
Summary: Sound server for Linux |
40 |
ovitters |
648084 |
Name: pulseaudio |
41 |
luigiwalser |
1048260 |
Version: 9.0 |
42 |
colin |
214 |
Release: %{release} |
43 |
|
|
%if %{git} |
44 |
colin |
149319 |
Source0: %{name}-%{version}-%{fullgit}.tar.xz |
45 |
colin |
214 |
%else |
46 |
colin |
227360 |
Source0: http://freedesktop.org/software/pulseaudio/releases/%{name}-%{version}.tar.xz |
47 |
colin |
214 |
%endif |
48 |
|
|
Source1: %{name}.sysconfig |
49 |
|
|
Source2: %{name}.xinit |
50 |
|
|
# (cg) We have to ship an esd.conf file with auto_spawn=0 to stop |
51 |
|
|
# libesound from.... you guessed it... auto spawning. |
52 |
|
|
Source3: esd.conf |
53 |
|
|
Source4: %{name}.svg |
54 |
|
|
|
55 |
|
|
# (cg) Using git to manage patches |
56 |
|
|
# To recreate the structure |
57 |
|
|
# git clone git://git.0pointer.de/pulseaudio |
58 |
colin |
155080 |
# git checkout v1.0 |
59 |
|
|
# git checkout -b mdv-1.x-cherry-picks |
60 |
colin |
214 |
# git am 00*.patch |
61 |
colin |
155080 |
# git checkout -b mga-1.x-patches |
62 |
colin |
214 |
# git am 05*.patch |
63 |
|
|
|
64 |
|
|
# To apply new custom patches |
65 |
colin |
155080 |
# git checkout mga-1.x-patches |
66 |
colin |
214 |
# (do stuff) |
67 |
|
|
|
68 |
|
|
# To apply new cherry-picks |
69 |
colin |
155080 |
# git checkout mdv-1.x-cherry-picks |
70 |
colin |
214 |
# git cherry-pick <blah> |
71 |
colin |
155080 |
# git checkout mga-1.x-patches |
72 |
|
|
# git rebase mdv-1.x-cherry-picks |
73 |
colin |
214 |
|
74 |
|
|
# Stable Branch Patches |
75 |
colin |
155080 |
# git format-patch --start-number 100 v1.0..stable-1.x |
76 |
colin |
214 |
|
77 |
colin |
791791 |
# Mageia Patches |
78 |
colin |
155080 |
# git format-patch --start-number 500 table-1.x..mga-1.x-patches |
79 |
colin |
791791 |
Patch500: 0500-Some-customisations-to-esdcompat-in-order-to-adhere-.patch |
80 |
|
|
Patch501: 0501-launch-Customise-systemd-socket-for-Mageia-sound-pro.patch |
81 |
colin |
852733 |
Patch502: 0502-Revert-Revert-launch-Disable-autospawn-by-default-wh.patch |
82 |
colin |
214 |
|
83 |
blino |
879876 |
# AirPlay2/RAOP2 Patches |
84 |
|
|
# See http://hfujita.github.io/pulseaudio-raop2/ |
85 |
|
|
# Patchset rebased on v6.0 in https://github.com/blino/pulseaudio-raop2/tree/blino/raop2-v2-v6.0 |
86 |
|
|
# Patches on pulsecore, generated this way: |
87 |
|
|
# i=600; for r in $(git rev-list v6.0.. src/pulsecore/); do : $((i=i+1)); git format-patch --start-number=$i $r -1; done |
88 |
|
|
Patch601: 0601-raop-Add-pulsecore-core-utils-a-pa_str_in_list-funct.patch |
89 |
|
|
Patch602: 0602-Support-IPv6-address-in-pa_socket_client_new_string.patch |
90 |
|
|
Patch603: 0603-parseaddr-Add-new-call-pa_is_ip6_address.patch |
91 |
|
|
# RTP patch, generated this way: |
92 |
|
|
# git diff v6.0.. -- src/modules/rtp/ |
93 |
|
|
Patch604: 0604-raop2-modules-rtp.patch |
94 |
|
|
# RAOP patch, generated this way: |
95 |
|
|
# git diff v6.0.. -- src/Makefile.am src/modules/raop/ |
96 |
|
|
Patch605: 0605-raop2-modules-raop.patch |
97 |
|
|
|
98 |
colin |
214 |
# Airtunes links to OpenSSL which is BSD-like and should be reflected here |
99 |
|
|
License: LGPL and BSD-like |
100 |
colin |
298651 |
Group: Sound/Mixers |
101 |
colin |
214 |
Url: http://pulseaudio.org/ |
102 |
tv |
900327 |
BuildRequires: pkgconfig(glib-2.0) |
103 |
|
|
BuildRequires: pkgconfig(libcap) |
104 |
|
|
BuildRequires: pkgconfig(sndfile) |
105 |
|
|
BuildRequires: pkgconfig(samplerate) |
106 |
|
|
BuildRequires: pkgconfig(alsa) |
107 |
|
|
BuildRequires: pkgconfig(avahi-client) |
108 |
|
|
BuildRequires: pkgconfig(gconf-2.0) |
109 |
colin |
214 |
BuildRequires: libwrap-devel |
110 |
colin |
437146 |
BuildRequires: pkgconfig(x11) |
111 |
|
|
BuildRequires: pkgconfig(x11-xcb) |
112 |
|
|
BuildRequires: pkgconfig(xcb) |
113 |
|
|
BuildRequires: pkgconfig(xcb-util) |
114 |
|
|
BuildRequires: pkgconfig(ice) |
115 |
|
|
BuildRequires: pkgconfig(sm) |
116 |
|
|
BuildRequires: pkgconfig(xtst) |
117 |
colin |
883009 |
BuildRequires: pkgconfig(bash-completion) |
118 |
tv |
900327 |
BuildRequires: pkgconfig(libudev) |
119 |
colin |
214 |
#gw libtool dep: |
120 |
tv |
900327 |
BuildRequires: pkgconfig(dbus-glib-1) |
121 |
colin |
214 |
BuildRequires: doxygen |
122 |
|
|
BuildRequires: automake1.8 |
123 |
|
|
BuildRequires: libltdl-devel |
124 |
tv |
900327 |
BuildRequires: pkgconfig(atomic_ops) |
125 |
colin |
214 |
BuildRequires: gettext-devel |
126 |
tv |
900327 |
BuildRequires: pkgconfig(jack) |
127 |
|
|
BuildRequires: pkgconfig(liblircclient0) |
128 |
colin |
214 |
%if !%bootstrap |
129 |
tv |
900327 |
BuildRequires: pkgconfig(bluez) |
130 |
colin |
214 |
%endif |
131 |
tv |
900327 |
BuildRequires: pkgconfig(tdb) |
132 |
|
|
BuildRequires: pkgconfig(speex) |
133 |
colin |
214 |
# (cg) Needed for airtunes |
134 |
tv |
900327 |
BuildRequires: pkgconfig(libssl) |
135 |
|
|
BuildRequires: pkgconfig(polkit-agent-1) |
136 |
|
|
BuildRequires: pkgconfig(libasyncns) |
137 |
colin |
214 |
BuildRequires: intltool |
138 |
|
|
BuildRequires: imagemagick |
139 |
tv |
900327 |
BuildRequires: pkgconfig(json-c) |
140 |
|
|
BuildRequires: pkgconfig(orc-0.4) |
141 |
|
|
BuildRequires: pkgconfig(fftw3) |
142 |
tv |
900328 |
%ifarch %{ix86} x86_64 |
143 |
colin |
223043 |
BuildRequires: xen-devel |
144 |
rtp |
304289 |
%endif |
145 |
colin |
307279 |
BuildRequires: pkgconfig(webrtc-audio-processing) |
146 |
colin |
330111 |
BuildRequires: pkgconfig(sbc) |
147 |
colin |
214 |
|
148 |
|
|
Provides: polypaudio |
149 |
|
|
Obsoletes: polypaudio |
150 |
|
|
# (cg) This is for the backport of 0.9.7 to 2008 |
151 |
|
|
# pulseaudio fails when using older versions of libtool |
152 |
|
|
Requires: libltdl >= 1.5.24 |
153 |
|
|
# (cg) Just incase people backport, require specific udev |
154 |
|
|
Requires: udev >= 143 |
155 |
|
|
Requires: rtkit |
156 |
|
|
Requires(post): ccp |
157 |
|
|
# (cg) When upgrading from pa < 0.9.7-1 things break due to spec restructure |
158 |
|
|
Conflicts: %{libname} < 0.9.7-2 |
159 |
|
|
|
160 |
|
|
%description |
161 |
|
|
pulseaudio is a sound server for Linux and other Unix like operating |
162 |
|
|
systems. It is intended to be an improved drop-in replacement for the |
163 |
|
|
Enlightened Sound Daemon (EsounD). In addition to the features EsounD |
164 |
|
|
provides pulseaudio has: |
165 |
|
|
* Extensible plugin architecture (by loading dynamic loadable |
166 |
|
|
modules with dlopen()) |
167 |
|
|
* Support for more than one sink/source |
168 |
|
|
* Better low latency behaviour |
169 |
|
|
* Embedabble into other software (the core is available as C |
170 |
|
|
library) |
171 |
|
|
* Completely asynchronous C API |
172 |
|
|
* Simple command line interface for reconfiguring the daemon while |
173 |
|
|
running |
174 |
|
|
* Flexible, implicit sample type conversion and resampling |
175 |
|
|
* "Zero-Copy" architecture |
176 |
|
|
* Module autoloading |
177 |
|
|
* Very accurate latency measurement for playback and recording. |
178 |
|
|
* May be used to combine multiple sound cards to one (with sample |
179 |
|
|
rate adjustment) |
180 |
|
|
* Client side latency interpolation |
181 |
|
|
|
182 |
|
|
%post |
183 |
|
|
ccp -i -d --set NoOrphans --oldfile %{_sysconfdir}/pulse/daemon.conf --newfile %{_sysconfdir}/pulse/daemon.conf.rpmnew |
184 |
colin |
223043 |
# (cg) For upgrade between 1.x -> 2.x |
185 |
colin |
288289 |
if grep -q module-cork-music-on-phone %{_sysconfdir}/pulse/default.pa; then |
186 |
colin |
223043 |
sed -i 's/module-cork-music-on-phone/module-role-cork/' %{_sysconfdir}/pulse/default.pa |
187 |
|
|
fi |
188 |
colin |
214 |
|
189 |
|
|
|
190 |
|
|
%package -n %{libname} |
191 |
|
|
Summary: Libraries for PulseAudio clients |
192 |
|
|
Group: System/Libraries |
193 |
|
|
Requires: %{name}-client-config |
194 |
tv |
676140 |
Recommends: %{mklibname alsa-plugins}-pulseaudio |
195 |
colin |
214 |
%ifarch x86_64 |
196 |
|
|
# (cg) Suggest the 32 bit library on 64 bits to ensure compatibility |
197 |
|
|
# with (typically closed source) 32 bit apps. |
198 |
tv |
676140 |
Recommends: lib%{name}%{major} |
199 |
colin |
214 |
%endif |
200 |
colin |
223043 |
# (cg) Deprecated in PA 1.0 - Make upgrade smoother :) |
201 |
|
|
Obsoletes: %mklibname pulsezeroconf 0 |
202 |
colin |
214 |
|
203 |
|
|
%description -n %{libname} |
204 |
|
|
This package contains the runtime libraries for any application that wishes |
205 |
|
|
to interface with a PulseAudio sound server. |
206 |
|
|
|
207 |
colin |
223043 |
%package -n %{corelibname} |
208 |
|
|
Summary: Core Library for PulseAudio |
209 |
|
|
Group: System/Libraries |
210 |
|
|
Obsoletes: %mklibname pulsezeroconf 0 |
211 |
colin |
214 |
|
212 |
colin |
223043 |
%description -n %{corelibname} |
213 |
|
|
This package contains a library needed by the PulseAudio sound server and modules. |
214 |
|
|
|
215 |
|
|
%package -n %{commonlibname} |
216 |
|
|
Summary: Common Library for PulseAudio |
217 |
|
|
Group: System/Libraries |
218 |
|
|
|
219 |
|
|
%description -n %{commonlibname} |
220 |
|
|
This package contains a library needed by the PulseAudio sound server, modules and |
221 |
|
|
clients. |
222 |
|
|
|
223 |
|
|
|
224 |
colin |
214 |
%define alt_name soundprofile |
225 |
|
|
%define alt_priority 20 |
226 |
|
|
|
227 |
|
|
%package client-config |
228 |
|
|
Summary: Client configuration for PulseAudio clients |
229 |
|
|
Group: System/Libraries |
230 |
eatdirt |
168923 |
# (eatdirt) Otherwise may trigger bug 2966 |
231 |
|
|
Requires: alsa-plugins-pulse-config |
232 |
colin |
214 |
Requires(post): ccp |
233 |
|
|
Requires(post): update-alternatives |
234 |
|
|
Requires(postun): update-alternatives |
235 |
|
|
Conflicts: %{name} < 0.9.16-0.20090816.1 |
236 |
|
|
# (cg) Adding the obsoletes here as this package is almost always installed |
237 |
|
|
# and doing it in task-pulseaudio would cause it to be installed when not needed. |
238 |
|
|
# Flash plugin support pulse natively and libflashsupport now causes more |
239 |
|
|
# problems than it fixes |
240 |
|
|
Obsoletes: libflashsupport |
241 |
|
|
|
242 |
|
|
%description client-config |
243 |
|
|
This package contains the client configuration files for any application that wishes |
244 |
|
|
to interface with a PulseAudio sound server. |
245 |
|
|
|
246 |
|
|
|
247 |
|
|
%post client-config |
248 |
|
|
%{_sbindir}/update-alternatives \ |
249 |
|
|
--install %{_sysconfdir}/sound/profiles/current %{alt_name} %{_sysconfdir}/sound/profiles/pulse %{alt_priority} |
250 |
|
|
ccp -i -d --set NoOrphans --oldfile %{_sysconfdir}/pulse/client.conf --newfile %{_sysconfdir}/pulse/client.conf.rpmnew |
251 |
|
|
|
252 |
|
|
%postun client-config |
253 |
|
|
if [ ! -f %{_sysconfdir}/sound/profiles/pulse/profile.conf ]; then |
254 |
|
|
/usr/sbin/update-alternatives --remove %{alt_name} %{_sysconfdir}/sound/profiles/pulse |
255 |
|
|
fi |
256 |
|
|
|
257 |
colin |
791791 |
%triggerin client-config -- %{name}-client-config < 5.0-5 |
258 |
|
|
# Autospawn behaviour changed to use systemd, so tidy up the client.conf |
259 |
|
|
# by setting it back to the default value - it no longer changes depending on |
260 |
|
|
# the users soundprofile choice - it always defaults to no. |
261 |
|
|
sed -i 's/^\(\s*\)\;\?\s*\(autospawn\s*=\s*\).*/\1\; \2no/' %{_sysconfdir}/pulse/client.conf |
262 |
colin |
214 |
|
263 |
|
|
%package -n %{glib2libname} |
264 |
|
|
Summary: GLIB 2.x bindings for PulseAudio clients |
265 |
|
|
Group: System/Libraries |
266 |
|
|
|
267 |
|
|
%description -n %{glib2libname} |
268 |
|
|
This package contains bindings to integrate the PulseAudio client library with |
269 |
|
|
a GLIB 2.x based application. |
270 |
|
|
|
271 |
|
|
|
272 |
|
|
%package -n %{libname_devel} |
273 |
|
|
Summary: Headers and libraries for PulseAudio client development |
274 |
|
|
Group: Development/C |
275 |
|
|
Requires: %{libname} = %{version}-%{release} |
276 |
|
|
Requires: %{glib2libname} = %{version}-%{release} |
277 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
278 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
279 |
|
|
Obsoletes: %mklibname -d %{name} %{major} |
280 |
|
|
|
281 |
|
|
%description -n %{libname_devel} |
282 |
|
|
Headers and libraries for developing applications that can communicate with |
283 |
|
|
a PulseAudio sound server. |
284 |
|
|
|
285 |
|
|
|
286 |
|
|
%package esound-compat |
287 |
|
|
Summary: PulseAudio EsounD daemon compatibility script |
288 |
colin |
298651 |
Group: Sound/Mixers |
289 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
290 |
|
|
Provides: esound |
291 |
|
|
Obsoletes: esound < 0.2.38-5mdv |
292 |
|
|
Conflicts: esound-daemon |
293 |
|
|
Obsoletes: esound-daemon |
294 |
|
|
|
295 |
|
|
%description esound-compat |
296 |
|
|
A compatibility script that allows applications to call /usr/bin/esd |
297 |
|
|
and start PulseAudio with EsounD protocol modules. |
298 |
|
|
|
299 |
|
|
|
300 |
|
|
%package module-lirc |
301 |
|
|
Summary: LIRC support for the PulseAudio sound server |
302 |
colin |
298651 |
Group: Sound/Mixers |
303 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
304 |
|
|
|
305 |
|
|
%description module-lirc |
306 |
|
|
LIRC volume control module for the PulseAudio sound server. |
307 |
|
|
|
308 |
|
|
%if !%bootstrap |
309 |
|
|
%package module-bluetooth |
310 |
|
|
Summary: Bluetooth support for the PulseAudio sound server |
311 |
colin |
298651 |
Group: Sound/Mixers |
312 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
313 |
|
|
|
314 |
|
|
%description module-bluetooth |
315 |
|
|
Bluetooth modules for the PulseAudio sound server to provide support |
316 |
|
|
for headsets and proximity detection. |
317 |
|
|
%endif |
318 |
|
|
|
319 |
|
|
%package module-x11 |
320 |
|
|
Summary: X11 support for the PulseAudio sound server |
321 |
colin |
298651 |
Group: Sound/Mixers |
322 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
323 |
boklm |
454276 |
Requires: %{name}-utils = %{version}-%{release} |
324 |
colin |
214 |
|
325 |
|
|
%description module-x11 |
326 |
|
|
X11 bell and security modules for the PulseAudio sound server. |
327 |
|
|
|
328 |
|
|
%package module-zeroconf |
329 |
|
|
Summary: Zeroconf support for the PulseAudio sound server |
330 |
colin |
298651 |
Group: Sound/Mixers |
331 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
332 |
|
|
|
333 |
|
|
%description module-zeroconf |
334 |
|
|
Zeroconf publishing module for the PulseAudio sound server. |
335 |
|
|
|
336 |
|
|
%package module-jack |
337 |
|
|
Summary: JACK support for the PulseAudio sound server |
338 |
colin |
298651 |
Group: Sound/Mixers |
339 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
340 |
|
|
|
341 |
|
|
%description module-jack |
342 |
|
|
JACK sink and source modules for the PulseAudio sound server. |
343 |
|
|
|
344 |
|
|
%package module-gconf |
345 |
|
|
Summary: GConf support for the PulseAudio sound server |
346 |
colin |
298651 |
Group: Sound/Mixers |
347 |
colin |
214 |
Requires: %{name} = %{version}-%{release} |
348 |
|
|
|
349 |
|
|
%description module-gconf |
350 |
|
|
GConf configuration backend for the PulseAudio sound server. |
351 |
|
|
|
352 |
colin |
131434 |
%package module-equalizer |
353 |
|
|
Summary: Equalizer support for the PulseAudio sound server |
354 |
colin |
298651 |
Group: Sound/Mixers |
355 |
colin |
131434 |
Requires: %{name} = %{version}-%{release} |
356 |
daviddavid |
1054837 |
Requires: python-qt4-core |
357 |
|
|
Requires: python-qt4-gui |
358 |
|
|
Requires: python-dbus |
359 |
colin |
214 |
|
360 |
colin |
131434 |
%description module-equalizer |
361 |
|
|
Equalizer support and GUI for the PulseAudio sound server. |
362 |
|
|
|
363 |
tv |
900328 |
%ifarch %{ix86} x86_64 |
364 |
colin |
223043 |
%package module-xen |
365 |
|
|
Summary: Xen guest support for the PulseAudio sound server |
366 |
colin |
298651 |
Group: Sound/Mixers |
367 |
colin |
223043 |
Requires: %{name} = %{version}-%{release} |
368 |
|
|
|
369 |
|
|
%description module-xen |
370 |
|
|
Xen guest support for the PulseAudio sound server. |
371 |
rtp |
304289 |
%endif |
372 |
colin |
223043 |
|
373 |
colin |
214 |
%package utils |
374 |
|
|
Summary: PulseAudio sound server utilities |
375 |
colin |
298651 |
Group: Sound/Utilities |
376 |
colin |
214 |
|
377 |
|
|
%description utils |
378 |
|
|
This package contains command line utilities for the PulseAudio sound server. |
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
%prep |
384 |
|
|
%if %{git} |
385 |
colin |
131434 |
%setup -q -n %{name}-%{version}-%{fullgit} |
386 |
colin |
214 |
%else |
387 |
ovitters |
878125 |
%setup -q |
388 |
colin |
214 |
%endif |
389 |
|
|
|
390 |
ovitters |
878125 |
%autopatch -p1 |
391 |
colin |
214 |
|
392 |
|
|
# (cg) If autoconf is retriggered (which can happen automatically) we need this file. |
393 |
|
|
cat >git-version-gen <<EOF |
394 |
|
|
#!/bin/bash |
395 |
colin |
131434 |
echo -n %{version}.0-%{release} |
396 |
colin |
214 |
EOF |
397 |
|
|
chmod a+x git-version-gen |
398 |
|
|
|
399 |
daviddavid |
1054837 |
#%%if %%{git} |
400 |
colin |
214 |
echo "clean:" > Makefile |
401 |
|
|
./bootstrap.sh -V |
402 |
daviddavid |
1054837 |
#%%endif |
403 |
colin |
214 |
|
404 |
|
|
%build |
405 |
|
|
%configure2_5x \ |
406 |
rtp |
335678 |
%ifarch %arm |
407 |
|
|
--disable-neon-opt \ |
408 |
|
|
%endif |
409 |
colin |
495244 |
%if !%bootstrap |
410 |
|
|
--enable-bluez5 \ |
411 |
|
|
%endif |
412 |
|
|
--disable-bluez4 |
413 |
colin |
214 |
|
414 |
colin |
437157 |
|
415 |
daviddavid |
1054837 |
%make_build |
416 |
colin |
214 |
make doxygen |
417 |
|
|
|
418 |
|
|
%install |
419 |
daviddavid |
1054837 |
%make_install |
420 |
colin |
214 |
|
421 |
|
|
install -D -m 0644 %{_sourcedir}/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name} |
422 |
|
|
install -D -m 0755 %{_sourcedir}/%{name}.xinit %{buildroot}%{_sysconfdir}/X11/xinit.d/50%{name} |
423 |
|
|
install -D -m 0755 %{_sourcedir}/esd.conf %{buildroot}%{_sysconfdir}/ |
424 |
|
|
|
425 |
|
|
install -D -m 0644 %{_sourcedir}/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
426 |
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/devices |
427 |
|
|
ln -s ../apps/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/devices/audio-backend-pulseaudio.svg |
428 |
|
|
for size in 16 22 32 48 64 128; do |
429 |
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/{apps,devices} |
430 |
|
|
convert -geometry ${size}x${size} %{_sourcedir}/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png |
431 |
|
|
ln -s ../apps/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/devices/audio-backend-pulseaudio.png |
432 |
|
|
done |
433 |
|
|
|
434 |
|
|
# Remove static and metalink libraries |
435 |
|
|
find %{buildroot} \( -name *.a -o -name *.la \) -exec rm {} \; |
436 |
|
|
|
437 |
|
|
# Fix esd |
438 |
|
|
ln -s esdcompat %{buildroot}%{_bindir}/esd |
439 |
|
|
|
440 |
|
|
# (cg) For sound profile support |
441 |
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/pulse |
442 |
|
|
echo "SOUNDPROFILE=pulse" >%{buildroot}%{_sysconfdir}/sound/profiles/pulse/profile.conf |
443 |
colin |
791791 |
# (cg) Use this file as a trigger for enabling the pulseaudio.socket systemd user unit |
444 |
|
|
touch %{buildroot}%{_sysconfdir}/sound/profiles/pulse/pulse |
445 |
colin |
214 |
|
446 |
|
|
# (cg) HAL support is no longer the default, and we don't officially support system wide, so |
447 |
|
|
# System Wide + HAL is pretty unlikely. |
448 |
|
|
rm -f %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}-system.conf |
449 |
|
|
|
450 |
colin |
283680 |
# (cg) We require systemd now, so no point in using CK |
451 |
|
|
rm -f %{buildroot}%{_libdir}/pulse-%{apiver}/modules/module-console-kit.so |
452 |
|
|
|
453 |
colin |
214 |
# (cg) Disable x11-cork-request... it should be ahndled in the apps as we cannot |
454 |
|
|
# maintain state via this mechanism. Should be a patch, but I'm lazy. |
455 |
|
|
sed -i 's,\(/usr/bin/pactl load-module module-x11-cork-request\),#\1,' %{buildroot}%{_bindir}/start-pulseaudio-x11 |
456 |
|
|
|
457 |
colin |
852733 |
install -d -m 0755 %{buildroot}%{_userunitdir}/sockets.target.wants |
458 |
|
|
ln -s ../%{name}.socket %{buildroot}%{_userunitdir}/sockets.target.wants/ |
459 |
|
|
|
460 |
|
|
|
461 |
colin |
214 |
%find_lang %{name} |
462 |
|
|
|
463 |
|
|
%files -f %{name}.lang |
464 |
|
|
%doc README |
465 |
colin |
288289 |
%dir %{_sysconfdir}/pulse |
466 |
colin |
214 |
%config(noreplace) %{_sysconfdir}/pulse/daemon.conf |
467 |
|
|
%config(noreplace) %{_sysconfdir}/pulse/default.pa |
468 |
|
|
%config(noreplace) %{_sysconfdir}/pulse/system.pa |
469 |
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
470 |
|
|
%{_bindir}/%{name} |
471 |
|
|
%{_mandir}/man1/%{name}.1.* |
472 |
|
|
%{_mandir}/man5/pulse-client.conf.5.* |
473 |
|
|
%{_mandir}/man5/pulse-daemon.conf.5.* |
474 |
|
|
%{_mandir}/man5/default.pa.5.* |
475 |
colin |
235384 |
%{_mandir}/man5/pulse-cli-syntax.5.* |
476 |
wally |
262754 |
%{_datadir}/icons/hicolor/*/*/* |
477 |
colin |
791791 |
%{_userunitdir}/%{name}.service |
478 |
|
|
%{_userunitdir}/%{name}.socket |
479 |
|
|
%{_userunitdir}/sockets.target.wants/%{name}.socket |
480 |
colin |
214 |
%dir %{_datadir}/%{name}/ |
481 |
|
|
%{_datadir}/%{name}/alsa-mixer |
482 |
|
|
/lib/udev/rules.d/90-pulseaudio.rules |
483 |
colin |
168918 |
%dir %{_libdir}/pulse-%{apiver} |
484 |
|
|
%dir %{_libdir}/pulse-%{apiver}/modules |
485 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/libalsa-util.so |
486 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libcli.so |
487 |
|
|
%{_libdir}/pulse-%{apiver}/modules/liboss-util.so |
488 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libprotocol-cli.so |
489 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libprotocol-esound.so |
490 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libprotocol-http.so |
491 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libprotocol-native.so |
492 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libprotocol-simple.so |
493 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libraop.so |
494 |
|
|
%{_libdir}/pulse-%{apiver}/modules/librtp.so |
495 |
colin |
307279 |
%{_libdir}/pulse-%{apiver}/modules/libwebrtc-util.so |
496 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-alsa-card.so |
497 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-alsa-sink.so |
498 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-alsa-source.so |
499 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-always-sink.so |
500 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-augment-properties.so |
501 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-card-restore.so |
502 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-cli-protocol-tcp.so |
503 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-cli-protocol-unix.so |
504 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-cli.so |
505 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-combine.so |
506 |
colin |
131434 |
%{_libdir}/pulse-%{apiver}/modules/module-combine-sink.so |
507 |
colin |
223043 |
%{_libdir}/pulse-%{apiver}/modules/module-role-cork.so |
508 |
colin |
283680 |
%{_libdir}/pulse-%{apiver}/modules/module-systemd-login.so |
509 |
colin |
131434 |
%{_libdir}/pulse-%{apiver}/modules/module-dbus-protocol.so |
510 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-detect.so |
511 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-device-manager.so |
512 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-device-restore.so |
513 |
colin |
90166 |
%{_libdir}/pulse-%{apiver}/modules/module-echo-cancel.so |
514 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-esound-compat-spawnfd.so |
515 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-esound-compat-spawnpid.so |
516 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-esound-protocol-tcp.so |
517 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-esound-protocol-unix.so |
518 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-esound-sink.so |
519 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-hal-detect.so |
520 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-http-protocol-tcp.so |
521 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-http-protocol-unix.so |
522 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-intended-roles.so |
523 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-loopback.so |
524 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-match.so |
525 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-mmkbd-evdev.so |
526 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-fd.so |
527 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-tcp.so |
528 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-unix.so |
529 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-null-sink.so |
530 |
colin |
131434 |
%{_libdir}/pulse-%{apiver}/modules/module-null-source.so |
531 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-oss.so |
532 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-pipe-sink.so |
533 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-pipe-source.so |
534 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-raop-sink.so |
535 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-rygel-media-server.so |
536 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-position-event-sounds.so |
537 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-rescue-streams.so |
538 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-rtp-recv.so |
539 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-rtp-send.so |
540 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-simple-protocol-tcp.so |
541 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-simple-protocol-unix.so |
542 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-sine.so |
543 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-sine-source.so |
544 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-sink.so |
545 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-source.so |
546 |
colin |
495244 |
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-sink-new.so |
547 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-source-new.so |
548 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-udev-detect.so |
549 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-volume-restore.so |
550 |
colin |
131434 |
%{_libdir}/pulse-%{apiver}/modules/module-virtual-sink.so |
551 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-virtual-source.so |
552 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-stream-restore.so |
553 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-suspend-on-idle.so |
554 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-default-device-restore.so |
555 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-ladspa-sink.so |
556 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-remap-sink.so |
557 |
colin |
437145 |
%{_libdir}/pulse-%{apiver}/modules/module-remap-source.so |
558 |
colin |
131434 |
%{_libdir}/pulse-%{apiver}/modules/module-switch-on-connect.so |
559 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-filter-apply.so |
560 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-filter-heuristics.so |
561 |
colin |
223043 |
%{_libdir}/pulse-%{apiver}/modules/module-virtual-surround-sink.so |
562 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-switch-on-port-available.so |
563 |
colin |
437145 |
%{_libdir}/pulse-%{apiver}/modules/module-role-ducking.so |
564 |
colin |
214 |
|
565 |
|
|
|
566 |
|
|
%files -n %{libname} |
567 |
colin |
882987 |
%{_libdir}/libpulse.so.%{major} |
568 |
|
|
%{_libdir}/libpulse.so.%{major}.* |
569 |
|
|
%{_libdir}/libpulse-simple.so.%{major} |
570 |
|
|
%{_libdir}/libpulse-simple.so.%{major}.* |
571 |
colin |
223043 |
%dir %{_libdir}/%{name} |
572 |
colin |
214 |
# (cg) Although the following is not a shared library, putting this file here |
573 |
|
|
# will allow padsp to work on dual arch machines... (e.g. using padsp to start |
574 |
|
|
# a 32-bit app). |
575 |
colin |
223043 |
%{_libdir}/%{name}/libpulsedsp.so |
576 |
colin |
214 |
|
577 |
colin |
223043 |
%files -n %{corelibname} |
578 |
colin |
954401 |
%dir %{_libdir}/%{name} |
579 |
|
|
%{_libdir}/%{name}/libpulsecore-%{apiver}.so |
580 |
colin |
214 |
|
581 |
colin |
223043 |
%files -n %{commonlibname} |
582 |
|
|
%dir %{_libdir}/%{name} |
583 |
|
|
%{_libdir}/%{name}/libpulsecommon-%{apiver}.so |
584 |
|
|
|
585 |
colin |
214 |
%files client-config |
586 |
colin |
288289 |
%dir %{_sysconfdir}/pulse |
587 |
colin |
214 |
%config(noreplace) %{_sysconfdir}/pulse/client.conf |
588 |
|
|
%dir %{_sysconfdir}/sound/profiles/pulse |
589 |
|
|
%{_sysconfdir}/sound/profiles/pulse/profile.conf |
590 |
colin |
791791 |
%{_sysconfdir}/sound/profiles/pulse/pulse |
591 |
colin |
214 |
|
592 |
|
|
|
593 |
|
|
%files -n %{glib2libname} |
594 |
colin |
882987 |
%{_libdir}/libpulse-mainloop-glib.so.%{glib2major} |
595 |
|
|
%{_libdir}/libpulse-mainloop-glib.so.%{glib2major}.* |
596 |
colin |
214 |
|
597 |
|
|
%files -n %{libname_devel} |
598 |
|
|
%doc doxygen/html |
599 |
|
|
%{_libdir}/libpulse.so |
600 |
|
|
%{_libdir}/libpulse-mainloop-glib.so |
601 |
|
|
%{_libdir}/libpulse-simple.so |
602 |
|
|
%dir %{_includedir}/pulse |
603 |
|
|
%{_includedir}/pulse/*.h |
604 |
|
|
%{_libdir}/pkgconfig/*.pc |
605 |
colin |
156876 |
%{_libdir}/cmake/PulseAudio |
606 |
colin |
90166 |
%{_datadir}/vala/vapi/libpulse.deps |
607 |
colin |
214 |
%{_datadir}/vala/vapi/libpulse.vapi |
608 |
colin |
90166 |
%{_datadir}/vala/vapi/libpulse-mainloop-glib.deps |
609 |
|
|
%{_datadir}/vala/vapi/libpulse-mainloop-glib.vapi |
610 |
colin |
852733 |
%{_datadir}/vala/vapi/libpulse-simple.deps |
611 |
|
|
%{_datadir}/vala/vapi/libpulse-simple.vapi |
612 |
colin |
214 |
|
613 |
|
|
|
614 |
|
|
%files esound-compat |
615 |
|
|
%config(noreplace) %{_sysconfdir}/esd.conf |
616 |
|
|
%{_bindir}/esdcompat |
617 |
|
|
%{_bindir}/esd |
618 |
|
|
%{_mandir}/man1/esdcompat.1.* |
619 |
|
|
|
620 |
|
|
%if !%bootstrap |
621 |
|
|
%files module-bluetooth |
622 |
colin |
495244 |
%{_libdir}/pulse-%{apiver}/modules/libbluez5-util.so |
623 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-bluetooth-discover.so |
624 |
colin |
330111 |
%{_libdir}/pulse-%{apiver}/modules/module-bluetooth-policy.so |
625 |
colin |
495244 |
%{_libdir}/pulse-%{apiver}/modules/module-bluez5-device.so |
626 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-bluez5-discover.so |
627 |
colin |
214 |
%endif |
628 |
|
|
|
629 |
|
|
|
630 |
|
|
%files module-lirc |
631 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-lirc.so |
632 |
|
|
|
633 |
|
|
%files module-x11 |
634 |
|
|
%{_sysconfdir}/X11/xinit.d/50%{name} |
635 |
|
|
%{_bindir}/pax11publish |
636 |
|
|
%{_bindir}/start-pulseaudio-x11 |
637 |
|
|
%{_mandir}/man1/pax11publish.1.* |
638 |
colin |
131434 |
%{_mandir}/man1/start-pulseaudio-x11.1.* |
639 |
colin |
214 |
%{_libdir}/pulse-%{apiver}/modules/module-x11-bell.so |
640 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-x11-cork-request.so |
641 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-x11-publish.so |
642 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-x11-xsmp.so |
643 |
|
|
%{_sysconfdir}/xdg/autostart/pulseaudio.desktop |
644 |
|
|
|
645 |
|
|
%files module-zeroconf |
646 |
|
|
%{_libdir}/pulse-%{apiver}/modules/libavahi-wrap.so |
647 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-zeroconf-discover.so |
648 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-zeroconf-publish.so |
649 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-raop-discover.so |
650 |
|
|
|
651 |
|
|
%files module-jack |
652 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-jack-sink.so |
653 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-jack-source.so |
654 |
colin |
51777 |
%{_libdir}/pulse-%{apiver}/modules/module-jackdbus-detect.so |
655 |
colin |
214 |
|
656 |
|
|
%files module-gconf |
657 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-gconf.so |
658 |
neoclust |
338056 |
%dir %{_libexecdir}/pulse/ |
659 |
neoclust |
338055 |
%{_libexecdir}/pulse/gconf-helper |
660 |
colin |
214 |
|
661 |
colin |
131434 |
%files module-equalizer |
662 |
|
|
%{_bindir}/qpaeq |
663 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-equalizer-sink.so |
664 |
colin |
214 |
|
665 |
tv |
900328 |
%ifarch %{ix86} x86_64 |
666 |
colin |
223043 |
%files module-xen |
667 |
|
|
%{_libdir}/pulse-%{apiver}/modules/module-xenpv-sink.so |
668 |
rtp |
304289 |
%endif |
669 |
colin |
223043 |
|
670 |
colin |
214 |
%files utils |
671 |
colin |
882987 |
%{_datadir}/bash-completion/completions/* |
672 |
colin |
852733 |
%{_datadir}/zsh/site-functions/_pulseaudio |
673 |
colin |
214 |
%{_bindir}/pacat |
674 |
|
|
%{_bindir}/pacmd |
675 |
|
|
%{_bindir}/pactl |
676 |
|
|
%{_bindir}/padsp |
677 |
|
|
%{_bindir}/pamon |
678 |
|
|
%{_bindir}/paplay |
679 |
|
|
%{_bindir}/parec |
680 |
|
|
%{_bindir}/parecord |
681 |
|
|
%{_bindir}/pasuspender |
682 |
|
|
%{_mandir}/man1/pacat.1.* |
683 |
|
|
%{_mandir}/man1/pacmd.1.* |
684 |
|
|
%{_mandir}/man1/pactl.1.* |
685 |
|
|
%{_mandir}/man1/padsp.1.* |
686 |
colin |
882987 |
%{_mandir}/man1/pamon.1.* |
687 |
colin |
214 |
%{_mandir}/man1/paplay.1.* |
688 |
colin |
882987 |
%{_mandir}/man1/parec.1.* |
689 |
|
|
%{_mandir}/man1/parecord.1.* |
690 |
colin |
214 |
%{_mandir}/man1/pasuspender.1.* |