]>
Commit | Line | Data |
---|---|---|
68071dbf | 1 | # |
a35955a2 | 2 | # Conditional build: |
f2c99d8a | 3 | %bcond_without alsa # ALSA backend |
b5f2479e | 4 | %bcond_without jack # JACK backend |
4899bbd7 | 5 | %bcond_without pipewire # PipeWire backend |
f2c99d8a JB |
6 | %bcond_without portaudio # PortAudio backend |
7 | %bcond_without pulseaudio # PulseAudio backend | |
4899bbd7 | 8 | %bcond_without rtkit # RTKit support |
bd9b58be | 9 | %bcond_with sdl # SDL2 backend |
bd9b58be | 10 | %bcond_with sse2 # force use of SSE2 instructions (x86) |
f2c99d8a | 11 | %bcond_without gui # alsoft-config GUI |
73ba13c5 | 12 | |
b90768b3 | 13 | %ifarch pentium4 x32 %{x8664} |
bd9b58be JB |
14 | %define with_sse2 1 |
15 | %endif | |
d451b59a | 16 | Summary: Open Audio Library |
8be14136 | 17 | Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku |
6a3db3d8 | 18 | Name: OpenAL |
67ac0982 | 19 | Version: 1.23.1 |
c9afd3a3 | 20 | Release: 1 |
65437b48 | 21 | License: LGPL v2+ |
68071dbf | 22 | Group: Libraries |
73ba13c5 | 23 | Source0: https://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2 |
67ac0982 | 24 | # Source0-md5: 58a73698288d2787451b61f8f4431513 |
e1ae1dac | 25 | Patch0: %{name}-nosse.patch |
827050d4 | 26 | URL: http://www.openal.org/ |
bd9b58be | 27 | %{?with_sdl:BuildRequires: SDL2-devel >= 2} |
e62907a5 | 28 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
99cf5ae3 | 29 | BuildRequires: cmake >= 3.0.2 |
4899bbd7 | 30 | %{?with_rtkit:BuildRequires: dbus-devel} |
b5f2479e | 31 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
2b67cb40 | 32 | BuildRequires: libmysofa-devel |
94a1f148 | 33 | BuildRequires: libstdc++-devel >= 6:5 |
e1ae1dac | 34 | %{?with_pipewire:BuildRequires: pipewire-devel >= 0.3.23} |
89d1fa49 | 35 | BuildRequires: pkgconfig |
7e80d8dd | 36 | %{?with_portaudio:BuildRequires: portaudio-devel} |
f953b352 | 37 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
4899bbd7 | 38 | BuildRequires: rpmbuild(macros) >= 1.742 |
f2c99d8a | 39 | %if %{with gui} |
99cf5ae3 JB |
40 | BuildRequires: Qt5Core-devel >= 5 |
41 | BuildRequires: Qt5Gui-devel >= 5 | |
42 | BuildRequires: Qt5Widgets-devel >= 5 | |
43 | BuildRequires: qt5-build >= 5 | |
44 | %endif | |
b90768b3 | 45 | %{?with_sse2:Requires: cpuinfo(sse2)} |
6a3db3d8 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
6a3db3d8 | 48 | %description |
49 | OpenAL, the Open Audio Library, is a joint effort to create an open, | |
50 | vendor-neutral, cross-platform API for interactive, primarily | |
51 | spatialized audio. OpenAL's primary audience are application | |
52 | developers and desktop users that rely on portable standards like | |
53 | OpenGL, for games and other multimedia applications. OpenAL is already | |
54 | supported by a number of hardware vendors and developers. | |
55 | ||
a4959810 JR |
56 | %description -l pl.UTF-8 |
57 | OpenAL, otwarta biblioteka dźwięku, to połączony wysiłek w celu | |
58 | stworzenia otwartego, niezależnego od producentów, międzyplatformowego | |
59 | interfejsu projektowania aplikacji w części obsługi dźwięku. | |
60 | Biblioteka adresowana jest do twórców aplikacji i użytkowników, | |
61 | którzy wybierają przenośne standardy, jak OpenGL, w grach i | |
62 | aplikacjach multimedialnych. OpenAL posiada już wsparcie wielu | |
63 | dostarczycieli sprzętu i programistów. | |
d451b59a | 64 | |
6a3db3d8 | 65 | %package devel |
d451b59a | 66 | Summary: Headers for OpenAL |
8be14136 | 67 | Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL |
68071dbf | 68 | Group: Development/Libraries |
e62907a5 | 69 | Requires: %{name} = %{version}-%{release} |
6a3db3d8 | 70 | |
71 | %description devel | |
d451b59a | 72 | Header files for OpenAL-based programs. |
6a3db3d8 | 73 | |
a4959810 JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe potrzebne przy budowaniu programów opartych na | |
d451b59a | 76 | OpenAL. |
77 | ||
f2c99d8a JB |
78 | %package gui |
79 | Summary: OpenAL configuration GUI | |
80 | Summary(pl.UTF-8): Graficzny interfejs do konfiguracji biblioteki OpenAL | |
81 | Group: X11/Applications/Sound | |
82 | Requires: %{name} = %{version}-%{release} | |
a517dbfd JP |
83 | Requires: Qt5Core >= 5 |
84 | Requires: Qt5Gui >= 5 | |
85 | Requires: Qt5Widgets >= 5 | |
f2c99d8a JB |
86 | |
87 | %description gui | |
88 | OpenAL configuration GUI. | |
89 | ||
90 | %description gui -l pl.UTF-8 | |
91 | Graficzny interfejs do konfiguracji biblioteki OpenAL. | |
92 | ||
6a3db3d8 | 93 | %prep |
7e80d8dd | 94 | %setup -q -n openal-soft-%{version} |
60781cc7 | 95 | %patch0 -p1 |
68071dbf | 96 | |
6a3db3d8 | 97 | %build |
99cf5ae3 JB |
98 | cd build |
99 | %cmake .. \ | |
b5f2479e JB |
100 | %{!?with_alsa:-DALSOFT_BACKEND_ALSA=OFF} \ |
101 | %{!?with_jack:-DALSOFT_BACKEND_JACK=OFF} \ | |
4899bbd7 | 102 | %{cmake_on_off pipewire ALSOFT_BACKEND_PIPEWIRE} \ |
b5f2479e | 103 | %{!?with_portaudio:-DALSOFT_BACKEND_PORTAUDIO=OFF} \ |
99cf5ae3 | 104 | %{!?with_pulseaudio:-DALSOFT_BACKEND_PULSEAUDIO=OFF} \ |
4899bbd7 | 105 | %{cmake_on_off rtkit ALSOFT_RTKIT} \ |
bd9b58be | 106 | %{?with_sdl:-DALSOFT_BACKEND_SDL2=ON} \ |
b90768b3 | 107 | %{!?with_sse2:-DALSOFT_ENABLE_SSE2_CODEGEN=OFF} \ |
99cf5ae3 JB |
108 | -DALSOFT_EXAMPLES=OFF \ |
109 | %{!?with_gui:-DALSOFT_NO_CONFIG_UTIL=ON} \ | |
65437b48 | 110 | |
7e80d8dd | 111 | %{__make} |
6a3db3d8 | 112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
6ce9e958 | 115 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/openal |
d451b59a | 116 | |
99cf5ae3 | 117 | %{__make} -C build install \ |
68071dbf | 118 | DESTDIR=$RPM_BUILD_ROOT |
d451b59a | 119 | |
c06f4ed0 | 120 | install -p alsoftrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/openal/alsoft.conf |
6ce9e958 | 121 | |
6a3db3d8 | 122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
404a1bc6 JB |
125 | %post -p /sbin/ldconfig |
126 | %postun -p /sbin/ldconfig | |
127 | ||
6a3db3d8 | 128 | %files |
3f81b215 | 129 | %defattr(644,root,root,755) |
6ce9e958 | 130 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openal |
996f154d | 131 | %attr(755,root,root) %{_bindir}/makemhr |
65437b48 | 132 | %attr(755,root,root) %{_bindir}/openal-info |
a26f1dac | 133 | %attr(755,root,root) %{_libdir}/libopenal.so.*.*.* |
65437b48 | 134 | %attr(755,root,root) %ghost %{_libdir}/libopenal.so.1 |
f2c99d8a | 135 | %{_datadir}/openal |
6a3db3d8 | 136 | |
137 | %files devel | |
138 | %defattr(644,root,root,755) | |
a26f1dac | 139 | %attr(755,root,root) %{_libdir}/libopenal.so |
68071dbf | 140 | %{_includedir}/AL |
a26f1dac | 141 | %{_pkgconfigdir}/openal.pc |
99cf5ae3 | 142 | %{_libdir}/cmake/OpenAL |
f2c99d8a JB |
143 | |
144 | %if %{with gui} | |
145 | %files gui | |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_bindir}/alsoft-config | |
148 | %endif |