3 # _without_alsa - without ALSA support
4 # _without_doc - don't build HTML documentation (from SGML source)
5 # _without_esd - without esd support
6 # _with_mmx - use MMX (won't run on non-MMX CPU)
10 # - check %{name}-acfix.patch if it's still nedded, sorry
11 # for the inconvenience, I'll do it if I can...
16 %ifnarch i586 i686 athlon
19 Summary: Open Audio Library
20 Summary(pl): Otwarta Biblioteka D¼wiêku
24 Release: 1.%{snap}.0.10
27 # from CVS :pserver:guest@opensource.creative.com:/usr/local/cvs-repository /openal
28 # (without all Win and Mac stuff and demos)
29 Source0: http://pb152.srem.sdi.tpnet.pl/pld/%{name}-linuxonly-%{snap}.tar.bz2
30 # Source0-md5: 4a5202f6cba291ae0a9af59410bdda88
31 Patch0: %{name}-prefix.patch
32 Patch1: %{name}-acfix.patch
33 Patch2: %{name}-info.patch
34 URL: http://opensource.creative.com/
35 BuildRequires: SDL-devel
36 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
37 BuildRequires: autoconf
38 BuildRequires: automake
39 %{!?_without_doc:BuildRequires: docbook-utils}
40 %{!?_without_esd:BuildRequires: esound-devel}
41 %{!?_without_doc:BuildRequires: gnome-doc-tools}
42 BuildRequires: libvorbis-devel
43 %{?_with_mmx:BuildRequires: nasm}
44 BuildRequires: smpeg-devel
45 BuildRequires: texinfo
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 OpenAL, the Open Audio Library, is a joint effort to create an open,
51 vendor-neutral, cross-platform API for interactive, primarily
52 spatialized audio. OpenAL's primary audience are application
53 developers and desktop users that rely on portable standards like
54 OpenGL, for games and other multimedia applications. OpenAL is already
55 supported by a number of hardware vendors and developers.
58 OpenAL, otwarta biblioteka d¼wiêku, to po³±czony wysi³ek w celu
59 stworzenia otwartego, niezale¿nego od producentów, miêdzyplatformowego
60 interfejsu projektowania aplikacji w czê¶ci obs³ugi d¼wiêku.
61 Biblioteka adresowana jest do twórców aplikacji i u¿ytkowników,
62 którzy wybieraj± przeno¶ne standardy, jak OpenGL, w grach i
63 aplikacjach multimedialnych. OpenAL posiada ju¿ wsparcie wielu
64 dostarczycieli sprzêtu i programistów.
67 Summary: Headers for OpenAL
68 Summary(pl): Pliki nag³ówkowe do OpenAL
69 Group: Development/Libraries
70 Requires: %{name} = %{version}
73 Header files for OpenAL-based programs.
75 %description devel -l pl
76 Pliki nag³ówkowe potrzebne przy budowaniu programów opartych na
80 Summary: OpenAL static library
81 Summary(pl): Statyczna biblioteka OpenAL
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}
86 OpenAL static library.
88 %description static -l pl
89 Biblioteka OpenAL do statycznego linkowania.
97 echo 'AC_DEFUN([AC_HAS_MMX],[$%{?_with_mmx:1}%{!?_with_mmx:2}])' >> linux/acinclude.m4
105 %{!?debug:--enable-optimization} \
106 %{?_with_mmx:--enable-arch-asm} \
107 %{!?_without_alsa:--enable-alsa} \
108 %{!?_without_esd:--enable-esd} \
118 %{!?_without_doc:%{__make} full-html}
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT%{_infodir}
126 DESTDIR=$RPM_BUILD_ROOT
128 install doc/openal.info $RPM_BUILD_ROOT%{_infodir}
131 rm -rf $RPM_BUILD_ROOT
133 %post -p /sbin/ldconfig
134 %postun -p /sbin/ldconfig
137 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
140 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
143 %defattr(644,root,root,755)
144 %doc linux/{CREDITS,ChangeLog,NOTES,TODO}
145 %attr(755,root,root) %{_libdir}/lib*.so.*.*
148 %defattr(644,root,root,755)
149 %doc linux/doc/LOKI* %{!?_without_doc:docs/oalspecs-full}
150 %attr(755,root,root) %{_libdir}/lib*.so
152 %{_infodir}/openal.info*
155 %defattr(644,root,root,755)
156 %attr(755,root,root)%{_libdir}/*.a