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 Patch1: %{name}-pkgconfig.patch
27 BuildRequires: SDL-devel
28 %{?with_alsa:BuildRequires: alsa-lib-devel}
29 %{?with_arts:BuildRequires: artsc-devel}
30 BuildRequires: autoconf >= 2.56
31 BuildRequires: automake
32 %{?with_esd:BuildRequires: esound-devel}
34 # MMX code triggers ICE in gcc 3.3.x
35 BuildRequires: gcc >= 5:3.4.0
37 BuildRequires: libtool
38 BuildRequires: libvorbis-devel
40 %{?with_mmx:BuildRequires: nasm}
42 BuildRequires: pkgconfig
43 BuildRequires: smpeg-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define specflags_ia32 -mmmx
49 %define specflags_ia32 -U__MMX__
53 OpenAL, the Open Audio Library, is a joint effort to create an open,
54 vendor-neutral, cross-platform API for interactive, primarily
55 spatialized audio. OpenAL's primary audience are application
56 developers and desktop users that rely on portable standards like
57 OpenGL, for games and other multimedia applications. OpenAL is already
58 supported by a number of hardware vendors and developers.
60 %description -l pl.UTF-8
61 OpenAL, otwarta biblioteka dźwięku, to połączony wysiłek w celu
62 stworzenia otwartego, niezależnego od producentów, międzyplatformowego
63 interfejsu projektowania aplikacji w części obsługi dźwięku.
64 Biblioteka adresowana jest do twórców aplikacji i użytkowników,
65 którzy wybierają przenośne standardy, jak OpenGL, w grach i
66 aplikacjach multimedialnych. OpenAL posiada już wsparcie wielu
67 dostarczycieli sprzętu i programistów.
70 Summary: Headers for OpenAL
71 Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
76 Header files for OpenAL-based programs.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe potrzebne przy budowaniu programów opartych na
83 Summary: OpenAL static library
84 Summary(pl.UTF-8): Statyczna biblioteka OpenAL
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
89 OpenAL static library.
91 %description static -l pl.UTF-8
92 Biblioteka OpenAL do konsolidacji statycznej.
95 %setup -q -n openal-%{version}
101 %{__aclocal} -I admin/autotools/m4
106 --%{?with_alsa:en}%{!?with_alsa:dis}able-alsa{,-dlopen} \
107 --%{?with_arts:en}%{!?with_arts:dis}able-arts{,-dlopen} \
108 --%{?with_esd:en}%{!?with_esd:dis}able-esd{,-dlopen} \
109 --enable-sdl --enable-sdl-dlopen \
113 %ifarch amd64 x86_64 athlon i686 i586
114 --enable-optim-generic \
117 --enable-vorbis --enable-vorbis-dlopen \
118 --enable-mp3 --enable-mp3-dlopen \
124 rm -rf $RPM_BUILD_ROOT
127 DESTDIR=$RPM_BUILD_ROOT
130 rm -rf $RPM_BUILD_ROOT
132 %post -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
136 %defattr(644,root,root,755)
137 %doc ChangeLog NOTES TODO
138 %attr(755,root,root) %{_libdir}/libopenal.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libopenal.so.?
142 %defattr(644,root,root,755)
143 %doc common/specification/OpenAL1-1Spec.pdf
144 %attr(755,root,root) %{_bindir}/openal-config
145 %attr(755,root,root) %{_libdir}/libopenal.so
146 %{_libdir}/libopenal.la
148 %{_pkgconfigdir}/openal.pc
151 %defattr(644,root,root,755)
152 %{_libdir}/libopenal.a