%bcond_without doc # don't build HTML documentation (from SGML source)
%bcond_without esd # without esd support
%bcond_with mmx # use MMX (makes sense on i[56]86 with MMX; won't run on non-MMX CPU)
+ # Currently broken.
#
# TODO:
# - remove zip BR?
#
-%ifarch athlon pentium3 pentium4 amd64
-%define with_mmx 1
-%endif
+
+%define _branch Linux_Spec1-0
Summary: Open Audio Library
Summary(pl): Otwarta Biblioteka D¼wiêku
Name: OpenAL
-Version: 0.0.7
-%define snap 20040416
+Version: 0.0.8
+%define snap 20051015
Release: 0.%{snap}.1
License: LGPL
Group: Libraries
# from CVS :pserver:guest@opensource.creative.com:/usr/local/cvs-repository /openal
# (without all Win and Mac stuff and demos)
-Source0: %{name}-linuxonly-%{snap}.tar.bz2
-# Source0-md5: 4f42f20484858452bfc30caa8976415d
+Source0: %{name}-%{_branch}-%{snap}.tar.bz2
+# Source0-md5: 013a571cf588bec1d3a5628b5ed527ea
Patch0: %{name}-prefix.patch
Patch1: %{name}-info.patch
URL: http://www.openal.org/
Biblioteka OpenAL do konsolidacji statycznej.
%prep
-%setup -q -n openal
+%setup -q -n %{name}-%{_branch}-%{snap}
%patch0 -p1
%patch1 -p1
-echo 'AC_DEFUN([AC_HAS_MMX],[$%{?with_mmx:1}%{!?with_mmx:2}])' >> linux/acinclude.m4
+cp CREDITS docs
%build
cd linux
%{__autoconf}
%{__autoheader}
%configure \
- %{!?debug:--enable-optimization} \
- %{?with_mmx:--enable-arch-asm} \
%{?with_alsa:--enable-alsa --enable-alsa-dlopen} \
- %{?with_arts:--enable-arts} \
- %{?with_esd:--enable-esd} \
+ %{?with_arts:--enable-arts --enable-arts-dlopen} \
+ %{?with_esd:--enable-esd --enable-esd-dlopen} \
--enable-sdl \
--enable-vorbis \
--enable-smpeg \
%{__make}
-cd ../docs
+cd ../docs/spec1-0
%{?with_doc:%{__make} full-html}
%install
%files devel
%defattr(644,root,root,755)
-%doc linux/doc/LOKI* %{?with_doc:docs/oalspecs-full}
+%doc linux/doc/LOKI* %{?with_doc:docs/spec1-0/oalspecs-full docs/spec1-1/OpenAL1-1Spec.pdf}
%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_bindir}/*-config
+%{_pkgconfigdir}/*
%{_includedir}/AL
%{_infodir}/openal.info*