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 http://bugs.opensuse.org/
#
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
Source: ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-%{package_version}.tar.bz2
Source2: baselibs.conf
# Patch: alsa-oss-hg-fixes.diff
# upstream fixes
Url: http://www.alsa-project.org/
%ifarch 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.
%prep
%setup -q -n %{name}-%{package_version}
# %patch -p1
%build
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}
%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
%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