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)
9 %define _branch Linux_Spec1-0
11 Summary: Open Audio Library
12 Summary(pl): Otwarta Biblioteka D¼wiêku
19 # from CVS :pserver:guest@opensource.creative.com:/usr/local/cvs-repository /openal
20 # (without all Win and Mac stuff and demos)
21 Source0: %{name}-%{_branch}-%{snap}.tar.bz2
22 # Source0-md5: 013a571cf588bec1d3a5628b5ed527ea
23 Patch0: %{name}-prefix.patch
24 Patch1: %{name}-info.patch
25 URL: http://www.openal.org/
26 BuildRequires: SDL-devel
27 %{?with_alsa:BuildRequires: alsa-lib-devel}
28 %{?with_arts:BuildRequires: artsc-devel}
29 BuildRequires: autoconf
30 BuildRequires: automake
31 %{?with_doc:BuildRequires: docbook-utils}
32 %{?with_esd:BuildRequires: esound-devel}
33 %{?with_doc:BuildRequires: gnome-doc-tools}
34 BuildRequires: libvorbis-devel
35 %{?with_mmx:BuildRequires: nasm}
36 BuildRequires: smpeg-devel
37 BuildRequires: texinfo
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 OpenAL, the Open Audio Library, is a joint effort to create an open,
42 vendor-neutral, cross-platform API for interactive, primarily
43 spatialized audio. OpenAL's primary audience are application
44 developers and desktop users that rely on portable standards like
45 OpenGL, for games and other multimedia applications. OpenAL is already
46 supported by a number of hardware vendors and developers.
49 OpenAL, otwarta biblioteka d¼wiêku, to po³±czony wysi³ek w celu
50 stworzenia otwartego, niezale¿nego od producentów, miêdzyplatformowego
51 interfejsu projektowania aplikacji w czê¶ci obs³ugi d¼wiêku.
52 Biblioteka adresowana jest do twórców aplikacji i u¿ytkowników,
53 którzy wybieraj± przeno¶ne standardy, jak OpenGL, w grach i
54 aplikacjach multimedialnych. OpenAL posiada ju¿ wsparcie wielu
55 dostarczycieli sprzêtu i programistów.
58 Summary: Headers for OpenAL
59 Summary(pl): Pliki nag³ówkowe do OpenAL
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Header files for OpenAL-based programs.
66 %description devel -l pl
67 Pliki nag³ówkowe potrzebne przy budowaniu programów opartych na
71 Summary: OpenAL static library
72 Summary(pl): Statyczna biblioteka OpenAL
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
77 OpenAL static library.
79 %description static -l pl
80 Biblioteka OpenAL do konsolidacji statycznej.
83 %setup -q -n %{name}-%{_branch}-%{snap}
91 cp -f /usr/share/automake/config.sub .
96 %{?with_alsa:--enable-alsa --enable-alsa-dlopen} \
97 %{?with_arts:--enable-arts --enable-arts-dlopen} \
98 %{?with_esd:--enable-esd --enable-esd-dlopen} \
108 %{?with_doc:%{__make} full-html}
111 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT%{_infodir}
114 %{__make} -C linux install \
115 DESTLIB='$(DESTDIR)%{_libdir}' \
116 DESTDIR=$RPM_BUILD_ROOT
118 install linux/doc/openal.info $RPM_BUILD_ROOT%{_infodir}
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
127 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
130 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
133 %defattr(644,root,root,755)
134 %doc linux/{CREDITS,ChangeLog,NOTES,TODO}
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
138 %defattr(644,root,root,755)
139 %doc linux/doc/LOKI* %{?with_doc:docs/spec1-0/oalspecs-full docs/spec1-1/OpenAL1-1Spec.pdf}
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %attr(755,root,root) %{_bindir}/*-config
144 %{_infodir}/openal.info*
147 %defattr(644,root,root,755)