File alsa-oss.spec of Package alsa-oss

#
# spec file for package alsa-oss (Version 1.0.17)
#
# 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:           alsa-oss
BuildRequires:  alsa-devel
%define package_version	1.0.17
License:        GPL v2 or later
Group:          System/Libraries
AutoReqProv:    on
Summary:        ALSA-OSS Wrapper
Version:        1.0.17
Release:        24
Source:         ftp://ftp.alsa-project.org/pub/oss/alsa-oss-%{package_version}.tar.bz2
# Patch:          alsa-oss-hg-fixes.diff
Url:            http://www.alsa-project.org/
%ifarch x86_64 s390x
Recommends:     %{name}-32bit = %{version}
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the wrapper library and script to run OSS
applications using ALSA API.



Authors:
--------
    Jaroslav Kysela <perex@perex.cz>
    Takashi Iwai <tiwai@suse.de>

%prep
%setup -q -n %{name}-%{package_version}
# %patch -p1

%build
autoreconf -fi
%configure --disable-static
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a
rm -f $RPM_BUILD_ROOT%{_libdir}/libalsatoss.so
rm -f $RPM_BUILD_ROOT%{_includedir}/*

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING
# .so must be in the main package because aoss requires it
%{_libdir}/libaoss.so*
%{_libdir}/libalsatoss.so.*
%{_bindir}/*
%doc %{_mandir}/man*/*

%changelog
* Tue Jul 15 2008 tiwai@suse.de
- updated to version 1.0.17:
  * just a version bump
* Thu May 15 2008 olh@suse.de
- remove unneeded Recommends: -64bit on ppc (bnc#390761)
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Fri Mar 07 2008 sbrabec@suse.cz
- Added bi-arch counterpart Recommends to prevent arch clashes
  (bnc#117079#c14).
* Tue Oct 16 2007 tiwai@suse.de
- updated to version 1.0.15:
  * Fix dsp->oss_format setting
* Thu May 31 2007 tiwai@suse.de
- updated to version 1.0.14-final
  just version number changes.
* Wed May 02 2007 tiwai@suse.de
- updated to version 1.0.14rc4:
  including HG fixes since 1.0.12
* Mon Apr 16 2007 tiwai@suse.de
- split from alsa package.
openSUSE Build Service is sponsored by