forked from pool/SDL_sound
Go back to r19; turns out SDL(2)_sound has more (packaging) changes than previously thought and it cannot be used as a drop-in
OBS-URL: https://build.opensuse.org/package/show/games/SDL_sound?expand=0&rev=24
This commit is contained in:
parent
330f3ed061
commit
3231457f0f
41
SDL_sound-1.0.3-nompglib.patch
Normal file
41
SDL_sound-1.0.3-nompglib.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
--- configure
|
||||||
|
+++ configure
|
||||||
|
@@ -22990,7 +22990,7 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
-ac_config_files="$ac_config_files Makefile decoders/Makefile decoders/timidity/Makefile decoders/mpglib/Makefile playsound/Makefile"
|
||||||
|
+ac_config_files="$ac_config_files Makefile decoders/Makefile decoders/timidity/Makefile playsound/Makefile"
|
||||||
|
|
||||||
|
cat >confcache <<\_ACEOF
|
||||||
|
# This file is a shell script that caches the results of configure
|
||||||
|
--- configure.in
|
||||||
|
+++ configure.in
|
||||||
|
@@ -342,6 +342,5 @@
|
||||||
|
Makefile
|
||||||
|
decoders/Makefile
|
||||||
|
decoders/timidity/Makefile
|
||||||
|
-decoders/mpglib/Makefile
|
||||||
|
playsound/Makefile
|
||||||
|
])
|
||||||
|
--- decoders/Makefile.am
|
||||||
|
+++ decoders/Makefile.am
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
noinst_LTLIBRARIES = libdecoders.la
|
||||||
|
|
||||||
|
-SUBDIRS = timidity mpglib
|
||||||
|
+SUBDIRS = timidity
|
||||||
|
|
||||||
|
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/decoders/timidity
|
||||||
|
|
||||||
|
--- decoders/Makefile.in
|
||||||
|
+++ decoders/Makefile.in
|
||||||
|
@@ -201,7 +201,7 @@
|
||||||
|
target_os = @target_os@
|
||||||
|
target_vendor = @target_vendor@
|
||||||
|
noinst_LTLIBRARIES = libdecoders.la
|
||||||
|
-SUBDIRS = timidity mpglib
|
||||||
|
+SUBDIRS = timidity
|
||||||
|
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/decoders/timidity
|
||||||
|
libdecoders_la_SOURCES = \
|
||||||
|
aiff.c \
|
3
SDL_sound-1.0.3-nompglib.tar.bz2
Normal file
3
SDL_sound-1.0.3-nompglib.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b5c3d268d631d175ade562ba3a2187282f0a85f7f6ee0894d0ea843c030e10d3
|
||||||
|
size 995688
|
@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Sat Mar 26 13:11:24 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Update to release 2.0.1
|
|
||||||
* Removed support for QuickTime, Speex and MikMod.
|
|
||||||
* SDL_sound 2's public API has not changed at all from
|
|
||||||
SDL_sound 1.x.
|
|
||||||
- Drop SDL_sound-1.0.3-nompglib.patch, no longer applies.
|
|
||||||
- Drop baselibs.conf.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 17 23:27:04 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Thu Jan 17 23:27:04 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package SDL_sound
|
# spec file for package SDL_sound
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,22 +17,25 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: SDL_sound
|
Name: SDL_sound
|
||||||
%define lname libSDL2_sound2
|
%define lname libSDL_sound-1_0-1
|
||||||
Version: 2.0.1
|
Version: 1.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: http://icculus.org/SDL_sound/
|
Url: http://icculus.org/SDL_sound/
|
||||||
|
|
||||||
Source: https://github.com/icculus/SDL_sound/archive/refs/tags/v%version.tar.gz
|
Source: %name-%version-nompglib.tar.bz2
|
||||||
BuildRequires: c++_compiler
|
Source2: baselibs.conf
|
||||||
BuildRequires: cmake
|
Patch0: %name-%version-nompglib.patch
|
||||||
BuildRequires: pkgconfig(sdl2)
|
BuildRequires: flac-devel
|
||||||
Provides: bundled(dr_flac) = 0.12.37
|
BuildRequires: libSDL-devel
|
||||||
Provides: bundled(dr_mp3) = 0.6.32
|
BuildRequires: libmikmod-devel
|
||||||
Provides: bundled(libmodplug)
|
BuildRequires: libogg-devel
|
||||||
Provides: bundled(stb_vorbis) = 1.22
|
BuildRequires: libvorbis-devel
|
||||||
|
BuildRequires: speex-devel
|
||||||
|
BuildRequires: pkgconfig(libmodplug)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SDL_sound is a library that handles the decoding of several popular
|
SDL_sound is a library that handles the decoding of several popular
|
||||||
@ -54,15 +57,15 @@ play a file or alternatively decode a file and hand back a single
|
|||||||
pointer to the waveform. SDL_sound also can handle channel conversion
|
pointer to the waveform. SDL_sound also can handle channel conversion
|
||||||
on-the-fly and behind-the-scenes.
|
on-the-fly and behind-the-scenes.
|
||||||
|
|
||||||
%package devel
|
%package -n libSDL_sound-devel
|
||||||
Summary: Development files for the SDL sound sample library
|
Summary: Development files for the SDL sound sample library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %version
|
Requires: %lname = %version
|
||||||
Requires: pkgconfig(sdl2)
|
Requires: pkgconfig(sdl)
|
||||||
Provides: libSDL_sound-devel = %version
|
Provides: SDL_sound-devel = %version
|
||||||
Obsoletes: libSDL_sound-devel <= %version
|
Obsoletes: SDL_sound-devel <= %version
|
||||||
|
|
||||||
%description devel
|
%description -n libSDL_sound-devel
|
||||||
SDL_sound is a library that handles the decoding of several popular
|
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
|
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
|
play a file or alternatively decode a file and hand back a single
|
||||||
@ -70,28 +73,31 @@ pointer to the waveform. SDL_sound also can handle channel conversion
|
|||||||
on-the-fly and behind-the-scenes.
|
on-the-fly and behind-the-scenes.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DSDLSOUND_BUILD_STATIC:BOOL=OFF
|
%configure \
|
||||||
%cmake_build
|
--disable-static \
|
||||||
|
--disable-sdltest \
|
||||||
|
--disable-smpeg \
|
||||||
|
--disable-mpglib
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot"
|
make install DESTDIR=%buildroot
|
||||||
mkdir -p "$b/%_libdir" "$b/%_includedir/SDL" "$b/%_bindir"
|
rm -f "%buildroot/%_libdir"/*.la
|
||||||
cp -av build/libSDL* "$b/%_libdir/"
|
|
||||||
ln -s libSDL2_sound.so "$b/%_libdir/libSDL_sound.so"
|
|
||||||
cp -av src/SDL_sound.h "$b/%_includedir/SDL/"
|
|
||||||
cp -av build/play* "$b/%_bindir/"
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %lname
|
%files -n libSDL_sound-1_0-1
|
||||||
%license LICENSE.txt
|
%defattr(-,root,root)
|
||||||
|
%doc CHANGELOG COPYING CREDITS README TODO
|
||||||
%_libdir/lib*.so.*
|
%_libdir/lib*.so.*
|
||||||
|
|
||||||
%files devel
|
%files -n libSDL_sound-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
%_bindir/playsound*
|
%_bindir/playsound*
|
||||||
%_includedir/SDL/
|
%_includedir/SDL/
|
||||||
%_libdir/lib*.so
|
%_libdir/lib*.so
|
||||||
|
6
baselibs.conf
Normal file
6
baselibs.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
libSDL_sound-1_0-1
|
||||||
|
provides "SDL_sound-<targettype> = <version>"
|
||||||
|
obsoletes "SDL_sound-<targettype> <= <version>"
|
||||||
|
libSDL_sound-devel
|
||||||
|
requires -libSDL_sound-<targettype>
|
||||||
|
requires "libSDL_sound-1_0-1-<targettype> = <version>"
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3527f05b7a3f00d8523cf25671598c85568b4e8b615ce7570113b44cbb7d555c
|
|
||||||
size 443682
|
|
Loading…
Reference in New Issue
Block a user