This commit is contained in:
compile_success 2020-02-14 11:12:32 +08:00
parent 28d8e976ba
commit 4e1932ba0e
2 changed files with 81 additions and 0 deletions

BIN
openal-soft-1.18.2.tar.bz2 Normal file

Binary file not shown.

81
openal-soft.spec Normal file
View File

@ -0,0 +1,81 @@
Name: openal-soft
Version: 1.18.2
Release: 8
Summary: A software implementation of the OpenAL 3D audio API
License: LGPLv2+
URL: http://kcat.strangesoft.net/openal.html
Source0: http://kcat.strangesoft.net/openal-releases/openal-soft-%{version}.tar.bz2
BuildRequires: alsa-lib-devel cmake fluidsynth-devel portaudio-devel pulseaudio-libs-devel
BuildRequires: qt5-devel SDL-devel SDL_sound-devel
Obsoletes: openal <= 0.0.10
Provides: openal = %{version}
%description
OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D
audio API. It's forked from the open-sourced Windows version available originally from
openal.org's SVN repository (now defunct).
OpenAL provides capabilities for playing audio in a virtual 3D environment. Distance attenuation,
doppler shift, and directional sound emitters are among the features handled by the API.
More advanced effects, including air absorption, occlusion, and environmental reverb, are available
through the EFX extension. It also facilitates streaming audio, multi-channel buffers, and audio capture.
%package devel
Summary: Development package for %{name}
Requires: %{name} = %{version}-%{release}
Obsoletes: openal-devel <= 0.0.10 %{name}-examples < %{version}-%{release}
Provides: openal-devel = %{version} %{name}-examples = %{version}-%{release}
%description devel
This package contains some libraries and header files for the development
use of %{name}. It also contains some sample applications for %{name}.
%package qt
Summary: Qt frontend for configuring %{name}
Requires: %{name} = %{version}-%{release}
%description qt
This package contains a Qt-based tool, alsoft-config,
for configuring %{name} features.
%prep
%autosetup -p1
%build
%cmake -DALSOFT_CPUEXT_NEON:BOOL=OFF .
%make_build
%install
%make_install
%delete_la
install -Dpm644 alsoftrc.sample %{buildroot}%{_sysconfdir}/openal/alsoft.conf
sed -i 's/#allow-moves = false/allow-moves = true/' %{buildroot}%{_sysconfdir}/openal/alsoft.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING
%{_libdir}/libopenal.so.*
%{_bindir}/openal-info
%dir %{_sysconfdir}/openal
%config(noreplace) %{_sysconfdir}/openal/alsoft.conf
%{_datadir}/openal
%exclude %{_datadir}/openal/alsoftrc.sample
%exclude %{_datadir}/openal/presets/presets.txt
%files devel
%{_bindir}/{bsincgen,makehrtf,alhrtf,allatency}
%{_bindir}/{alloopback,alrecord,alreverb,alstream,altonegen}
%{_includedir}/*
%{_libdir}/libopenal.so
%{_libdir}/pkgconfig/openal.pc
%{_libdir}/cmake/OpenAL
%files qt
%{_bindir}/alsoft-config
%changelog
* Sat Nov 16 2019 huzhiyu <huzhiyu1@huawei.com> - 1.18.2-8
- Package init