From 1049f9117cbcbdb10f1648befc465487baadf1a83eccae6d91a52c6ac91db901 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 6 Apr 2022 21:56:31 +0000 Subject: [PATCH] Accepting request 966039 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/966039 OBS-URL: https://build.opensuse.org/package/show/games/SDL2_sound?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + SDL2_sound.changes | 17 +++++++ SDL2_sound.spec | 92 ++++++++++++++++++++++++++++++++++++++ SDL_sound-2.0.1.g17.tar.xz | 3 ++ _service | 15 +++++++ 6 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 SDL2_sound.changes create mode 100644 SDL2_sound.spec create mode 100644 SDL_sound-2.0.1.g17.tar.xz create mode 100644 _service diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SDL2_sound.changes b/SDL2_sound.changes new file mode 100644 index 0000000..f7135a6 --- /dev/null +++ b/SDL2_sound.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Wed Mar 30 13:26:51 UTC 2022 - Jan Engelhardt + +- Move to 2.0.1.g17 (df3fc77) + * Resolve build failures on Leap 15.3 + +------------------------------------------------------------------- +Sat Mar 26 13:11:24 UTC 2022 - Jan Engelhardt + +- New package SDL2_sound for build.opensuse.org. In comparison to + SDL_sound (1.x): + * Removed support for QuickTime, Speex and MikMod + * SDL_sound 2's public API has not changed at all from 1.x + * SDL_sound.h requires SDL2 now (can't mix SDL2_sound with SDL1) + * The library name changed to -lSDL2_sound +- Drop SDL_sound-1.0.3-nompglib.patch, no longer applies +- Drop baselibs.conf diff --git a/SDL2_sound.spec b/SDL2_sound.spec new file mode 100644 index 0000000..e59e934 --- /dev/null +++ b/SDL2_sound.spec @@ -0,0 +1,92 @@ +# +# spec file for package SDL2_sound +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: SDL2_sound +%define lname libSDL2_sound2 +Version: 2.0.1.g17 +Release: 0 +Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: http://icculus.org/SDL_sound/ + +#Source: https://github.com/icculus/SDL_sound/archive/refs/tags/v%version.tar.gz +Source: SDL_sound-%version.tar.xz +BuildRequires: c_compiler +BuildRequires: cmake +BuildRequires: pkgconfig(sdl2) +Provides: bundled(dr_flac) = 0.12.37 +Provides: bundled(dr_mp3) = 0.6.32 +Provides: bundled(libmodplug) +Provides: bundled(stb_vorbis) = 1.22 + +%description +SDL_sound is a library that handles the decoding of several popular +sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just +play a file or alternatively decode a file and hand back a single +pointer to the waveform. SDL_sound also can handle channel conversion +on-the-fly and behind-the-scenes. + +%package -n %lname +Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) +Group: System/Libraries + +%description -n %lname +SDL_sound is a library that handles the decoding of several popular +sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just +play a file or alternatively decode a file and hand back a single +pointer to the waveform. SDL_sound also can handle channel conversion +on-the-fly and behind-the-scenes. + +%package devel +Summary: Development files for the SDL sound sample library +Group: Development/Libraries/C and C++ +Requires: %lname = %version +Requires: pkgconfig(sdl2) +Conflicts: SDL_sound-devel + +%description devel +SDL_sound is a library that handles the decoding of several popular +sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just +play a file or alternatively decode a file and hand back a single +pointer to the waveform. SDL_sound also can handle channel conversion +on-the-fly and behind-the-scenes. + +%prep +%autosetup -n SDL_sound-%version -p1 + +%build +%cmake -DSDLSOUND_BUILD_STATIC:BOOL=OFF +%cmake_build + +%install +%cmake_install + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%license LICENSE.txt +%_libdir/lib*.so.* + +%files devel +%_bindir/playsound* +%_includedir/SDL2/ +%_libdir/lib*.so + +%changelog diff --git a/SDL_sound-2.0.1.g17.tar.xz b/SDL_sound-2.0.1.g17.tar.xz new file mode 100644 index 0000000..be23ccb --- /dev/null +++ b/SDL_sound-2.0.1.g17.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46ab5fcbb99f8a520b667870f80028533e21a24766032be1595a9acd6e6b9c6e +size 342612 diff --git a/_service b/_service new file mode 100644 index 0000000..96d68ad --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + SDL_sound + git + https://github.com/icculus/SDL_sound + df3fc779774c2c5dc1147239da1af858c88f1a74 + v2.0.1 + 2.0.1.g@TAG_OFFSET@ + + + *.tar + xz + + +