3 %bcond_without alsa # without ALSA support
4 %bcond_with arts # with aRts support
5 %bcond_without doc # don't build HTML documentation (from SGML source)
6 %bcond_without esd # without esd support
7 %bcond_with mmx # use MMX (makes sense on i[56]86 with MMX; won't run on non-MMX CPU)
16 Summary: Open Audio Library
17 Summary(pl): Otwarta Biblioteka D¼wiêku
24 # from CVS :pserver:guest@opensource.creative.com:/usr/local/cvs-repository /openal
25 # (without all Win and Mac stuff and demos)
26 Source0: %{name}-linuxonly-%{snap}.tar.bz2
27 # Source0-md5: 4f42f20484858452bfc30caa8976415d
28 Patch0: %{name}-prefix.patch
29 Patch1: %{name}-info.patch
30 URL: http://www.openal.org/
31 BuildRequires: SDL-devel
32 %{?with_alsa:BuildRequires: alsa-lib-devel}
33 %{?with_arts:BuildRequires: artsc-devel}
34 BuildRequires: autoconf
35 BuildRequires: automake
36 %{?with_doc:BuildRequires: docbook-utils}
37 %{?with_esd:BuildRequires: esound-devel}
38 %{?with_doc:BuildRequires: gnome-doc-tools}
39 BuildRequires: libvorbis-devel
40 %{?with_mmx:BuildRequires: nasm}
41 BuildRequires: smpeg-devel
42 BuildRequires: texinfo
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 OpenAL, the Open Audio Library, is a joint effort to create an open,
48 vendor-neutral, cross-platform API for interactive, primarily
49 spatialized audio. OpenAL's primary audience are application
50 developers and desktop users that rely on portable standards like
51 OpenGL, for games and other multimedia applications. OpenAL is already
52 supported by a number of hardware vendors and developers.
55 OpenAL, otwarta biblioteka d¼wiêku, to po³±czony wysi³ek w celu
56 stworzenia otwartego, niezale¿nego od producentów, miêdzyplatformowego
57 interfejsu projektowania aplikacji w czê¶ci obs³ugi d¼wiêku.
58 Biblioteka adresowana jest do twórców aplikacji i u¿ytkowników,
59 którzy wybieraj± przeno¶ne standardy, jak OpenGL, w grach i
60 aplikacjach multimedialnych. OpenAL posiada ju¿ wsparcie wielu
61 dostarczycieli sprzêtu i programistów.
64 Summary: Headers for OpenAL
65 Summary(pl): Pliki nag³ówkowe do OpenAL
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
70 Header files for OpenAL-based programs.
72 %description devel -l pl
73 Pliki nag³ówkowe potrzebne przy budowaniu programów opartych na
77 Summary: OpenAL static library
78 Summary(pl): Statyczna biblioteka OpenAL
79 Group: Development/Libraries
80 Requires: %{name}-devel = %{version}-%{release}
83 OpenAL static library.
85 %description static -l pl
86 Biblioteka OpenAL do konsolidacji statycznej.
93 echo 'AC_DEFUN([AC_HAS_MMX],[$%{?with_mmx:1}%{!?with_mmx:2}])' >> linux/acinclude.m4
97 cp -f /usr/share/automake/config.sub .
102 %{!?debug:--enable-optimization} \
103 %{?with_mmx:--enable-arch-asm} \
104 %{?with_alsa:--enable-alsa --enable-alsa-dlopen} \
105 %{?with_arts:--enable-arts} \
106 %{?with_esd:--enable-esd} \
116 %{?with_doc:%{__make} full-html}
119 rm -rf $RPM_BUILD_ROOT
120 install -d $RPM_BUILD_ROOT%{_infodir}
122 %{__make} -C linux install \
123 DESTDIR=$RPM_BUILD_ROOT
125 install linux/doc/openal.info $RPM_BUILD_ROOT%{_infodir}
128 rm -rf $RPM_BUILD_ROOT
130 %post -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
134 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
137 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
140 %defattr(644,root,root,755)
141 %doc linux/{CREDITS,ChangeLog,NOTES,TODO}
142 %attr(755,root,root) %{_libdir}/lib*.so.*.*
145 %defattr(644,root,root,755)
146 %doc linux/doc/LOKI* %{?with_doc:docs/oalspecs-full}
147 %attr(755,root,root) %{_libdir}/lib*.so
149 %{_infodir}/openal.info*
152 %defattr(644,root,root,755)