File libao-pulse.spec of Package libao-pulse

#
# spec file for package libao-pulse (Version 0.9.3)
#
# 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:           libao-pulse
BuildRequires:  libao-devel pkgconfig pulseaudio-devel
%define my_provides /tmp/my-provides
Summary:        PulseAudio Plug-in for libao
Version:        0.9.3
Release:        1
Group:          System/Libraries
License:        GNU General Public License (GPL)
URL:            http://0pointer.de/lennart/projects/libao-pulse/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Patch:          libao-pulse-configure-fix.diff

%description
libao-pulse is a libao driver for the PulseAudio sound server.



Authors:
--------
    Lennart Poettering <mzcnzna@0pointer.de>

%prep
%setup
%patch
%{?suse_update_config:%{suse_update_config -f}}

%build
autoreconf -fi
%configure --disable-static --disable-lynx
make

%install
%makeinstall
# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/ao/*/*.la
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v %{_libdir}/ao/ | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define __find_provides %{my_provides}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
rm -f %{my_provides}

%files
%defattr(-,root,root)
%doc README
%{_libdir}/ao/*

%changelog
* Wed Jun 13 2007 - tiwai@suse.de
- initial version: 0.9.3
openSUSE Build Service is sponsored by