File libao.spec of Package libao

#
# spec file for package libao (Version 0.8.8)
#
# Copyright (c) 2008 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
BuildRequires:  arts-devel libesd-devel
%define my_provides /tmp/my-provides
Summary:        A Cross-Platform Audio Output Library
Version:        0.8.8
Release:        81
Group:          System/Libraries
License:        LGPL v2.1 or later
Url:            http://www.xiph.org/ao/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Patch:          libao-alsa-fix.diff
Patch1:         lib64.dif
Patch2:         libao-configure.diff
Patch3:         libao-pkgconfig.diff

%description
Libao is a cross-platform audio output library.  It currently supports
ESD, OSS, Solaris, and IRIX.



Authors:
--------
    Aaron Holtzman
    Stan Seibert <indigo@aztec.asu.edu>
    Jack Moffitt <jack@icecast.org>

%package devel
License:        LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
Requires:       glibc-devel, libao = %{version}

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Aaron Holtzman
    Stan Seibert <indigo@aztec.asu.edu>
    Jack Moffitt <jack@icecast.org>

%package arts
License:        GPL v2 or later
Summary:        aRts output plugin for libao
Group:          System/Libraries

%description arts
This package contains the aRts output plugin for libao.



Authors:
--------
    Aaron Holtzman
    Stan Seibert <indigo@aztec.asu.edu>
    Jack Moffitt <jack@icecast.org>

%prep
%setup
%patch
%patch2
%patch3
if [ "%_lib" == "lib64" ]; then
%patch1
fi
# remove obsolete macros
rm -f acinclude.m4

%build
autoreconf -fi
%configure \
	--enable-alsa09 \
	--disable-static
make

%install
%makeinstall
# cleanup buildroot, remove unpackaged files
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/*/*/*.la
rm -rf $RPM_BUILD_ROOT/usr/share/doc/libao-%{version}
# 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}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files
%defattr(-,root,root)
%{_libdir}/libao.so.*
%dir %{_libdir}/ao
%dir %{_libdir}/ao/plugins-2
%{_libdir}/ao/*/libalsa*.so
%{_libdir}/ao/*/libesd.so
%{_libdir}/ao/*/liboss.so

%files devel
%defattr(-,root,root)
%doc AUTHORS CHANGES COPYING README TODO
%doc doc/*.html doc/*.c doc/*.css
%doc %{_mandir}/*/*
%{_includedir}/ao
%{_libdir}/libao.so
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/*.pc

%files arts
%defattr(-,root,root)
%{_libdir}/ao/plugins-2/libarts.so

%changelog
* Mon Apr 28 2008 tiwai@suse.de
- fixed dependency in *.pc (bnc#384168)
- removed obsolete run_ldconfig macro
* Thu Aug 02 2007 tiwai@suse.de
- updated to version 0.8.7:
  * obsolete alsa device renamed to alsa05
  * the 'alsa' device now uses the 0.9/1.0 API
  * ALSA driver fixes
- updated to version 0.8.8:
  * New win32 driver
  * Few fixes and changes in autotools and configuration files.
* Mon Apr 16 2007 tiwai@suse.de
- follow library packaging policy
  * move docs to devel package
  * remove *.la files
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jul 07 2005 tiwai@suse.de
- remove -fsigned-char (#93877)
- fixed Requires of devel subpackage.
* Wed Apr 13 2005 tiwai@suse.de
- added audiofile-devel to neededforbuild.
* Mon Feb 07 2005 tiwai@suse.de
- fixed the buffer allocation of ALSA plugin.
* Fri Jan 21 2005 tiwai@suse.de
- updated to version 0.8.6.
* Wed Nov 24 2004 tiwai@suse.de
- updated to version 0.8.5.
* Sun Apr 11 2004 aj@suse.de
- Does not need kdelibs3.
* Mon Feb 09 2004 tiwai@suse.de
- fixed builds on s390/s390x.
* Wed Jan 21 2004 tiwai@suse.de
- fixed quoting in m4 files.
* Fri Jan 09 2004 adrian@suse.de
- add %%run_ldconfig to %%postun
* Mon Oct 06 2003 ro@suse.de
- added glib2, glib2-devel to neededforbuild (arts)
* Wed Jul 23 2003 uli@suse.de
- no ALSA on s390x
- esound available on s390*
* Mon Jun 02 2003 ro@suse.de
- remove unpackaged files from buildroot
* Tue Jul 23 2002 tiwai@suse.de
- fixed m4 file for lib64.
- provides the backward compatible m4 file.
* Mon Jul 22 2002 tiwai@suse.de
- updated to version 0.8.3.
- clean up the spec file.
- added %%run_ldconfig.
* Mon May 06 2002 meissner@suse.de
- %%_lib fixes
* Tue Mar 12 2002 tiwai@suse.de
- added ao directory to the file list.
* Fri Feb 15 2002 ro@suse.de
- changed neededforbuild <kdelibs3-artsd> to <arts arts-devel>
* Tue Feb 05 2002 tiwai@suse.de
- fixed alsa09 plugin.  now it should work well on SB Live, too.
* Tue Jan 22 2002 ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Fri Jan 04 2002 tiwai@suse.de
- updated to 0.8.2.
  sync with cvs 2002.01.04.
* Tue Dec 04 2001 tiwai@suse.de
- fixed filelist.
- sync with cvs 2001.12.04.
* Mon Dec 03 2001 tiwai@suse.de
- Enabled support for ALSA 0.9.0.
* Wed Oct 24 2001 tiwai@suse.de
- sync with cvs 20011024.  version 0.8.1.
  + ALSA 0.9.x support
  + ver.2 plugins added
- removed Requires to libao from devel & arts.
* Mon Aug 13 2001 tiwai@suse.de
- updated to 1.0rc2 from cvs 20010813.
* Fri Aug 03 2001 tiwai@suse.de
- added kdelibs-arts to needeforbuild.
- fixed build on s390.
* Thu Jun 07 2001 iwai@suse.de
- fixed build with the recent libtool.
* Wed Mar 21 2001 tiwai@suse.de
- added alsa plugin.
- added arts plugin.  provided as a separate package, libao-arts.
* Mon Feb 26 2001 tiwai@suse.de
- Updated to ver.0.6.0.
* Wed Jan 31 2001 tiwai@suse.de
- Initial version: 0.5.0
openSUSE Build Service is sponsored by