]>
Commit | Line | Data |
---|---|---|
68071dbf | 1 | # |
a35955a2 | 2 | # Conditional build: |
f2c99d8a | 3 | %bcond_without alsa # ALSA backend |
b5f2479e | 4 | %bcond_without jack # JACK backend |
f2c99d8a JB |
5 | %bcond_without portaudio # PortAudio backend |
6 | %bcond_without pulseaudio # PulseAudio backend | |
bd9b58be | 7 | %bcond_with sdl # SDL2 backend |
bd9b58be | 8 | %bcond_with sse2 # force use of SSE2 instructions (x86) |
f2c99d8a | 9 | %bcond_without gui # alsoft-config GUI |
99cf5ae3 | 10 | %bcond_with qt4 # Qt 4 instead of Qt 5 for GUI |
b90768b3 | 11 | %ifarch pentium4 x32 %{x8664} |
bd9b58be JB |
12 | %define with_sse2 1 |
13 | %endif | |
d451b59a | 14 | Summary: Open Audio Library |
8be14136 | 15 | Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku |
6a3db3d8 | 16 | Name: OpenAL |
94a1f148 JP |
17 | Version: 1.21.0 |
18 | Release: 1 | |
65437b48 | 19 | License: LGPL v2+ |
68071dbf | 20 | Group: Libraries |
bd9b58be | 21 | Source0: http://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2 |
94a1f148 | 22 | # Source0-md5: 332dc0ead285887a3da5ec6bc725fdcd |
60781cc7 | 23 | Patch0: %{name}-pc.patch |
b90768b3 | 24 | Patch1: %{name}-nosse.patch |
827050d4 | 25 | URL: http://www.openal.org/ |
bd9b58be | 26 | %{?with_sdl:BuildRequires: SDL2-devel >= 2} |
e62907a5 | 27 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
99cf5ae3 | 28 | BuildRequires: cmake >= 3.0.2 |
b5f2479e | 29 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
2b67cb40 | 30 | BuildRequires: libmysofa-devel |
94a1f148 | 31 | BuildRequires: libstdc++-devel >= 6:5 |
89d1fa49 | 32 | BuildRequires: pkgconfig |
7e80d8dd | 33 | %{?with_portaudio:BuildRequires: portaudio-devel} |
f953b352 | 34 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
60652dc3 | 35 | BuildRequires: rpmbuild(macros) >= 1.605 |
f2c99d8a | 36 | %if %{with gui} |
99cf5ae3 | 37 | %if %{with qt4} |
f2c99d8a JB |
38 | BuildRequires: QtCore-devel >= 4.8.0 |
39 | BuildRequires: QtGui-devel >= 4.8.0 | |
40 | BuildRequires: qt4-build >= 4.8.0 | |
99cf5ae3 JB |
41 | %else |
42 | BuildRequires: Qt5Core-devel >= 5 | |
43 | BuildRequires: Qt5Gui-devel >= 5 | |
44 | BuildRequires: Qt5Widgets-devel >= 5 | |
45 | BuildRequires: qt5-build >= 5 | |
46 | %endif | |
f2c99d8a | 47 | %endif |
b90768b3 | 48 | %{?with_sse2:Requires: cpuinfo(sse2)} |
6a3db3d8 | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
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 |
8be14136 | 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 | ||
f2c99d8a JB |
81 | %package gui |
82 | Summary: OpenAL configuration GUI | |
83 | Summary(pl.UTF-8): Graficzny interfejs do konfiguracji biblioteki OpenAL | |
84 | Group: X11/Applications/Sound | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | Requires: QtCore >= 4.8.0 | |
87 | Requires: QtGui >= 4.8.0 | |
88 | ||
89 | %description gui | |
90 | OpenAL configuration GUI. | |
91 | ||
92 | %description gui -l pl.UTF-8 | |
93 | Graficzny interfejs do konfiguracji biblioteki OpenAL. | |
94 | ||
6a3db3d8 | 95 | %prep |
7e80d8dd | 96 | %setup -q -n openal-soft-%{version} |
60781cc7 | 97 | %patch0 -p1 |
b90768b3 | 98 | %patch1 -p1 |
68071dbf | 99 | |
6a3db3d8 | 100 | %build |
99cf5ae3 JB |
101 | cd build |
102 | %cmake .. \ | |
b5f2479e JB |
103 | %{!?with_alsa:-DALSOFT_BACKEND_ALSA=OFF} \ |
104 | %{!?with_jack:-DALSOFT_BACKEND_JACK=OFF} \ | |
105 | %{!?with_portaudio:-DALSOFT_BACKEND_PORTAUDIO=OFF} \ | |
99cf5ae3 | 106 | %{!?with_pulseaudio:-DALSOFT_BACKEND_PULSEAUDIO=OFF} \ |
bd9b58be | 107 | %{?with_sdl:-DALSOFT_BACKEND_SDL2=ON} \ |
b90768b3 | 108 | %{!?with_sse2:-DALSOFT_ENABLE_SSE2_CODEGEN=OFF} \ |
99cf5ae3 JB |
109 | -DALSOFT_EXAMPLES=OFF \ |
110 | %{!?with_gui:-DALSOFT_NO_CONFIG_UTIL=ON} \ | |
111 | %{?with_qt4:-DALSOFT_NO_QT5=ON} \ | |
65437b48 | 112 | |
7e80d8dd | 113 | %{__make} |
6a3db3d8 | 114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
6ce9e958 | 117 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/openal |
d451b59a | 118 | |
99cf5ae3 | 119 | %{__make} -C build install \ |
68071dbf | 120 | DESTDIR=$RPM_BUILD_ROOT |
d451b59a | 121 | |
c06f4ed0 | 122 | install -p alsoftrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/openal/alsoft.conf |
6ce9e958 | 123 | |
6a3db3d8 | 124 | %clean |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
404a1bc6 JB |
127 | %post -p /sbin/ldconfig |
128 | %postun -p /sbin/ldconfig | |
129 | ||
6a3db3d8 | 130 | %files |
3f81b215 | 131 | %defattr(644,root,root,755) |
6ce9e958 | 132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openal |
996f154d | 133 | %attr(755,root,root) %{_bindir}/makemhr |
65437b48 | 134 | %attr(755,root,root) %{_bindir}/openal-info |
a26f1dac | 135 | %attr(755,root,root) %{_libdir}/libopenal.so.*.*.* |
65437b48 | 136 | %attr(755,root,root) %ghost %{_libdir}/libopenal.so.1 |
f2c99d8a | 137 | %{_datadir}/openal |
6a3db3d8 | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
a26f1dac | 141 | %attr(755,root,root) %{_libdir}/libopenal.so |
68071dbf | 142 | %{_includedir}/AL |
a26f1dac | 143 | %{_pkgconfigdir}/openal.pc |
99cf5ae3 | 144 | %{_libdir}/cmake/OpenAL |
f2c99d8a JB |
145 | |
146 | %if %{with gui} | |
147 | %files gui | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_bindir}/alsoft-config | |
150 | %endif |