1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
%define pulseversion 2.1
Name: pulseaudio
Summary: Improved Linux sound server
Version: 2.1
Release: 0
Group: Multimedia/PulseAudio
License: LGPLv2+
URL: http://pulseaudio.org
Source0: http://127.0.0.1/pulseaudio-2.1.tar.gz
Requires: udev
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: pulseaudio-config
BuildRequires: pkgconfig(speexdsp)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(vconf)
BuildRequires: libatomic_ops-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: json-c-devel
BuildRequires: m4
BuildRequires: libtool-ltdl-devel
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: fdupes
%description
PulseAudio is a sound server for Linux and other Unix like operating
systems. It is intended to be an improved drop-in replacement for the
Enlightened Sound Daemon (ESOUND).
%package libs
Summary: PulseAudio client libraries
Group: Multimedia/PulseAudio
Requires: %{name} = %{version}-%{release}
%description libs
Client libraries used by applications that access a PulseAudio sound server
via PulseAudio's native interface.
%package libs-devel
Summary: PulseAudio client development headers and libraries
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description libs-devel
Headers and libraries for developing applications that access a PulseAudio
sound server via PulseAudio's native interface
%package utils
Summary: Command line tools for the PulseAudio sound server
Group: Multimedia/PulseAudio
Requires: %{name} = %{version}-%{release}
%description utils
These tools provide command line access to various features of the
PulseAudio sound server. Included tools are:
pabrowse - Browse available PulseAudio servers on the local network.
paplay - Playback a WAV file via a PulseAudio sink.
pacat - Cat raw audio data to a PulseAudio sink.
parec - Cat raw audio data from a PulseAudio source.
pacmd - Connect to PulseAudio's built-in command line control interface.
pactl - Send a control command to a PulseAudio server.
padsp - /dev/dsp wrapper to transparently support OSS applications.
pax11publish - Store/retrieve PulseAudio default server/sink/source
settings in the X11 root window.
%package module-bluetooth
Summary: Bluetooth module for PulseAudio sound server
Group: Multimedia/PulseAudio
Requires: %{name} = %{version}-%{release}
%description module-bluetooth
This module enables PulseAudio to work with bluetooth devices, like headset
or audio gatewa
%package module-devel
Summary: Headers and libraries for PulseAudio module development
License: LGPLv2+
Group: Development/Libraries
Requires: %{name}-libs-devel = %{version}-%{release}
%package config
Summary: Default configuration for PulseAudio.
Group: System Environment/Configuration
%description config
Default configuration for PulseAudio.
%description module-devel
Headers and libraries for developing pulseaudio modules
#%package module-zeroconf
#Summary: PA module-zeroconf
#Group: Multimedia/PulseAudio
#
#%description module-zeroconf
#PA module-zeroconf.
%package module-raop
Summary: PA module-raop
Group: Multimedia/PulseAudio
%description module-raop
PA module-raop.
%package module-filter
Summary: PA module-filter
Group: Multimedia/PulseAudio
%description module-filter
PA module-filter.
%package module-combine-sink
Summary: PA module-combine-sink
Group: Multimedia/PulseAudio
%description module-combine-sink
PA module-combine-sink.
%package module-augment-properties
Summary: PA module-augment-properties
Group: Multimedia/PulseAudio
%description module-augment-properties
PA module-augment-properties.
%package module-dbus-protocol
Summary: PA module-dbus-protocol
Group: Multimedia/PulseAudio
%description module-dbus-protocol
PA module-dbus-protocol.
%package module-null-source
Summary: PA module-null-source
Group: Multimedia/PulseAudio
%description module-null-source
PA module-null-source.
%package module-switch-on-connect
Summary: PA module-swich-on-connect
Group: Multimedia/PulseAudio
%description module-switch-on-connect
PA module-swich-on-connect.
%package localization
Summary: PA localization files.
Group: Multimedia/PulseAudio
Requires: %{name} = %{version}-%{release}
%description localization
PA localization files.
%package vala-bindings
Summary: PA Vala bindings.
Group: Multimedia/PulseAudio
Requires: %{name} = %{version}-%{release}
%description vala-bindings
PA Vala bindings.
%prep
%setup -q
echo "%{version}" > .tarball-version
./bootstrap.sh
%build
CPUS="`cat /proc/cpuinfo | grep ^processor | wc -l`"
JOBS="-j$(($CPUS + 1))"
unset LD_AS_NEEDED
export LDFLAGS+="-Wl,--no-as-needed"
%configure --disable-static --enable-alsa --disable-ipv6 --disable-oss-output --disable-oss-wrapper --enable-bluez --disable-x11 --disable-hal --disable-hal-compat --disable-lirc --disable-avahi --disable-jack --without-fftw --disable-xen --enable-spolicy
make $JOBS
%install
rm -rf %{buildroot}
%make_install
install -D -m0755 pulseaudio.sh.in %{buildroot}%{_sysconfdir}/rc.d/init.d/pulseaudio.sh
install -d %{buildroot}/%{_libdir}/systemd/system
install -m 644 pulseaudio.service %{buildroot}/%{_libdir}/systemd/system/pulseaudio.service
mkdir -p %{buildroot}/%{_libdir}/systemd/system/multi-user.target.wants
ln -s ../pulseaudio.service %{buildroot}/%{_libdir}/systemd/system/multi-user.target.wants/pulseaudio.service
rm -rf %{buildroot}/etc/xdg/autostart/pulseaudio-kde.desktop
rm -rf %{buildroot}/usr/bin/start-pulseaudio-kde
rm -rf %{buildroot}/%{_libdir}/pulse-%{version}/modules/module-device-manager.so
mkdir -p %{buildroot}/%{_includedir}/pulsemodule/pulse
mkdir -p %{buildroot}/%{_includedir}/pulsemodule/pulsecore
cp %{buildroot}/%{_includedir}/pulse/*.h %{buildroot}/%{_includedir}/pulsemodule/pulse
%find_lang pulseaudio
fdupes %{buildroot}/%{_datadir}
fdupes %{buildroot}/%{_includedir}
# get rid of *.la files
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/pulseaudio/*.la
# put the default configuration file in place
install -m 644 src/default.pa %{buildroot}/%{_sysconfdir}/pulse
%post
/sbin/ldconfig
ln -s /etc/rc.d/init.d/pulseaudio.sh /etc/rc.d/rc3.d/S20pulseaudio
ln -s /etc/rc.d/init.d/pulseaudio.sh /etc/rc.d/rc4.d/S20pulseaudio
%postun
/sbin/ldconfig
if [ "$1" = "0" ]; then
rm -f %{_sysconfdir}/rc.d/rc3.d/S20pulseaudio
rm -f %{_sysconfdir}/rc.d/rc4.d/S20pulseaudio
fi
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post module-bluetooth -p /sbin/ldconfig
%postun module-bluetooth -p /sbin/ldconfig
%docs_package
%lang_package
%files
%defattr(-,root,root,-)
%doc LICENSE GPL LGPL
%dir %{_sysconfdir}/pulse/
%{_bindir}/esdcompat
%{_bindir}/pulseaudio
%dir %{_libexecdir}/pulse
%{_libexecdir}/pulse/*
%{_libdir}/libpulsecore-%{version}.so
%{_libdir}/libpulse-mainloop-glib.so.*
/lib/udev/rules.d/90-pulseaudio.rules
%{_datadir}/pulseaudio/alsa-mixer/paths/*
%{_datadir}/pulseaudio/alsa-mixer/profile-sets/*
%{_bindir}/pamon
/etc/dbus-1/system.d/pulseaudio-system.conf
# cmake stuff
%{_libdir}/cmake/PulseAudio/PulseAudioConfig.cmake
%{_libdir}/cmake/PulseAudio/PulseAudioConfigVersion.cmake
# list all modules
%{_libdir}/pulse-%{version}/modules/libalsa-util.so
%{_libdir}/pulse-%{version}/modules/libcli.so
%{_libdir}/pulse-%{version}/modules/libprotocol-cli.so
%{_libdir}/pulse-%{version}/modules/libprotocol-http.so
%{_libdir}/pulse-%{version}/modules/libprotocol-native.so
%{_libdir}/pulse-%{version}/modules/libprotocol-simple.so
%{_libdir}/pulse-%{version}/modules/librtp.so
%{_libdir}/pulse-%{version}/modules/module-alsa-sink.so
%{_libdir}/pulse-%{version}/modules/module-alsa-source.so
%{_libdir}/pulse-%{version}/modules/module-always-sink.so
%{_libdir}/pulse-%{version}/modules/module-console-kit.so
%{_libdir}/pulse-%{version}/modules/module-device-restore.so
%{_libdir}/pulse-%{version}/modules/module-stream-restore.so
%{_libdir}/pulse-%{version}/modules/module-cli-protocol-tcp.so
%{_libdir}/pulse-%{version}/modules/module-cli-protocol-unix.so
%{_libdir}/pulse-%{version}/modules/module-cli.so
%{_libdir}/pulse-%{version}/modules/module-combine.so
%{_libdir}/pulse-%{version}/modules/module-default-device-restore.so
%{_libdir}/pulse-%{version}/modules/module-detect.so
%{_libdir}/pulse-%{version}/modules/module-esound-sink.so
%{_libdir}/pulse-%{version}/modules/module-http-protocol-tcp.so
%{_libdir}/pulse-%{version}/modules/module-http-protocol-unix.so
%{_libdir}/pulse-%{version}/modules/module-intended-roles.so
%{_libdir}/pulse-%{version}/modules/module-ladspa-sink.so
%{_libdir}/pulse-%{version}/modules/module-match.so
%{_libdir}/pulse-%{version}/modules/module-mmkbd-evdev.so
%{_libdir}/pulse-%{version}/modules/module-native-protocol-fd.so
%{_libdir}/pulse-%{version}/modules/module-native-protocol-tcp.so
%{_libdir}/pulse-%{version}/modules/module-native-protocol-unix.so
%{_libdir}/pulse-%{version}/modules/module-null-sink.so
%{_libdir}/pulse-%{version}/modules/module-pipe-sink.so
%{_libdir}/pulse-%{version}/modules/module-pipe-source.so
%{_libdir}/pulse-%{version}/modules/module-position-event-sounds.so
%{_libdir}/pulse-%{version}/modules/module-remap-sink.so
%{_libdir}/pulse-%{version}/modules/module-rescue-streams.so
%{_libdir}/pulse-%{version}/modules/module-rtp-recv.so
%{_libdir}/pulse-%{version}/modules/module-rtp-send.so
%{_libdir}/pulse-%{version}/modules/module-simple-protocol-tcp.so
%{_libdir}/pulse-%{version}/modules/module-simple-protocol-unix.so
%{_libdir}/pulse-%{version}/modules/module-sine.so
%{_libdir}/pulse-%{version}/modules/module-tunnel-sink.so
%{_libdir}/pulse-%{version}/modules/module-tunnel-source.so
%{_libdir}/pulse-%{version}/modules/module-suspend-on-idle.so
%{_libdir}/pulse-%{version}/modules/module-volume-restore.so
%{_libdir}/pulse-%{version}/modules/module-alsa-card.so
%{_libdir}/pulse-%{version}/modules/module-card-restore.so
%{_libdir}/pulse-%{version}/modules/module-sine-source.so
%{_libdir}/pulse-%{version}/modules/module-loopback.so
%{_libdir}/pulse-%{version}/modules/module-rygel-media-server.so
%{_libdir}/pulse-%{version}/modules/module-echo-cancel.so
%{_libdir}/pulse-%{version}/modules/module-virtual-sink.so
%{_libdir}/pulse-%{version}/modules/module-virtual-source.so
%{_libdir}/pulse-%{version}/modules/libprotocol-esound.so
%{_libdir}/pulse-%{version}/modules/module-esound-compat-spawnfd.so
%{_libdir}/pulse-%{version}/modules/module-esound-compat-spawnpid.so
%{_libdir}/pulse-%{version}/modules/module-esound-protocol-tcp.so
%{_libdir}/pulse-%{version}/modules/module-esound-protocol-unix.so
%{_libdir}/pulse-%{version}/modules/module-gconf.so
%{_libdir}/pulse-%{version}/modules/module-udev-detect.so
%{_libdir}/pulse-%{version}/modules/module-role-cork.so
%{_libdir}/pulse-%{version}/modules/module-switch-on-port-available.so
%{_libdir}/pulse-%{version}/modules/module-virtual-surround-sink.so
%{_libdir}/pulse-%{version}/modules/module-policy.so
%{_libdir}/systemd/system/pulseaudio.service
%{_libdir}/systemd/system/multi-user.target.wants/pulseaudio.service
%{_sysconfdir}/rc.d/init.d/pulseaudio.sh
%files libs
%defattr(-,root,root,-)
%{_libdir}/libpulse.so.*
%{_libdir}/libpulse-simple.so.*
%{_libdir}/pulseaudio/libpulsecommon-*.so
%files libs-devel
%defattr(-,root,root,-)
%{_includedir}/pulse/*
%{_libdir}/libpulse.so
%{_libdir}/libpulse-simple.so
%{_libdir}/pkgconfig/libpulse-simple.pc
%{_libdir}/pkgconfig/libpulse.pc
%{_datadir}/vala/vapi/libpulse.vapi
%{_libdir}/pkgconfig/libpulse-mainloop-glib.pc
%{_libdir}/libpulse-mainloop-glib.so
%files utils
%defattr(-,root,root,-)
%doc %{_mandir}/man1/*
%doc %{_mandir}/man5/*
%{_bindir}/pacat
%{_bindir}/pacmd
%{_bindir}/pactl
%{_bindir}/paplay
%{_bindir}/parec
%{_bindir}/pamon
%{_bindir}/parecord
%{_bindir}/pasuspender
%files module-bluetooth
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-bluetooth-proximity.so
%{_libdir}/pulse-%{version}/modules/module-bluetooth-device.so
%{_libdir}/pulse-%{version}/modules/module-bluetooth-discover.so
%{_libdir}/pulse-%{version}/modules/libbluetooth-ipc.so
%{_libdir}/pulse-%{version}/modules/libbluetooth-sbc.so
%{_libdir}/pulse-%{version}/modules/libbluetooth-util.so
#%files module-zeroconf
#%defattr(-,root,root,-)
#%{_libdir}/pulse-%{version}/modules/libavahi-wrap.so
#%{_libdir}/pulse-%{version}/modules/module-zeroconf*.so
%files module-raop
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/libraop.so
%{_libdir}/pulse-%{version}/modules/module-raop*.so
%files module-filter
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-filter-*.so
%files module-combine-sink
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-combine-sink.so
%files module-augment-properties
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-augment-properties.so
%files module-dbus-protocol
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-dbus-protocol.so
%files module-null-source
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-null-source.so
%files module-switch-on-connect
%defattr(-,root,root,-)
%{_libdir}/pulse-%{version}/modules/module-switch-on-connect.so
%files config
%defattr(-,root,root,-)
%{_sysconfdir}/pulse/default.pa
%{_sysconfdir}/pulse/client.conf
%{_sysconfdir}/pulse/default.pa
%{_sysconfdir}/pulse/system.pa
%{_sysconfdir}/pulse/daemon.conf
%files module-devel
%defattr(-,root,root)
%{_includedir}/pulsemodule/pulsecore/*.h
%{_includedir}/pulsemodule/pulse/*.h
%{_libdir}/pkgconfig/pulseaudio-module-devel.pc
%files localization
%defattr(-,root,root,-)
%{_datadir}/locale/*/LC_MESSAGES/pulseaudio.mo
%files vala-bindings
%defattr(-,root,root,-)
%{_datadir}/vala/vapi/*
|