2013-07-12 23:58:02 +02:00
|
|
|
|
#
|
2013-07-13 00:34:00 +02:00
|
|
|
|
# spec file for package SDL2_mixer
|
2013-07-12 23:58:02 +02:00
|
|
|
|
#
|
2022-07-10 12:19:35 +02:00
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-07-12 23:58:02 +02:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-03-09 19:24:57 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-12 23:58:02 +02:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2013-07-13 00:34:00 +02:00
|
|
|
|
Name: SDL2_mixer
|
2013-08-15 15:56:31 +02:00
|
|
|
|
%define lname libSDL2_mixer-2_0-0
|
2022-07-18 13:21:47 +02:00
|
|
|
|
Version: 2.6.1
|
2013-07-13 00:34:00 +02:00
|
|
|
|
Release: 0
|
2015-01-06 13:31:19 +01:00
|
|
|
|
Summary: SDL2 sound mixer library
|
2013-07-13 00:34:00 +02:00
|
|
|
|
License: Zlib
|
2013-08-15 15:56:31 +02:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-09-16 00:57:57 +02:00
|
|
|
|
URL: http://libsdl.org/projects/SDL_mixer/
|
2013-08-15 15:56:31 +02:00
|
|
|
|
|
2022-07-10 12:19:35 +02:00
|
|
|
|
#Git-Clone: https://github.com/libsdl-org/SDL_mixer
|
|
|
|
|
Source: https://github.com/libsdl-org/SDL_mixer/releases/download/release-%version/SDL2_mixer-%version.tar.gz
|
2016-01-10 18:32:19 +01:00
|
|
|
|
BuildRequires: dos2unix
|
2015-01-08 10:15:15 +01:00
|
|
|
|
BuildRequires: pkg-config
|
2015-01-06 13:31:19 +01:00
|
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
2017-12-25 22:28:07 +01:00
|
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
2022-07-10 12:19:35 +02:00
|
|
|
|
BuildRequires: pkgconfig(libxmp)
|
|
|
|
|
BuildRequires: pkgconfig(opusfile)
|
2015-01-06 13:31:19 +01:00
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2020-09-16 00:57:57 +02:00
|
|
|
|
Suggests: timidity
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A multichannel audio mixer. It supports four channels of 16-bit stereo
|
2020-09-16 00:57:57 +02:00
|
|
|
|
audio, plus a single channel of music, mixed by the MikMod MOD,
|
2017-12-25 22:28:07 +01:00
|
|
|
|
Timidity MIDI, and mpg123 MP3 libraries.
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
2013-08-15 15:56:31 +02:00
|
|
|
|
%package -n %lname
|
2017-12-25 22:28:07 +01:00
|
|
|
|
Summary: Simple DirectMedia Layer 2 – Sound mixer library
|
2013-07-12 23:58:02 +02:00
|
|
|
|
Group: System/Libraries
|
2015-01-06 13:31:19 +01:00
|
|
|
|
Provides: SDL2_mixer = %version-%release
|
2013-07-13 00:34:00 +02:00
|
|
|
|
|
2013-08-15 15:56:31 +02:00
|
|
|
|
%description -n %lname
|
2013-07-12 23:58:02 +02:00
|
|
|
|
A multichannel audio mixer. It supports four channels of 16-bit stereo
|
2020-09-16 00:57:57 +02:00
|
|
|
|
audio, plus a single channel of music, mixed by the MikMod MOD,
|
2017-12-25 22:28:07 +01:00
|
|
|
|
Timidity MIDI, and mpg123 MP3 libraries.
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%package devel
|
2015-01-06 13:31:19 +01:00
|
|
|
|
Summary: Development files for the SDL2 sound mixer library
|
2013-07-12 23:58:02 +02:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-08-15 15:56:31 +02:00
|
|
|
|
Requires: %lname = %version
|
2022-07-10 12:19:35 +02:00
|
|
|
|
Obsoletes: libSDL2_mixer-devel < %version-%release
|
|
|
|
|
Provides: libSDL2_mixer-devel = %version-%release
|
2013-07-13 00:34:00 +02:00
|
|
|
|
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%description devel
|
2013-07-12 23:58:02 +02:00
|
|
|
|
A multi-channel audio mixer. It supports 4 channels of 16-bit stereo
|
2020-09-16 00:57:57 +02:00
|
|
|
|
audio, plus a single channel of music, mixed by the MikMod MOD,
|
2017-12-25 22:28:07 +01:00
|
|
|
|
Timidity MIDI, and mpg123 MP3 libraries.
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
|
|
|
|
%prep
|
2020-09-16 00:57:57 +02:00
|
|
|
|
%autosetup -p1
|
2016-01-10 18:32:19 +01:00
|
|
|
|
dos2unix *.txt
|
2013-07-13 00:34:00 +02:00
|
|
|
|
rm -rf external
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2022-07-10 12:19:35 +02:00
|
|
|
|
# --disable-*-shared: Link, rather than dlopen
|
|
|
|
|
#
|
2013-07-13 00:34:00 +02:00
|
|
|
|
%configure \
|
2022-07-10 12:19:35 +02:00
|
|
|
|
--disable-music-ogg-stb --enable-music-ogg-vorbis \
|
|
|
|
|
--disable-music-flac-drflac --enable-music-flac-libflac \
|
|
|
|
|
--disable-music-mp3-drmp3 --enable-music-mp3-mpg123 \
|
|
|
|
|
--disable-music-mod-modplug --enable-music-mod-xmp \
|
|
|
|
|
--disable-music-mod-xmp-shared \
|
2017-12-25 22:28:07 +01:00
|
|
|
|
--disable-music-midi-fluidsynth-shared \
|
2013-07-13 00:34:00 +02:00
|
|
|
|
--disable-music-ogg-shared \
|
|
|
|
|
--disable-music-flac-shared \
|
2017-12-25 22:28:07 +01:00
|
|
|
|
--enable-music-mp3-mpg123-shared \
|
2015-01-06 13:31:19 +01:00
|
|
|
|
--disable-static
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%make_build
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
|
|
|
|
%install
|
2015-01-06 13:31:19 +01:00
|
|
|
|
%make_install install-bin
|
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2013-08-28 20:35:24 +02:00
|
|
|
|
# We have these debug tools in SDL_mixer-devel already
|
|
|
|
|
rm -f "%buildroot/%_bindir"/play*
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
2015-01-06 13:31:19 +01:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2013-08-15 15:56:31 +02:00
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
2013-08-15 15:56:31 +02:00
|
|
|
|
%files -n %lname
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%license LICENSE.txt
|
2019-03-09 19:24:57 +01:00
|
|
|
|
%doc CHANGES.txt README.txt
|
2015-01-06 13:31:19 +01:00
|
|
|
|
%_libdir/libSDL2_mixer-2*.so.*
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%files devel
|
2015-01-06 13:31:19 +01:00
|
|
|
|
%_includedir/SDL2/
|
|
|
|
|
%_libdir/libSDL2_mixer.so
|
2022-07-10 12:19:35 +02:00
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
%_libdir/cmake/
|
2013-07-12 23:58:02 +02:00
|
|
|
|
|
|
|
|
|
%changelog
|