ALT Linux repos
Group :: System/Servers
RPM: esound
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define ver_major 0.2
%def_disable alsa
%def_enable oss
%def_disable arts
%def_disable static
Name: esound
Version: %ver_major.36
Release: alt5
Summary: The Enlightened Sound Daemon
License: GPL
Group: System/Servers
Url: ftp://ftp.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch: %name-0.2.19-alt-noerrors.patch
Patch1: %name-0.2.28-alt-config.patch
Patch2: %name-0.2.36-fix-link-as-needed.patch
%define audiofile_ver 0.1.5
Requires: libaudiofile >= %audiofile_ver
BuildPreReq: libaudiofile-devel >= %audiofile_ver
BuildRequires: docbook-utils-print libwrap-devel
%if_enabled alsa
%define alsa_ver 1.0.0
Requires: libalsa >= %alsa_ver
BuildPreReq: libalsa-devel >= %alsa_ver
%endif
%if_enabled arts
BuildPreReq: libarts-devel
%endif
%if_enabled static
BuildPreReq glibc-static-devel
%endif
%description
EsounD (the Enlightened Sound Daemon) is a server process that allows multiple
applications to share a single sound card. For example, when you're listening
to music from your CD and you receive a sound-related event from ICQ, your
applications won't have to jockey for the attention of your sound card.
EsounD mixes several audio streams for playback by a single audio device.
This package is for use with OSS sound drivers only (OSS emulation over
ALSA drivers is also good).
%package utils
Summary: Enlightened Sound Daemon - clients
Group: Sound
Requires: %name = %version-%release
%description utils
Utilities that control and interact with the Enlightened Sound Daemon.
%package devel
Summary: Libraries, includes and more to develop EsounD applications
Group: Development/C
Requires: %name = %version-%release
Requires: libaudiofile-devel
%if_enabled alsa
Requires:libalsa-devel >= %alsa_ver
%endif
%if_enabled arts
Requires: libarts-devel
%endif
%description devel
Libraries, include files and other resources you can use to develop EsounD
applications.
%package devel-static
Summary: Static libraries to develop EsounD applications
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static libraries you can use to develop statically linked EsounD
applications.
%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p0
%build
%__autoreconf
%configure --with-libwrap \
--enable-local-sound \
%{subst_enable alsa} \
%{subst_enable oss} \
%{subst_enable arts} \
%{subst_enable static}
%make_build
%install
# fix manpage for esd
%__subst 's,/etc/esound,/etc,g' docs/esd.1
%makeinstall
# fix permissions
#%__chmod 0644 docs/html/stylesheet-images/*.gif
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%_bindir/esd
%_bindir/esddsp
%_bindir/esdplay
%_libdir/*.so.*
%_man1dir/esd.*
%_man1dir/esddsp.*
%config(noreplace) %_sysconfdir/esd.conf
%doc AUTHORS NEWS README* TIPS
%files utils
%_bindir/*
%exclude %_bindir/esd
%exclude %_bindir/esddsp
%exclude %_bindir/esd-config
%exclude %_bindir/esdplay
%_man1dir/*.1*
%exclude %_man1dir/esd.1*
%exclude %_man1dir/esddsp.1*
%exclude %_man1dir/esd-config.1*
%files devel
%_bindir/esd-config
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%_datadir/aclocal/*
%_man1dir/esd-config.1*
%doc ChangeLog TODO TIPS docs/html
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here
%def_disable alsa
%def_enable oss
%def_disable arts
%def_disable static
Name: esound
Version: %ver_major.36
Release: alt5
Summary: The Enlightened Sound Daemon
License: GPL
Group: System/Servers
Url: ftp://ftp.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch: %name-0.2.19-alt-noerrors.patch
Patch1: %name-0.2.28-alt-config.patch
Patch2: %name-0.2.36-fix-link-as-needed.patch
%define audiofile_ver 0.1.5
Requires: libaudiofile >= %audiofile_ver
BuildPreReq: libaudiofile-devel >= %audiofile_ver
BuildRequires: docbook-utils-print libwrap-devel
%if_enabled alsa
%define alsa_ver 1.0.0
Requires: libalsa >= %alsa_ver
BuildPreReq: libalsa-devel >= %alsa_ver
%endif
%if_enabled arts
BuildPreReq: libarts-devel
%endif
%if_enabled static
BuildPreReq glibc-static-devel
%endif
%description
EsounD (the Enlightened Sound Daemon) is a server process that allows multiple
applications to share a single sound card. For example, when you're listening
to music from your CD and you receive a sound-related event from ICQ, your
applications won't have to jockey for the attention of your sound card.
EsounD mixes several audio streams for playback by a single audio device.
This package is for use with OSS sound drivers only (OSS emulation over
ALSA drivers is also good).
%package utils
Summary: Enlightened Sound Daemon - clients
Group: Sound
Requires: %name = %version-%release
%description utils
Utilities that control and interact with the Enlightened Sound Daemon.
%package devel
Summary: Libraries, includes and more to develop EsounD applications
Group: Development/C
Requires: %name = %version-%release
Requires: libaudiofile-devel
%if_enabled alsa
Requires:libalsa-devel >= %alsa_ver
%endif
%if_enabled arts
Requires: libarts-devel
%endif
%description devel
Libraries, include files and other resources you can use to develop EsounD
applications.
%package devel-static
Summary: Static libraries to develop EsounD applications
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static libraries you can use to develop statically linked EsounD
applications.
%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p0
%build
%__autoreconf
%configure --with-libwrap \
--enable-local-sound \
%{subst_enable alsa} \
%{subst_enable oss} \
%{subst_enable arts} \
%{subst_enable static}
%make_build
%install
# fix manpage for esd
%__subst 's,/etc/esound,/etc,g' docs/esd.1
%makeinstall
# fix permissions
#%__chmod 0644 docs/html/stylesheet-images/*.gif
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%_bindir/esd
%_bindir/esddsp
%_bindir/esdplay
%_libdir/*.so.*
%_man1dir/esd.*
%_man1dir/esddsp.*
%config(noreplace) %_sysconfdir/esd.conf
%doc AUTHORS NEWS README* TIPS
%files utils
%_bindir/*
%exclude %_bindir/esd
%exclude %_bindir/esddsp
%exclude %_bindir/esd-config
%exclude %_bindir/esdplay
%_man1dir/*.1*
%exclude %_man1dir/esd.1*
%exclude %_man1dir/esddsp.1*
%exclude %_man1dir/esd-config.1*
%files devel
%_bindir/esd-config
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%_datadir/aclocal/*
%_man1dir/esd-config.1*
%doc ChangeLog TODO TIPS docs/html
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here