4 %bcond_without alsa # without ALSA support
5 %bcond_with arts # with aRts support
6 %bcond_without esd # without esd support
7 %bcond_without mmx # don't use MMX
9 %ifnarch %{ix86} %{x8664}
15 Summary: Open Audio Library
16 Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku
22 Source0: http://www.openal.org/openal_webstf/downloads/openal-%{version}.tar.gz
23 # Source0-md5: 641cf53761f35ee979f3e888614797a0
24 URL: http://www.openal.org/
25 Patch0: %{name}-alc.h.patch
26 BuildRequires: SDL-devel
27 %{?with_alsa:BuildRequires: alsa-lib-devel}
28 %{?with_arts:BuildRequires: artsc-devel}
29 BuildRequires: autoconf >= 2.56
30 BuildRequires: automake
31 %{?with_esd:BuildRequires: esound-devel}
33 # MMX code triggers ICE in gcc 3.3.x
34 BuildRequires: gcc >= 5:3.4.0
36 BuildRequires: libtool
37 BuildRequires: libvorbis-devel
39 %{?with_mmx:BuildRequires: nasm}
41 BuildRequires: pkgconfig
42 BuildRequires: smpeg-devel
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define specflags_ia32 -mmmx
48 %define specflags_ia32 -U__MMX__
52 OpenAL, the Open Audio Library, is a joint effort to create an open,
53 vendor-neutral, cross-platform API for interactive, primarily
54 spatialized audio. OpenAL's primary audience are application
55 developers and desktop users that rely on portable standards like
56 OpenGL, for games and other multimedia applications. OpenAL is already
57 supported by a number of hardware vendors and developers.
59 %description -l pl.UTF-8
60 OpenAL, otwarta biblioteka dźwięku, to połączony wysiłek w celu
61 stworzenia otwartego, niezależnego od producentów, międzyplatformowego
62 interfejsu projektowania aplikacji w części obsługi dźwięku.
63 Biblioteka adresowana jest do twórców aplikacji i użytkowników,
64 którzy wybierają przenośne standardy, jak OpenGL, w grach i
65 aplikacjach multimedialnych. OpenAL posiada już wsparcie wielu
66 dostarczycieli sprzętu i programistów.
69 Summary: Headers for OpenAL
70 Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
75 Header files for OpenAL-based programs.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe potrzebne przy budowaniu programów opartych na
82 Summary: OpenAL static library
83 Summary(pl.UTF-8): Statyczna biblioteka OpenAL
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
88 OpenAL static library.
90 %description static -l pl.UTF-8
91 Biblioteka OpenAL do konsolidacji statycznej.
94 %setup -q -n openal-%{version}
99 %{__aclocal} -I admin/autotools/m4
104 --%{?with_alsa:en}%{!?with_alsa:dis}able-alsa{,-dlopen} \
105 --%{?with_arts:en}%{!?with_arts:dis}able-arts{,-dlopen} \
106 --%{?with_esd:en}%{!?with_esd:dis}able-esd{,-dlopen} \
107 --enable-sdl --enable-sdl-dlopen \
111 %ifarch amd64 x86_64 athlon i686 i586
112 --enable-optim-generic \
115 --enable-vorbis --enable-vorbis-dlopen \
116 --enable-mp3 --enable-mp3-dlopen \
122 rm -rf $RPM_BUILD_ROOT
125 DESTDIR=$RPM_BUILD_ROOT
128 rm -rf $RPM_BUILD_ROOT
130 %post -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
134 %defattr(644,root,root,755)
135 %doc ChangeLog NOTES TODO
136 %attr(755,root,root) %{_libdir}/libopenal.so.*.*.*
139 %defattr(644,root,root,755)
140 %doc common/specification/OpenAL1-1Spec.pdf
141 %attr(755,root,root) %{_bindir}/openal-config
142 %attr(755,root,root) %{_libdir}/libopenal.so
143 %{_libdir}/libopenal.la
145 %{_pkgconfigdir}/openal.pc
148 %defattr(644,root,root,755)
149 %{_libdir}/libopenal.a