Summary: OpenAL - Open Audio Library
Summary(pl): OpenAL - Otwarta Biblioteka D¼wiêku
Name: OpenAL
-Version: 0.0.6
+Version: 20011116
Release: 1
License: LGPL
Group: X11/Libraries
Group(ru): X11/âÉÂÌÉÏÔÅËÉ
Group(uk): X11/â¦Â̦ÏÔÅËÉ
Vendor: Loki Entertainment Software - http://www.lokigames.com/
-Source0: ftp://ftp.openal.com/nie-wiem-co-tu-daæ.tar.bz2/%{name}-20011116.tar.bz2
-Source1: ftp://ftp.openal.com/nie-wiem-co-tu-daæ.tar.bz2/%{name}-headers-20011116.tar.bz2
+Source0: ftp://ftp.openal.com/nie-wiem-co-tu-daæ.tar.bz2/%{name}-%{version}.tar.bz2
+Source1: ftp://ftp.openal.com/nie-wiem-co-tu-daæ.tar.bz2/%{name}-headers-%{version}.tar.bz2
Patch0: %{name}-stdio.patch
Patch1: %{name}-include_unconsequency.patch
Patch2: %{name}-symlinks.patch
URL: http://www.openal.com/
+BuildRequires: alsa-lib-devel
+BuildRequires: SDL-devel
+BuildRequires: libvorbis-devel
+BuildRequires: smpeg-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1 libGLU.so.1
%patch2 -p1
%build
+./autogen.sh
CFLAGS="%{rpmcflags} -I%{_includedir} \
-fexpensive-optimizations -funroll-all-loops \
-funroll-loops -fomit-frame-pointer \
LDFLAGS="-L%{_libdir}" ; export LDFLAGS
-sh ./autogen.sh
-
-./configure --enable-prefix=%{_prefix} \
- --enable-optimization --enable-alsa --enable-sdl \
- --enable-vorbis --enable-smpeg --enable-capture \
- --with-gcc=%{__cc}
+./configure \
+ --enable-prefix=%{_prefix} \
+ --enable-optimization \
+ --enable-alsa \
+ --enable-sdl \
+ --enable-vorbis \
+ --enable-smpeg \
+ --enable-capture \
+ --with-gcc=%{__cc}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -e DESTDIR=$RPM_BUILD_ROOT/%{_prefix}/ install
+%{__make} install DESTDIR=$RPM_BUILD_ROOT/%{_prefix}
gzip -9nf TODO NOTES ChangeLog CREDITS COPYING
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,755)
-%doc TODO.gz ChangeLog.gz NOTES.gz CREDITS.gz COPYING.gz
+%defattr(644,root,root,755)
+%doc *.gz
%{_libdir}/*so*
%files devel
%{_includedir}/AL/*
%files static
-%defattr(-,root,root,755)
+%defattr(644,root,root,755)
%{_libdir}/*.a