File pulseaudio.spec of Package pulseaudio

#
# spec file for package pulseaudio (Version 0.9.6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           pulseaudio
BuildRequires:  alsa-devel doxygen glib2-devel hal-devel jack-devel 
BuildRequires:  libatomic_ops-devel libsamplerate-devel libsndfile-devel 
BuildRequires:  xorg-x11-devel
BuildRequires:  flac-devel gconf2-devel gettext-devel libcap-devel liboil-devel
BuildRequires:  pkgconfig tcpd-devel
%if ! 0%{?sles_version} == 10
BuildRequires:  avahi-devel
%endif

%define svnver r1501
%define tarver 0.9.6

Summary:        A Networked Sound Server
Version:        %{tarver}%{svnver}
Release:        0.1.pzb
License:        GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          System/Sound Daemons
Source:         %{name}-%{tarver}.tar.bz2
Patch:          pulseaudio-0.9.5-esd-max-samplesize.diff
Patch1:         pulseaudio-0.9.5-use-master.patch
Patch2:         pulseaudio-0.9.6-gcc-fix.diff
Patch3:         pulseaudio-0.9.6-no-flist-test.diff
# Latest snapshot from SVN
Patch100:	pulseaudio-%{tarver}-%{svnver}.patch
# Allow older HAL for SLE10
Patch101:       pulseaudio-0.9.5-halversion.patch
URL:            http://pulseaudio.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pulseaudio is a networked sound server for Linux and other Unix like
operating systems and Microsoft Windows. It is intended to be an
improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).



Authors:
--------
    Lennart Poettering
    Pierre Ossman

%debug_package
%package libs
Summary:        System libraries for pulseaudio
Group:          System/Libraries

%description libs
This package contains the system libraries for clients of pulseaudio
sound server.



Authors:
--------
    Lennart Poettering
    Pierre Ossman

%package devel
Summary:        Development package for the pulseaudio library
Group:          Development/Libraries/C and C++
Requires:       pulseaudio-libs = %{version} libsndfile-devel libsamplerate-devel liboil-devel libtool

%description devel
This package contains the files needed to compile programs that use the
pulseaudio library.



Authors:
--------
    Lennart Poettering
    Pierre Ossman

%package esd
Summary:	ESound Compatibility for PulseAudio
Group:		System/Sound Daemons
Requires:	pulseaudio = %{version}
Conflicts:	esound-progs

%description esd
This package contains the modules and programs necesssary for PulseAudio to be
 a drop in replacement for esd

%prep
%setup -q -n %{name}-%{tarver}
%patch100 -p0
%patch -p1
%patch1
%patch2
%ifarch ppc ppc64
%patch3
%endif
%if ! 0%{?sles_version} == 10
%patch101 -p1
%endif
cp /usr/share/gettext/config.rpath .
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --force --install

%build
%configure --disable-ltdl-install --disable-static --disable-rpath
make
make doxygen

%install
%makeinstall

# fix path (gnome is in /opt/gnome not usr)
cp $RPM_BUILD_ROOT%{_sysconfdir}/pulse/default.pa \
	$RPM_BUILD_ROOT%{_sysconfdir}/pulse/default.pa.orig
sed -e 's@/usr/share/sounds@/opt/gnome/share/sounds@g' \
	< $RPM_BUILD_ROOT%{_sysconfdir}/pulse/default.pa.orig \
	> $RPM_BUILD_ROOT%{_sysconfdir}/pulse/default.pa
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/pulse/default.pa.orig

chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
# remove *.la files
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/pulse*/modules/*.la

ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd

%post libs
%run_ldconfig

%postun libs
%run_ldconfig

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc GPL LGPL LICENSE README
%{_bindir}/p*
%{_libdir}/pulse*
%dir %{_sysconfdir}/pulse
%config %{_sysconfdir}/pulse/*
%{_libdir}/libpulsedsp.so

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

%files devel
%defattr(-, root, root)
%doc doxygen/html
# libpulsedsp.so goes in the main package
%{_libdir}/libpulse.so
%{_libdir}/libpulsecore.so
%{_libdir}/libpulse-*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/pulse*

%files esd
%defattr(-, root, root)
%{_bindir}/esd*

%changelog
* Sat Jun 30 2007 pzb@novell.com
- Update to 0.9.6 + r1501

* Mon Apr 9 2007 pzb@novell.com
- New build dependency on libatomic_ops-devel
- Add patch to fix build
- Make esd a symlink to esdcompat, rather than a copy
- Use default config file, just fix paths

* Sun Apr 8 2007 pzb@novell.com
- Update to r1437 from subversion

* Thu Oct 18 2006 pzb@novell.com
- Import into build service
- Make avahi-devel requirement on non-SLE10 only 

* Tue Oct 17 2006 pzb@novell.com
- Update default.pa to use hal
- Add esd capture fix
- esd compat package now only includes the daemon

* Fri Oct 13 2006 pzb@novell.com
- Add esd compat package
- Update default.pa
- Add avahi support

* Thu Oct 12 2006 pzb@novell.com
- Backport to SLE10
- Add more buildrequires
- Add patch to allow for SLE10 HAL version

* Wed Sep 06 2006 - tiwai@suse.de
- updated to version 0.9.5:
  * add module-hal-detect module
  * shared memory transfer method for local clients
  * update module-volume-restore to automatically restore the output device
  * add a new module module-rescue-streams
  * add support for moving streams "hot" between sinks/sources
  * reduce memory consumption and CPU load
  * add new module module-gconf for reading additional configuration
  * fix module-tunnel to work with the latest protocol
  * miscellaneous fixes
* Thu Aug 17 2006 - tiwai@suse.de
- move libpulsedsp.so to the main package from devel sub package
  (#199735).
* Mon Jul 31 2006 - tiwai@suse.de
- updated to version 0.9.4:
  * support for system-wide pulseaudio daemon.
  * add authentication by IP address range ACL (auth-ip-acl=)
  * support to set resource limits on platforms
  * remove loopback= argument for module-*-protocol-tcp
  * remove obsolete GLIB event loop adapter
  * add an API to check whether a source/sink is hardware or virtual
  * remove warning about SIGPIPE in client apps
  * improve latency calculation of NULL sink
  * port Zeroconf code from the HOWL API to the native Avahi API
  * fix broken time event handling in GLIB
  * Some valgrind/massif fixes
  * Fix pkg-config files for AMD64
* Wed Jul 12 2006 - tiwai@suse.de
- renamed from polypaudio to pulseaudio (the project name was
  changed)
- update to version 0.9.2:
  * increase maximum number of concurrent connections
  * fix latency interpolation
  * add support for reverse endian sound cards
  * add support for recording in padsp
  * reenable CPU load limiter
  * other bugfixes
openSUSE Build Service is sponsored by