]>
Commit | Line | Data |
---|---|---|
68071dbf | 1 | # |
a35955a2 | 2 | # Conditional build: |
7e80d8dd | 3 | %bcond_without alsa # without ALSA support |
4 | %bcond_without portaudio # without PortAudio support | |
f953b352 | 5 | %bcond_without pulseaudio # without PulseAudio support |
a26f1dac | 6 | # |
d451b59a | 7 | Summary: Open Audio Library |
8be14136 | 8 | Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku |
6a3db3d8 | 9 | Name: OpenAL |
b7056e65 | 10 | Version: 1.15.1 |
d3d2de29 | 11 | Release: 2 |
65437b48 | 12 | License: LGPL v2+ |
68071dbf | 13 | Group: Libraries |
7e80d8dd | 14 | Source0: http://kcat.strangesoft.net/openal-releases/openal-soft-%{version}.tar.bz2 |
b7056e65 | 15 | # Source0-md5: ea83dec3b9655a27d28e7bc7cae9cd71 |
7e80d8dd | 16 | #URL: http://kcat.strangesoft.net/openal.html |
827050d4 | 17 | URL: http://www.openal.org/ |
e62907a5 | 18 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
89d1fa49 | 19 | BuildRequires: cmake >= 2.4 |
89d1fa49 | 20 | BuildRequires: pkgconfig |
7e80d8dd | 21 | %{?with_portaudio:BuildRequires: portaudio-devel} |
f953b352 | 22 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
6a3db3d8 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
6a3db3d8 | 25 | %description |
26 | OpenAL, the Open Audio Library, is a joint effort to create an open, | |
27 | vendor-neutral, cross-platform API for interactive, primarily | |
28 | spatialized audio. OpenAL's primary audience are application | |
29 | developers and desktop users that rely on portable standards like | |
30 | OpenGL, for games and other multimedia applications. OpenAL is already | |
31 | supported by a number of hardware vendors and developers. | |
32 | ||
a4959810 JR |
33 | %description -l pl.UTF-8 |
34 | OpenAL, otwarta biblioteka dźwięku, to połączony wysiłek w celu | |
35 | stworzenia otwartego, niezależnego od producentów, międzyplatformowego | |
36 | interfejsu projektowania aplikacji w części obsługi dźwięku. | |
37 | Biblioteka adresowana jest do twórców aplikacji i użytkowników, | |
38 | którzy wybierają przenośne standardy, jak OpenGL, w grach i | |
39 | aplikacjach multimedialnych. OpenAL posiada już wsparcie wielu | |
40 | dostarczycieli sprzętu i programistów. | |
d451b59a | 41 | |
6a3db3d8 | 42 | %package devel |
d451b59a | 43 | Summary: Headers for OpenAL |
8be14136 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL |
68071dbf | 45 | Group: Development/Libraries |
e62907a5 | 46 | Requires: %{name} = %{version}-%{release} |
6a3db3d8 | 47 | |
48 | %description devel | |
d451b59a | 49 | Header files for OpenAL-based programs. |
6a3db3d8 | 50 | |
a4959810 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe potrzebne przy budowaniu programów opartych na | |
d451b59a | 53 | OpenAL. |
54 | ||
6a3db3d8 | 55 | %prep |
7e80d8dd | 56 | %setup -q -n openal-soft-%{version} |
68071dbf | 57 | |
6a3db3d8 | 58 | %build |
65437b48 | 59 | %cmake . \ |
7e80d8dd | 60 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
65437b48 | 61 | -DCMAKE_VERBOSE_MAKEFILE=1 \ |
ce19b7ae | 62 | -DEXAMPLES=OFF \ |
f953b352 JB |
63 | -DLIB_INSTALL_DIR=%{_lib} \ |
64 | %{!?with_alsa:-DALSA=OFF} \ | |
65 | %{!?with_portaudio:-DPORTAUDIO=OFF} \ | |
66 | %{!?with_pulseaudio:-DPULSEAUDIO=OFF} | |
65437b48 | 67 | |
7e80d8dd | 68 | %{__make} |
6a3db3d8 | 69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
6ce9e958 | 72 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/openal |
d451b59a | 73 | |
f2c02821 | 74 | %{__make} install \ |
68071dbf | 75 | DESTDIR=$RPM_BUILD_ROOT |
d451b59a | 76 | |
c06f4ed0 | 77 | install -p alsoftrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/openal/alsoft.conf |
6ce9e958 | 78 | |
6a3db3d8 | 79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
404a1bc6 JB |
82 | %post -p /sbin/ldconfig |
83 | %postun -p /sbin/ldconfig | |
84 | ||
6a3db3d8 | 85 | %files |
3f81b215 | 86 | %defattr(644,root,root,755) |
6ce9e958 | 87 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openal |
ce19b7ae | 88 | %attr(755,root,root) %{_bindir}/makehrtf |
65437b48 | 89 | %attr(755,root,root) %{_bindir}/openal-info |
a26f1dac | 90 | %attr(755,root,root) %{_libdir}/libopenal.so.*.*.* |
65437b48 | 91 | %attr(755,root,root) %ghost %{_libdir}/libopenal.so.1 |
6a3db3d8 | 92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
a26f1dac | 95 | %attr(755,root,root) %{_libdir}/libopenal.so |
68071dbf | 96 | %{_includedir}/AL |
a26f1dac | 97 | %{_pkgconfigdir}/openal.pc |