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
|
# Note that this is NOT a relocatable package
Summary: Allows several audio streams to play on a single audio device
Name: esound
Version: 0.2.41
Release: 2
License: LGPLv2+
URL: ftp://ftp.gnome.org/pub/GNOME/sources/esound
Group: System/Daemons
Source0: http://ftp.gnome.org/pub/gnome/sources/esound/0.2/esound-%{version}.tar.bz2
Patch4: esound-0.2.38-drain.patch
Patch6: esound-0.2.38-fix-open-macro.patch
Patch7: remove-confusing-spew.patch
# default to nospawn, so we can kill the esd.conf file
Patch8: esound-nospawn.patch
# temporarily disable doc build due to xml catalog issues
#BuildRequires: docbook-utils
BuildRequires: audiofile-devel
BuildRequires: libasound-devel
%description
EsounD, the Enlightened Sound Daemon, is a server process that mixes
several audio streams for playback by a single audio device. For
example, if you're listening to music on a CD and you receive a
sound-related event from ICQ, the two applications won't have to
queue for the use of your sound card.
Install esound if you'd like to let sound applications share your
audio device. You'll also need to install the audiofile package.
%package libs
Summary: Library to talk to the EsounD daemon
Group: Development/Libraries
%description libs
The esound-libs package includes the libraries required
for applications to talk to the EsounD daemon.
%package tools
Summary: Commandline tools to talk to the EsounD daemon
Group: System/Base
%description tools
The esound-tools package includes commandline utilities
for controlling the EsounD daemon.
%package devel
Summary: Development files for EsounD applications
Group: Development/Libraries
Requires: esound-libs = %{version}-%{release}
Requires: audiofile-devel
Requires: libasound-devel
# we install a pc file
Requires: pkgconfig
# we install an automake macro
%description devel
The esound-devel package includes the libraries, include files and
other resources needed to develop EsounD applications.
%prep
%setup -q
%patch4 -p1 -b .drain-race
%patch6 -p1 -b .open-macro
%patch7 -p1 -b .spew
%patch8 -p1 -b .nospawn
%build
%configure --disable-static
EGREP=egrep make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/esd.conf
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# Delete the esound binary
rm -f $RPM_BUILD_ROOT%{_bindir}/esd $RPM_BUILD_ROOT%{_mandir}/man1/esd.1*
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files libs
%doc AUTHORS COPYING.LIB ChangeLog docs/esound.sgml
%doc NEWS README TIPS TODO
%defattr(-, root, root,-)
%{_libdir}/*.so.*
%files tools
%{_bindir}/esdcat
%{_bindir}/esdctl
%{_bindir}/esddsp
%{_bindir}/esdfilt
%{_bindir}/esdloop
%{_bindir}/esdmon
%{_bindir}/esdplay
%{_bindir}/esdrec
%{_bindir}/esdsample
%{_mandir}/man1/esdcat.1.gz
%{_mandir}/man1/esdctl.1.gz
%{_mandir}/man1/esddsp.1.gz
%{_mandir}/man1/esdfilt.1.gz
%{_mandir}/man1/esdloop.1.gz
%{_mandir}/man1/esdmon.1.gz
%{_mandir}/man1/esdplay.1.gz
%{_mandir}/man1/esdrec.1.gz
%{_mandir}/man1/esdsample.1.gz
# temporarily disable doc build due to xml catalog issues
#%doc %{_datadir}/doc/esound
%files devel
%defattr(-, root, root,-)
%{_bindir}/esd-config
%{_includedir}/*
%{_datadir}/aclocal/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/esd-config.1.gz
|