]>
Commit | Line | Data |
---|---|---|
68071dbf | 1 | # |
a35955a2 | 2 | # Conditional build: |
3 | # | |
e62907a5 JB |
4 | %bcond_without alsa # without ALSA support |
5 | %bcond_with arts # with aRts support | |
e62907a5 | 6 | %bcond_without esd # without esd support |
a26f1dac JB |
7 | %bcond_without mmx # don't use MMX |
8 | # | |
9 | %ifnarch %{ix86} %{x8664} | |
10 | %undefine with_mmx | |
11 | %endif | |
12 | %ifarch i386 i486 | |
13 | %undefine with_mmx | |
14 | %endif | |
d451b59a | 15 | Summary: Open Audio Library |
a4959810 | 16 | Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku |
6a3db3d8 | 17 | Name: OpenAL |
f2b62104 | 18 | Version: 0.0.8 |
a7443cb5 | 19 | Release: 2 |
6a3db3d8 | 20 | License: LGPL |
68071dbf | 21 | Group: Libraries |
43b5504a | 22 | Source0: http://www.openal.org/openal_webstf/downloads/openal-%{version}.tar.gz |
23 | # Source0-md5: 641cf53761f35ee979f3e888614797a0 | |
827050d4 | 24 | URL: http://www.openal.org/ |
a7443cb5 | 25 | Patch0: %{name}-alc.h.patch |
b0b40567 | 26 | BuildRequires: SDL-devel |
e62907a5 JB |
27 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
28 | %{?with_arts:BuildRequires: artsc-devel} | |
d3133096 JB |
29 | BuildRequires: autoconf >= 2.56 |
30 | BuildRequires: automake | |
e62907a5 | 31 | %{?with_esd:BuildRequires: esound-devel} |
a26f1dac JB |
32 | %if %{with mmx} |
33 | # MMX code triggers ICE in gcc 3.3.x | |
34 | BuildRequires: gcc >= 5:3.4.0 | |
35 | %endif | |
d3133096 | 36 | BuildRequires: libtool |
b0b40567 | 37 | BuildRequires: libvorbis-devel |
a26f1dac | 38 | %ifarch %{ix86} |
e62907a5 | 39 | %{?with_mmx:BuildRequires: nasm} |
a26f1dac JB |
40 | %endif |
41 | BuildRequires: pkgconfig | |
b0b40567 | 42 | BuildRequires: smpeg-devel |
6a3db3d8 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
a26f1dac JB |
45 | %if %{with mmx} |
46 | %define specflags_ia32 -mmmx | |
47 | %else | |
48 | %define specflags_ia32 -U__MMX__ | |
49 | %endif | |
50 | ||
6a3db3d8 | 51 | %description |
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. | |
58 | ||
a4959810 JR |
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. | |
d451b59a | 67 | |
6a3db3d8 | 68 | %package devel |
d451b59a | 69 | Summary: Headers for OpenAL |
a4959810 | 70 | Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL |
68071dbf | 71 | Group: Development/Libraries |
e62907a5 | 72 | Requires: %{name} = %{version}-%{release} |
6a3db3d8 | 73 | |
74 | %description devel | |
d451b59a | 75 | Header files for OpenAL-based programs. |
6a3db3d8 | 76 | |
a4959810 JR |
77 | %description devel -l pl.UTF-8 |
78 | Pliki nagłówkowe potrzebne przy budowaniu programów opartych na | |
d451b59a | 79 | OpenAL. |
80 | ||
6a3db3d8 | 81 | %package static |
82 | Summary: OpenAL static library | |
a4959810 | 83 | Summary(pl.UTF-8): Statyczna biblioteka OpenAL |
68071dbf | 84 | Group: Development/Libraries |
e62907a5 | 85 | Requires: %{name}-devel = %{version}-%{release} |
6a3db3d8 | 86 | |
87 | %description static | |
88 | OpenAL static library. | |
89 | ||
a4959810 | 90 | %description static -l pl.UTF-8 |
a9a6d37c | 91 | Biblioteka OpenAL do konsolidacji statycznej. |
6a3db3d8 | 92 | |
6a3db3d8 | 93 | %prep |
43b5504a | 94 | %setup -q -n openal-%{version} |
a7443cb5 | 95 | %patch0 -p1 |
68071dbf | 96 | |
6a3db3d8 | 97 | %build |
7e6377c0 | 98 | %{__libtoolize} |
99 | %{__aclocal} -I admin/autotools/m4 | |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
d3133096 | 102 | %{__automake} |
68071dbf | 103 | %configure \ |
7e6377c0 | 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} \ | |
a35955a2 | 107 | --enable-sdl --enable-sdl-dlopen \ |
68071dbf | 108 | --enable-capture \ |
a35955a2 | 109 | --enable-linux \ |
110 | --enable-null \ | |
7e6377c0 | 111 | %ifarch amd64 x86_64 athlon i686 i586 |
a26f1dac JB |
112 | --enable-optim-generic \ |
113 | %endif | |
a35955a2 | 114 | --enable-waveout \ |
115 | --enable-vorbis --enable-vorbis-dlopen \ | |
116 | --enable-mp3 --enable-mp3-dlopen \ | |
a26f1dac | 117 | --with-gcc="%{__cc}" |
68071dbf | 118 | |
b37eb751 | 119 | %{__make} |
6a3db3d8 | 120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
d451b59a | 123 | |
f2c02821 | 124 | %{__make} install \ |
68071dbf | 125 | DESTDIR=$RPM_BUILD_ROOT |
d451b59a | 126 | |
6a3db3d8 | 127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
404a1bc6 JB |
130 | %post -p /sbin/ldconfig |
131 | %postun -p /sbin/ldconfig | |
132 | ||
6a3db3d8 | 133 | %files |
3f81b215 | 134 | %defattr(644,root,root,755) |
f2c02821 | 135 | %doc ChangeLog NOTES TODO |
a26f1dac | 136 | %attr(755,root,root) %{_libdir}/libopenal.so.*.*.* |
6a3db3d8 | 137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
a26f1dac JB |
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 | |
68071dbf | 144 | %{_includedir}/AL |
a26f1dac | 145 | %{_pkgconfigdir}/openal.pc |
d451b59a | 146 | |
6a3db3d8 | 147 | %files static |
3f81b215 | 148 | %defattr(644,root,root,755) |
a26f1dac | 149 | %{_libdir}/libopenal.a |