ALT Linux repositórios
Group :: Sistema/Servidores
RPM: pulseaudio
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_with oss
%def_with alsa
%def_with gconf
%def_with avahi
%def_with jack
%def_with asyncns
%def_with tcpwrap
%def_with lirc
%def_with hal
%add_findprov_lib_path %_libdir/pulse-0.9/modules
Name: pulseaudio
Version: 0.9.7
Release: alt1
Summary: PulseAudio is a networked sound server
Group: System/Servers
License: LGPL
Url: http://pulseaudio.org/
#Source0: http://0pointer.de/lennart/projects/pulseaudio/%name-%version.tar.gz
Source0: %name-%version.svn20070816.tar.gz
Source1: %name.control
Source2: %name.sysconfig
Source3: %name.init
# old patches
Patch0: pulseaudio-0.9.6-alt-esd.patch
Patch1: pulseaudio-0.9.6-alt-hal.patch
# old patches
Patch2: pulseaudio-0.9.6-alt-localstatedir.patch
Patch3: pulseaudio-0.9.7-alt-dbus.patch
Patch4: pulseaudio-0.9.7-alt-default.pa.in.patch
Packager: Igor Zubkov <icesik at altlinux.org>
BuildRequires: doxygen libcap-devel libltdl-devel liboil-devel libsamplerate-devel libSM-devel libsndfile-devel libX11-devel
# why static?
BuildRequires: libatomic_ops-devel-static
%{?_with_alsa:BuildRequires: libalsa-devel}
%{?_with_jack:BuildRequires: jackit-devel}
%{?_with_asyncns:BuildRequires: libasyncns-devel}
%{?_with_avahi:BuildRequires: libavahi-devel}
%{?_with_gconf:BuildRequires: libGConf-devel}
%{?_with_hal:BuildRequires: libhal-devel}
%{?_with_lirc:BuildRequires: liblirc-devel}
%{?_with_tcpwrap:BuildRequires: libwrap-devel}
Requires: %name-utils = %version-%release
Requires: %name-daemon = %version-%release
Requires: %name-gconf = %version-%release
Provides: polypaudio = %version
Obsoletes: polypaudio
%description
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
A sound server can serve many functions:
* Software mixing of multiple audio streams, bypassing any restrictions the
hardware has.
* Network transparency, allowing an application to play back or record audio
on a different machine than the one it is running on.
* Sound API abstraction, alleviating the need for multiple backends in
applications to handle the wide diversity of sound systems out there.
* Generic hardware abstraction, giving the possibility of doing things like
individual volumes per application.
Features:
* Library licensed under LGPL and server daemon under GPL
* Extensible plugin architecture (by loading dynamic loadable modules with dlopen())
* Support for static linking of modules, allowing a single binary for all your needs
* Module autoloading
* Support for more than one sink/source
* Good low latency behaviour
* Very accurate latency measurement for playback and recording.
* Client side latency interpolation
* Embedabble into other software (the core is available as C library)
* Completely asynchronous C API, complemented by two synchronous variants for
simple use in synchronous applications
* Simple command line interface for reconfiguring the daemon while running
* Flexible, implicit sample type conversion and resampling
* "Zero-Copy" architecture
* May be used to combine multiple sound cards to one (with sample rate adjustment)
* Ability to fully synchronize multiple playback streams
This virtual package contains pulseaudio daemon and utilities.
%package utils
Summary: PulseAudio client side utilities
Group: Sound
Requires: lib%name = %version-%release
%package daemon
Summary: PulseAudio daemon
Group: Sound
Requires: lib%name = %version-%release
PreReq: shadow-utils control
%package gconf
Summary: PulseAudio -- gnome-related part
Group: Sound
Requires: lib%name = %version-%release
%package -n lib%name
Summary: PulseAudio shared libraries
Group: System/Libraries
Provides: libpolypaudio = %version
Obsoletes: libpolypaudio
%package -n lib%name-devel
Summary: Development files for %name
Group: Development/C
Requires: lib%name = %version-%release
Provides: libpolypaudio-devel = %version
Obsoletes: libpolypaudio-devel
%package -n lib%name-devel-doc
Summary: Development documentation for %name
Group: Development/C
Provides: libpolypaudio-devel-doc = %version
Obsoletes: libpolypaudio-devel-doc
%description daemon
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains PulseAudio daemon.
%description utils
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains PulseAudio client-side utilities.
%description gconf
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains gnome-related part of PulseAudio.
%description -n lib%name
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains the pulseaudio shared libraries.
%description -n lib%name-devel
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains development files for pulseaudio.
%description -n lib%name-devel-doc
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains doxygen documentation for pulseaudio.
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%__autoreconf
%configure \
--with-access-group=audio \
--with-realtime-group=realtime \
%{subst_with oss} \
%{subst_with alsa} \
%{subst_with gconf} \
%{subst_with avahi} \
%{subst_with jack} \
%{subst_with asyncns} \
%{subst_with tcpwrap} \
%{subst_with lirc} \
%{subst_with hal} \
--disable-static \
#
%make_build all doxygen
%install
%make_install DESTDIR=%buildroot install
install -pm0755 -D %SOURCE1 %buildroot%_sysconfdir/control.d/facilities/pulseaudio
install -pm0644 -D %SOURCE2 %buildroot%_sysconfdir/sysconfig/pulseaudio
install -pm0755 -D %SOURCE3 %buildroot%_initdir/pulseaudio
chmod 0755 %buildroot%_bindir/pulseaudio
find %buildroot%_libdir -name \*.la -delete
mkdir -p %buildroot%_localstatedir/pulse
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%pre daemon
%_sbindir/groupadd -r -f realtime &> /dev/null
%_sbindir/groupadd -r -f pulse &> /dev/null
%_sbindir/useradd -r -g pulse -G audio -d %_localstatedir/pulse -s /dev/null \
-c "Pulseaudio daemon" -M -n pulse &>/dev/null ||:
[ $1 -eq 1 ] || /usr/sbin/control-dump pulseaudio
%post daemon
[ $1 -eq 1 ] || /usr/sbin/control-restore pulseaudio
%files
%files daemon
%config %_initdir/pulseaudio
%dir %_sysconfdir/pulse
%config %_sysconfdir/control.d/facilities/pulseaudio
%config(noreplace) %_sysconfdir/sysconfig/pulseaudio
%config(noreplace) %_sysconfdir/pulse/daemon.conf
%config(noreplace) %_sysconfdir/pulse/default.pa
%config %_sysconfdir/xdg/autostart/pulseaudio-module-xsmp.desktop
%_bindir/pulseaudio
%_bindir/esdcompat
%_libdir/libpulsecore.so.*
%_libdir/pulse-0.9/modules/*.so
%attr(0771,root,pulse) %dir %_localstatedir/pulse
%{?_with_gconf:%exclude %_libdir/pulse-0.9/modules/module-gconf.so}
%files utils
%_bindir/pabrowse
%_bindir/pacat
%_bindir/pacmd
%_bindir/pactl
%_bindir/padsp
%_bindir/paplay
%_bindir/parec
%_bindir/pax11publish
%_bindir/pasuspender
%_libdir/libpulsedsp.so
%if_with gconf
%files gconf
%_libexecdir/pulse/gconf-helper
%_libdir/pulse-0.9/modules/module-gconf.so
%endif
%files -n lib%name
%doc LICENSE README todo
%dir %_sysconfdir/pulse
%config(noreplace) %_sysconfdir/pulse/client.conf
%_libdir/libpulse.so.*
%_libdir/libpulse-browse.so.*
%_libdir/libpulse-simple.so.*
%_libdir/libpulse-mainloop-glib.so.*
%files -n lib%name-devel
%_libdir/lib*.so
%dir %_includedir/pulse/
%_includedir/pulse/*.h
%dir %_includedir/pulsecore/
%_includedir/pulsecore/*.h
%_pkgconfigdir/*.pc
%files -n lib%name-devel-doc
%doc doxygen/html
%changelog
…
Todas as alterações você pod ver aqui
%def_with alsa
%def_with gconf
%def_with avahi
%def_with jack
%def_with asyncns
%def_with tcpwrap
%def_with lirc
%def_with hal
%add_findprov_lib_path %_libdir/pulse-0.9/modules
Name: pulseaudio
Version: 0.9.7
Release: alt1
Summary: PulseAudio is a networked sound server
Group: System/Servers
License: LGPL
Url: http://pulseaudio.org/
#Source0: http://0pointer.de/lennart/projects/pulseaudio/%name-%version.tar.gz
Source0: %name-%version.svn20070816.tar.gz
Source1: %name.control
Source2: %name.sysconfig
Source3: %name.init
# old patches
Patch0: pulseaudio-0.9.6-alt-esd.patch
Patch1: pulseaudio-0.9.6-alt-hal.patch
# old patches
Patch2: pulseaudio-0.9.6-alt-localstatedir.patch
Patch3: pulseaudio-0.9.7-alt-dbus.patch
Patch4: pulseaudio-0.9.7-alt-default.pa.in.patch
Packager: Igor Zubkov <icesik at altlinux.org>
BuildRequires: doxygen libcap-devel libltdl-devel liboil-devel libsamplerate-devel libSM-devel libsndfile-devel libX11-devel
# why static?
BuildRequires: libatomic_ops-devel-static
%{?_with_alsa:BuildRequires: libalsa-devel}
%{?_with_jack:BuildRequires: jackit-devel}
%{?_with_asyncns:BuildRequires: libasyncns-devel}
%{?_with_avahi:BuildRequires: libavahi-devel}
%{?_with_gconf:BuildRequires: libGConf-devel}
%{?_with_hal:BuildRequires: libhal-devel}
%{?_with_lirc:BuildRequires: liblirc-devel}
%{?_with_tcpwrap:BuildRequires: libwrap-devel}
Requires: %name-utils = %version-%release
Requires: %name-daemon = %version-%release
Requires: %name-gconf = %version-%release
Provides: polypaudio = %version
Obsoletes: polypaudio
%description
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
A sound server can serve many functions:
* Software mixing of multiple audio streams, bypassing any restrictions the
hardware has.
* Network transparency, allowing an application to play back or record audio
on a different machine than the one it is running on.
* Sound API abstraction, alleviating the need for multiple backends in
applications to handle the wide diversity of sound systems out there.
* Generic hardware abstraction, giving the possibility of doing things like
individual volumes per application.
Features:
* Library licensed under LGPL and server daemon under GPL
* Extensible plugin architecture (by loading dynamic loadable modules with dlopen())
* Support for static linking of modules, allowing a single binary for all your needs
* Module autoloading
* Support for more than one sink/source
* Good low latency behaviour
* Very accurate latency measurement for playback and recording.
* Client side latency interpolation
* Embedabble into other software (the core is available as C library)
* Completely asynchronous C API, complemented by two synchronous variants for
simple use in synchronous applications
* Simple command line interface for reconfiguring the daemon while running
* Flexible, implicit sample type conversion and resampling
* "Zero-Copy" architecture
* May be used to combine multiple sound cards to one (with sample rate adjustment)
* Ability to fully synchronize multiple playback streams
This virtual package contains pulseaudio daemon and utilities.
%package utils
Summary: PulseAudio client side utilities
Group: Sound
Requires: lib%name = %version-%release
%package daemon
Summary: PulseAudio daemon
Group: Sound
Requires: lib%name = %version-%release
PreReq: shadow-utils control
%package gconf
Summary: PulseAudio -- gnome-related part
Group: Sound
Requires: lib%name = %version-%release
%package -n lib%name
Summary: PulseAudio shared libraries
Group: System/Libraries
Provides: libpolypaudio = %version
Obsoletes: libpolypaudio
%package -n lib%name-devel
Summary: Development files for %name
Group: Development/C
Requires: lib%name = %version-%release
Provides: libpolypaudio-devel = %version
Obsoletes: libpolypaudio-devel
%package -n lib%name-devel-doc
Summary: Development documentation for %name
Group: Development/C
Provides: libpolypaudio-devel-doc = %version
Obsoletes: libpolypaudio-devel-doc
%description daemon
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains PulseAudio daemon.
%description utils
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains PulseAudio client-side utilities.
%description gconf
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains gnome-related part of PulseAudio.
%description -n lib%name
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains the pulseaudio shared libraries.
%description -n lib%name-devel
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains development files for pulseaudio.
%description -n lib%name-devel-doc
PulseAudio is a networked sound server, similar in theory to the Enlightened
Sound Daemon (EsounD). PulseAudio is however much more advanced and has
numerous features.
This package contains doxygen documentation for pulseaudio.
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%__autoreconf
%configure \
--with-access-group=audio \
--with-realtime-group=realtime \
%{subst_with oss} \
%{subst_with alsa} \
%{subst_with gconf} \
%{subst_with avahi} \
%{subst_with jack} \
%{subst_with asyncns} \
%{subst_with tcpwrap} \
%{subst_with lirc} \
%{subst_with hal} \
--disable-static \
#
%make_build all doxygen
%install
%make_install DESTDIR=%buildroot install
install -pm0755 -D %SOURCE1 %buildroot%_sysconfdir/control.d/facilities/pulseaudio
install -pm0644 -D %SOURCE2 %buildroot%_sysconfdir/sysconfig/pulseaudio
install -pm0755 -D %SOURCE3 %buildroot%_initdir/pulseaudio
chmod 0755 %buildroot%_bindir/pulseaudio
find %buildroot%_libdir -name \*.la -delete
mkdir -p %buildroot%_localstatedir/pulse
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%pre daemon
%_sbindir/groupadd -r -f realtime &> /dev/null
%_sbindir/groupadd -r -f pulse &> /dev/null
%_sbindir/useradd -r -g pulse -G audio -d %_localstatedir/pulse -s /dev/null \
-c "Pulseaudio daemon" -M -n pulse &>/dev/null ||:
[ $1 -eq 1 ] || /usr/sbin/control-dump pulseaudio
%post daemon
[ $1 -eq 1 ] || /usr/sbin/control-restore pulseaudio
%files
%files daemon
%config %_initdir/pulseaudio
%dir %_sysconfdir/pulse
%config %_sysconfdir/control.d/facilities/pulseaudio
%config(noreplace) %_sysconfdir/sysconfig/pulseaudio
%config(noreplace) %_sysconfdir/pulse/daemon.conf
%config(noreplace) %_sysconfdir/pulse/default.pa
%config %_sysconfdir/xdg/autostart/pulseaudio-module-xsmp.desktop
%_bindir/pulseaudio
%_bindir/esdcompat
%_libdir/libpulsecore.so.*
%_libdir/pulse-0.9/modules/*.so
%attr(0771,root,pulse) %dir %_localstatedir/pulse
%{?_with_gconf:%exclude %_libdir/pulse-0.9/modules/module-gconf.so}
%files utils
%_bindir/pabrowse
%_bindir/pacat
%_bindir/pacmd
%_bindir/pactl
%_bindir/padsp
%_bindir/paplay
%_bindir/parec
%_bindir/pax11publish
%_bindir/pasuspender
%_libdir/libpulsedsp.so
%if_with gconf
%files gconf
%_libexecdir/pulse/gconf-helper
%_libdir/pulse-0.9/modules/module-gconf.so
%endif
%files -n lib%name
%doc LICENSE README todo
%dir %_sysconfdir/pulse
%config(noreplace) %_sysconfdir/pulse/client.conf
%_libdir/libpulse.so.*
%_libdir/libpulse-browse.so.*
%_libdir/libpulse-simple.so.*
%_libdir/libpulse-mainloop-glib.so.*
%files -n lib%name-devel
%_libdir/lib*.so
%dir %_includedir/pulse/
%_includedir/pulse/*.h
%dir %_includedir/pulsecore/
%_includedir/pulsecore/*.h
%_pkgconfigdir/*.pc
%files -n lib%name-devel-doc
%doc doxygen/html
%changelog
…
Todas as alterações você pod ver aqui