From 25bcd741f42cf9ff97d81db874a8ff54e2736ea9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:17:05 +0100 Subject: [PATCH] update to 1.20.1 [release 1.20.1-1mamba;Sat May 02 2020] --- libopenal-1.20.1-libSDL2-2.0.12.patch | 78 +++++++++++++++++++++++++++ libopenal.spec | 53 +++++++++++++----- 2 files changed, 119 insertions(+), 12 deletions(-) create mode 100644 libopenal-1.20.1-libSDL2-2.0.12.patch diff --git a/libopenal-1.20.1-libSDL2-2.0.12.patch b/libopenal-1.20.1-libSDL2-2.0.12.patch new file mode 100644 index 0000000..cd1f8d6 --- /dev/null +++ b/libopenal-1.20.1-libSDL2-2.0.12.patch @@ -0,0 +1,78 @@ +diff --git i/examples/alhrtf.c w/examples/alhrtf.c +index 2be28a91..dfa01e5c 100644 +--- i/examples/alhrtf.c ++++ w/examples/alhrtf.c +@@ -30,8 +30,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + #include "AL/alc.h" +diff --git i/examples/allatency.c w/examples/allatency.c +index a61fb820..5705506a 100644 +--- i/examples/allatency.c ++++ w/examples/allatency.c +@@ -28,8 +28,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + #include "AL/alext.h" +diff --git i/examples/almultireverb.c w/examples/almultireverb.c +index a90b3368..65e444f5 100644 +--- i/examples/almultireverb.c ++++ w/examples/almultireverb.c +@@ -35,8 +35,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + #include "AL/alc.h" +diff --git i/examples/alplay.c w/examples/alplay.c +index 09ad96b4..01cf769d 100644 +--- i/examples/alplay.c ++++ w/examples/alplay.c +@@ -28,8 +28,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + +diff --git i/examples/alreverb.c w/examples/alreverb.c +index d789dffe..a6dd141d 100644 +--- i/examples/alreverb.c ++++ w/examples/alreverb.c +@@ -28,8 +28,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + #include "AL/alc.h" +diff --git i/examples/alstream.c w/examples/alstream.c +index 56505ddb..103492c7 100644 +--- i/examples/alstream.c ++++ w/examples/alstream.c +@@ -30,8 +30,6 @@ + #include + + #include "SDL_sound.h" +-#include "SDL_audio.h" +-#include "SDL_stdinc.h" + + #include "AL/al.h" + diff --git a/libopenal.spec b/libopenal.spec index fcb216a..0a2da34 100644 --- a/libopenal.spec +++ b/libopenal.spec @@ -1,5 +1,5 @@ Name: libopenal -Version: 1.19.1 +Version: 1.20.1 Release: 1mamba Summary: Open Audio Library Group: System/Libraries @@ -14,17 +14,32 @@ Patch0: openal-conf.patch Patch1: openal-etc_openalrc.patch Patch2: openal-incl.patch Patch3: %{name}-0.0.8-gcc42.patch +Patch4: libopenal-1.20.1-libSDL2-2.0.12.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libSDL2-devel +BuildRequires: libSDL_sound-devel +BuildRequires: libatomic-devel +BuildRequires: libavcodec-ffmpeg-devel +BuildRequires: libavformat-ffmpeg-devel +BuildRequires: libavutil-ffmpeg-devel +BuildRequires: libgcc +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +BuildRequires: libswresample-ffmpeg-devel +BuildRequires: libswscale-ffmpeg-devel +BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libalsa-devel +BuildRequires: libpulseaudio-devel +BuildRequires: libjack-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libesound-devel BuildRequires: libogg-devel BuildRequires: libvorbis-devel -BuildRequires: libSDL2-devel BuildRequires: texinfo BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: libopenal-test @@ -34,7 +49,7 @@ OpenAL is an audio library designed in the spirit of OpenGL - machine independen %package devel Summary: Static libraries and header files for openal library -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Group: Development/Libraries %description devel @@ -42,15 +57,23 @@ This package contains static libraries and header files for the openal library. OpenAL is an audio library designed in the spirit of OpenGL - machine independent, cross platform, and data format neutral, with a clean, simple C-based API. +%package -n openal +Summary: Tools provided with the openal library +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Group: Applications/Multimedia + +%description -n openal +OpenAL is an audio library designed in the spirit of OpenGL - machine independent, cross platform, and data format neutral, with a clean, simple C-based API. + +%debug_package + %prep %setup -q -n openal-soft-%{version} -#%patch0 -p1 -#%patch1 -#%patch2 -p1 -#%patch3 -p1 +%patch4 -p1 %build -%cmake +%cmake -d build + # --enable-arts \ # --enable-alsa \ # --enable-esd \ @@ -63,7 +86,7 @@ OpenAL is an audio library designed in the spirit of OpenGL - machine independen %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall +%makeinstall -C build # # configuration @@ -86,6 +109,11 @@ fi %files %defattr(-,root,root,-) +%{_libdir}/libopenal.so.* +%doc COPYING + +%files -n openal +%defattr(-,root,root,-) %config %{_sysconfdir}/openalrc %{_bindir}/allatency %{_bindir}/alffplay @@ -98,15 +126,13 @@ fi %{_bindir}/alstream %{_bindir}/altonegen #%{_bindir}/bsincgen -%{_bindir}/makehrtf -%{_libdir}/libopenal.so.* +#%{_bindir}/makehrtf %dir %{_datadir}/openal %{_datadir}/openal/alsoftrc.sample %dir %{_datadir}/openal/hrtf %{_datadir}/openal/hrtf/*.mhr %dir %{_datadir}/openal/presets %{_datadir}/openal/presets/* -%doc COPYING %files devel %defattr(-,root,root,-) @@ -121,6 +147,9 @@ fi %{_libdir}/pkgconfig/openal.pc %changelog +* Sat May 02 2020 Silvan Calarco 1.20.1-1mamba +- update to 1.20.1 + * Sat Nov 24 2018 Automatic Build System 1.19.1-1mamba - automatic version update by autodist