File openal.spec of Package openal
#
# spec file for package openal (Version 0.0.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: openal
%define DISTRIBUTABLE 1
BuildRequires: SDL-devel alsa-devel esound-devel gcc-c++ libvorbis-devel nasm
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
Version: 0.0.8
Release: 148
Url: http://www.openal.org/
Icon: openal.xpm
Summary: Open Audio Library
Source: %{name}-%{version}.tar.bz2
Source1: openalrc
Patch0: %{name}-%{version}-floatmul.patch
Patch1: %{name}-%{version}-gcc-4.2.diff
Patch2: %{name}-%{version}-alsa-backend-fix.diff
Patch3: %{name}-%{version}-5.1-support.diff
Patch4: %{name}-%{version}-speaker-config.diff
Patch5: %{name}-%{version}-device-auto-select.diff
Patch6: %{name}-%{version}-pkgconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OpenAL is an audio library designed in the spirit of OpenGL--machine
independent, cross platform, and data format neutral with a clean,
simple C-based API.
Authors:
--------
Garin Hiebert <ghiebert@creativelabs.com>
%package devel
License: LGPL v2.1 or later
Summary: Static libraries, header files and tests for freealut library
Requires: %{name} = %{version} glibc-devel alsa-devel libvorbis-devel
Group: Development/Libraries/C and C++
%description devel
freealut is a free implementation of OpenAL's ALUT standard.
Authors:
--------
Garin Hiebert <ghiebert@creativelabs.com>
%prep
%setup -q
%patch0
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6
%build
%{?suse_update_config:%{suse_update_config -f linux}}
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" \
%ifarch ia64
LDFLAGS=-Wl,-relax \
%endif
%configure \
--enable-optimization \
--enable-alsa \
--enable-arts \
--enable-esd \
--enable-vorbis \
--enable-sdl \
%if %DISTRIBUTABLE == 0
--enable-mp3 \
%endif
--enable-capture
#ifarch %ix86
# --enable-arch-asm \
#endif
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
#
# configuration
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}
install -m 644 $RPM_SOURCE_DIR/openalrc $RPM_BUILD_ROOT%{_sysconfdir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NOTES README TODO
%{_sysconfdir}/openalrc
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/*-config
%{_includedir}/AL
%{_libdir}/*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Wed Feb 27 2008 prusnak@suse.cz
- added libvorbis-devel to BuildRequires [#362737]
* Thu Sep 13 2007 sbrabec@suse.cz
- Fixed pkgconfig file (#237223, patch from Andreas Hanke).
* Thu Jul 05 2007 meissner@suse.de
- mark that we use alsa by explicitly buildrequire
and requires in the -devel package.
* Thu Jun 28 2007 tiwai@suse.de
- auto device-selection per speaker-num configuration.
* Tue Jun 26 2007 tiwai@suse.de
- add 5.1/7.1 speaker support
- fix ALSA backend
- add speaker-position config in ~/.openalrc.
* Sat Jun 09 2007 dmueller@suse.de
- add patch to fix build with gcc 4.2
* Fri Feb 16 2007 prusnak@suse.cz
- fixed crash in mixer (floatmul.patch) [#245470]
* Mon Oct 23 2006 sbrabec@suse.cz
- Updated to version 0.0.8:
* First official release.
* Fri Sep 01 2006 anosek@suse.cz
- fixed some compiler warnings [#185960] (openal-warnings.patch)
* Thu Jun 15 2006 dmueller@suse.de
- build parallel
* Fri Mar 17 2006 tiwai@suse.de
- Fixes for ALSA support (#159064)
o Fixed the handling of ALSA PCM parameters. Now working with
dmix, too.
o Changed the default ALSA PCM device to "default".
o Fixed possible open errors after reopening dmix.
* Thu Mar 09 2006 bk@suse.de
- Add esound-devel to BuildRequires (was implicily by SDL-devel)
- added gcc-c++ to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 sbrabec@suse.cz
- Updated to 2005-11-29 CVS snapshot of 1.0 branch (Linux_Spec1-0).
- Fixed bad declaration (#133984).
* Mon Aug 01 2005 sbrabec@suse.cz
- Updated to 2005-08-01 CVS snapshot of branch Linux_Spec1-0.
* Tue Mar 15 2005 sbrabec@suse.cz
- Removed incorrect ALSA flags (#72855).
* Thu Feb 03 2005 sbrabec@suse.cz
- Updated to 2005-01-06 CVS snapshot (version 0.0.8).
* Fri Jan 21 2005 ro@suse.de
- disable arch-asm (does not compile ATM)
* Fri Jan 21 2005 sbrabec@suse.cz
- Updated to 2005-01-06 CVS snapshot.
* Thu Sep 02 2004 sbrabec@suse.cz
- Updated to actual CVS snapshot.
* Wed Apr 28 2004 ro@suse.de
- added -fno-strict-aliasing
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Tue Dec 09 2003 ro@suse.de
- build with alsa compatibility defines
* Mon Oct 06 2003 ro@suse.de
- added glib2, glib2-devel to neededforbuild (arts)
* Mon Aug 11 2003 sbrabec@suse.cz
- Updated to actual CVS snapshot.
* Thu Jul 31 2003 ro@suse.de
- include sys/time.h before alsa
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Feb 10 2003 sbrabec@suse.cz
- Use %%install_info (bug #23445).
* Mon Feb 10 2003 sbrabec@suse.cz
- Updated to 20030131 CVS snapshot.
* Wed Oct 30 2002 sbrabec@suse.cz
- Updated to actual CVS version.
- Fixed compiler warnings.
* Fri Aug 30 2002 pmladek@suse.cz
- fixed dependency of the devel subpackage on the main package (used %%version)
* Fri Jul 05 2002 kukuk@suse.de
- Use %%ix86 macro
* Mon Apr 08 2002 pmladek@suse.cz
- arch specific assembler is only for i386
- fixed includes for ia64
* Wed Apr 03 2002 pmladek@suse.cz
- used some pieces from old patches
- fixed to compile with autoconf-2.53:
- fixed acinclude.m4, used aclocal
- some fixes in configure.in
- cleaned up spec file
- removed boom.mp3 to avoid potential license problems
* Wed Feb 20 2002 ro@suse.de
- removed kdelibs3-artsd from neededforbuild
(artsd is there anyway)
* Sat Feb 16 2002 sndirsch@suse.de
- enabled optimization and arch specific assembler
* Fri Feb 15 2002 sndirsch@suse.de
- added SMPEG/SDL support to get MP3 playback support (required
by VegaStrike)
* Fri Feb 15 2002 ro@suse.de
- changed neededforbuild <kdelibs3-artsd> to <arts arts-devel>
* Fri Feb 08 2002 bk@suse.de
- (re)enable optimisations and move prepare stuff to %%prep
* Thu Feb 07 2002 sndirsch@suse.de
- added Ogg/Vorbis and Capture support
- removed compiler flags "-Werror -pedantic-errors"
* Thu Feb 07 2002 sndirsch@suse.de
- added support for aRTs and esound daemon
- added global config file + a small patch to read this one
* Wed Feb 06 2002 tiwai@suse.de
- added ALSA 0.9.0 support. see README.alsa.
- clean up spec file, using %%_libdir.
- removed SDL.
* Sat Feb 02 2002 sndirsch@suse.de
- updated to CVS sources of 20020201 (required for vegastrike)
- disabled patches (not required any more)
* Fri Jan 11 2002 pmladek@suse.cz
- devel package created
- used macro %%{_librdir} to fix for lib64
* Wed Aug 08 2001 ro@suse.de
- changed neededforbuild <sdl> to <SDL>
- changed neededforbuild <sdl-devel> to <SDL-devel>
* Tue May 22 2001 pmladek@suse.cz
- fixed include files on ia64
- fixed preprocessor warnigs by patch for alpha
* Tue May 08 2001 mfabian@suse.de
- bzip2 sources
* Thu Apr 19 2001 pmladek@suse.cz
- fixed to compile on axp
* Wed Apr 04 2001 schwab@suse.de
- Pass -relax to linker on ia64.
- Fix makefile to use LDFLAGS.
- Remove -fPIC when building non-library object.
* Mon Mar 26 2001 ro@suse.de
- changed neededforbuild <sdl> to <sdl sdl-devel>
* Thu Nov 30 2000 ro@suse.de
- added suse-update-config
* Mon Nov 06 2000 ro@suse.de
- fixed neededforbuild
* Thu Jun 08 2000 cihlar@suse.cz
- uncommented %%clean
* Tue May 09 2000 smid@suse.cz
- buildroot added
- upgrade to version from 08.05.2000
* Tue Apr 11 2000 sndirsch@suse.de
- removed '-Werror' and '-pedantic-erros' compiler flags
* Mon Mar 27 2000 uli@suse.de
- renamed dif for easier maintenance
- __linux -> __linux__
- now uses RPM_OPT_FLAGS
Wed Mar 15 19:31:35 CET 2000
- added test demos
* Fri Mar 10 2000 sndirsch@suse.de
- created package