File openal-alsa-emu10k1.spec of Package openal-alsa-emu10k1
#
# spec file for package openal-alsa-emu10k1 (Version 1.2)
#
# Copyright (c) 2007 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: openal-alsa-emu10k1
BuildRequires: alsa-devel
License: LGPL-2.1+
Group: System/Libraries
Version: 1.2
Release: 1
URL: http://www.openal.org/
Summary: OpenAL for Emu10k1
Source: %{name}-%{version}.tar.bz2
Patch: openal-alsa-emu10k1-1.2-fix.diff
Patch1: openal-alsa-emu10k1-rpmflags.diff
Patch2: openal-alsa-emu10k1-gcc-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Conflicts: openal
%description
OpenAL implementation specific for SoundBlaster Live! and Audigy with
ALSA emu10k1 driver.
Authors:
--------
Christopher John Purnell
%prep
%setup -q
%patch -p1
%patch1
%patch2
%build
cd src
make %{?jobs:-j %jobs}
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}
install -c -m 0755 src/libopenal.so.* $RPM_BUILD_ROOT%{_libdir}
(cd $RPM_BUILD_ROOT%{_libdir}; ln -s libopenal.so.* libopenal.so.0)
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING ChangeLog README
%doc etc
%{_libdir}/libopenal.so.*
%changelog