Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > aaf0b19f16ae7f802f953c316417e14b > files > 4

esound-0.2.40-1mdv2009.0.src.rpm

%define major	0
%define libname	%mklibname esound %{major}
%define develname %mklibname esound -d

Summary:	The Enlightened Sound Daemon
Name:		esound
Version: 0.2.40
Release: %mkrel 1
License:	LGPLv2+
Group:		System/Servers

Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/esound/esound-%{version}.tar.bz2
# (fc) 0.2.28 default options : increase spawn process waiting time, release device after 2s of inactivity
Patch0:		esound-0.2.37-defaultoptions.patch
# (fc) 0.2.38-2mdv protect dsp_init with a mutex to prevent race conditions from multiple calls (Ubuntu)
Patch3:		esound-0.2.38-preventlock.patch
URL:		ftp://ftp.gnome.org/pub/GNOME/sources/esound/
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: audiofile-devel
BuildRequires: docbook-utils docbook-dtd412-xml

%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.

%package daemon
Summary: Original EsounD daemon (now superceeded by PulseAudio)
Group: Sound
Provides: esound = %{version}-%{release}

%description daemon
The original EsounD daemon (now superceeded by PulseAudio)

%package utils
Summary: Utilities for EsounD
Group: Sound

%description utils
Utility applications for EsounD

%package -n %{libname}
Summary: Libraries for EsounD
Group: System/Libraries
Provides: libesound
Requires: esound

%description -n %{libname}
These are the libraries for EsounD.

%package -n %{develname}
Summary:	Includes and more to develop EsounD applications
Group:		Development/C
Requires:	audiofile-devel 
Requires:	%{libname} = %{version}
Provides: 	libesound-devel
Provides:	esound-devel
Obsoletes: 	%{libname}-devel

%description -n %{develname}
Libraries, include files and other resources you can use to develop EsounD
applications.

%prep
%setup -q
%patch0 -p1 -b .defaultoptions
%patch3 -p1 -b .preventlock

%build

%configure2_5x --with-libwrap --disable-alsa
%make

%install
rm -rf %buildroot installed-docs
%makeinstall_std
mv %buildroot%_datadir/doc/esound installed-docs

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files daemon
%config(noreplace) %{_sysconfdir}/esd.conf
%{_bindir}/esd
%{_mandir}/man1/esd.1*

%files utils
%defattr(-, root, root)
%doc installed-docs/*
%doc AUTHORS INSTALL NEWS README TIPS TODO
%{_bindir}/esdcat
%{_bindir}/esdctl
%{_bindir}/esddsp
%{_bindir}/esdfilt
%{_bindir}/esdloop
%{_bindir}/esdmon
%{_bindir}/esdplay
%{_bindir}/esdrec
%{_bindir}/esdsample
%{_mandir}/man1/esd[a-z]*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%defattr(-, root, root)
%{_bindir}/esd-config
%{_includedir}/*
%{_datadir}/aclocal/*
%{_libdir}/*a
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/esd-config.1*




%changelog
* Wed Sep 03 2008 Götz Waschk <waschk@mandriva.org> 0.2.40-1mdv2009.0
+ Revision: 279958
- new version
- drop patch 1

  + Emmanuel Andry <eandry@mandriva.org>
    - apply devel policy
    - check major

* Wed Jul 16 2008 Götz Waschk <waschk@mandriva.org> 0.2.39-1mdv2009.0
+ Revision: 236263
- fix buildrequires
- new version
- update license
- drop patches 2,4
- patch to make it build

* Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.2.38-7mdv2009.0
+ Revision: 220727
- rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu Feb 07 2008 Frederic Crozat <fcrozat@mandriva.com> 0.2.38-6mdv2008.1
+ Revision: 163719
- update patch4 to fix memory leak (Ubuntu)

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Dec 12 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.38-5mdv2008.1
+ Revision: 117849
- Add missing dependencies

* Sat Dec 08 2007 Colin Guthrie <cguthrie@mandriva.org> 0.2.38-4mdv2008.1
+ Revision: 116534
- Split package into daemon and utils subpackages
- Add multi-user patch (changes default socket path

* Fri Nov 16 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.38-3mdv2008.1
+ Revision: 109069
- Update patch2 with Fedora version and add bug number for it

* Fri Sep 21 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.38-2mdv2008.0
+ Revision: 91771
- Update patch0 : lower sound card release to 1s inactivity
- Patch3 (Ubuntu): protect dsp_init with a mutex to prevent race conditions from multiple calls

* Fri May 04 2007 Götz Waschk <waschk@mandriva.org> 0.2.38-1mdv2008.0
+ Revision: 22230
- new version
- drop patch 3


* Sat Mar 31 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.37-3mdv2007.1
+ Revision: 150022
- Update patch0: release audio device after 2s inactivity when esd is started
  manually too (Mdv bug #30006)

* Mon Mar 19 2007 Frederic Crozat <fcrozat@mandriva.com> 0.2.37-2mdv2007.1
+ Revision: 146409
- Patch3 (SVN): fix 99%% cpu and fd leaks (Mdv bug #29640)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - no need to package big ChangeLog when NEWS is already there

* Tue Feb 27 2007 Götz Waschk <waschk@mandriva.org> 0.2.37-1mdv2007.1
+ Revision: 126475
- fix buildrequires
- Import esound

* Mon Feb 26 2007 Götz Waschk <waschk@mandriva.org> 0.2.37-1mdv2007.1
- add docs
- unpack patches
- drop patch 3
- New version 0.2.37

* Wed Aug 23 2006 Frederic Crozat <fcrozat@mandriva.com> 0.2.36-5mdv2007.0
- Update patch3, fix bug #24365

* Fri Aug 11 2006 Frederic Crozat <fcrozat@mandriva.com> 0.2.36-4mdv2007.0
- Patch4 (CVS): various bug fixes
- Use mkrel

* Mon May 15 2006 Stefan van der Eijk <stefan@eijk.nu> 0.2.36-3mdk
- rebuild for sparc

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 0.2.36-2mdk
- Rebuild

* Wed Jun 08 2005 Götz Waschk <waschk@mandriva.org> 0.2.36-1mdk
- license is LGPL
- New release 0.2.36

* Thu Feb 24 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.2.35-2mdk
- cleanup patch2 (libdir) to make esd-config arch-independent

* Fri Aug 13 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.2.35-1mdk
- Release 0.2.35
- Regenerate patch0
- Enable libtoolize

* Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.34-2mdk
- disable alsa again (fcrozat)

* Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.34-1mdk
- reenable alsa
- new version