File alsa-oss.spec of Package alsa-oss

# spec file for package alsa-oss
# Copyright (c) 2014 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

Name:           alsa-oss
BuildRequires:  alsa-devel
BuildRequires:  libtool
%define package_version	1.0.28
Summary:        ALSA-OSS Wrapper
License:        GPL-2.0+
Group:          System/Libraries
Version:        1.0.28
Release:        0
Source2:        baselibs.conf
# Patch:          alsa-oss-hg-fixes.diff
# upstream fixes
%ifarch s390x
Recommends:     %{name}-32bit = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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

autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a
rm -f $RPM_BUILD_ROOT%{_libdir}/
rm -f $RPM_BUILD_ROOT%{_includedir}/*

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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