File libao-pulse.spec of Package libao-pulse
#
# spec file for package libao-pulse (Version 0.9.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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: 176
Group: System/Libraries
License: GPL v2 or later
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