%define name esound %define version 0.2.23 %define release 1 %define group System Environment/Daemons %define prefix %{_prefix} # ============================================================================== Name: %{name} Version: %{version} Release: %{release} Summary: Allows several audio streams to play on a single audio device. Group: %{group} Copyright: GPL URL: http://www.tux.org/~ricdude/EsounD.html Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/esound/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %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 jockey 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. %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %prep %setup -q %patch0 -p2 -b .aix %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi #export CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl"; export CFLAGS="$RPM_OPT_FLAGS" libtoolize --force aclocal autoconf CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix} make prefix=$RPM_BUILD_ROOT%{prefix} install ( cd $RPM_BUILD_ROOT /usr/bin/strip .%{prefix}/bin/* || : for dir in bin lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %files %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TIPS TODO %defattr(-,root,root) %attr(755,root,root) %{prefix}/bin/* %{prefix}/include/esd.h %{prefix}/lib/libesd.* %{prefix}/share/aclocal/esd.m4 /usr/bin/* /usr/lib/libesd.* %clean rm -rf $RPM_BUILD_ROOT %changelog * Thu Oct 11 2001 Kevin Monroe - Upgrade to 0.2.23 * Fri Sep 14 2001 Kevin Monroe - Initial Release (0.2.8)