openal-soft/openal-soft.spec
2022-11-16 11:15:06 +08:00

85 lines
2.8 KiB
RPMSpec

Name: openal-soft
Version: 1.18.2
Release: 9
Summary: A software implementation of the OpenAL 3D audio API
License: LGPLv2+
URL: https://www.openal-soft.org/
Source0: https://www.openal-soft.org/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
* Thu Nov 10 2022 liyanan <liyanan32@h-partners.com> - 1.18.2-9
- Change source
* Sat Nov 16 2019 huzhiyu <huzhiyu1@huawei.com> - 1.18.2-7
- Package init