File mingw64-SDL2_mixer.spec of Package mingw64-SDL2_mixer
#
# spec file for package mingw64-SDL2_mixer
#
# Copyright (c) 2021-2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define realname SDL2_mixer
Name: mingw64-%{realname}
Version: 2.8.1
Release: 0
Summary: SDL2 sound mixer library
License: Zlib
Group: Development/Libraries/C and C++
URL: https://github.com/libsdl-org/SDL_mixer
#Git-Clone: https://github.com/libsdl-org/SDL_mixer.git
Source: https://github.com/libsdl-org/SDL_mixer/releases/download/release-%version/SDL2_mixer-%version.tar.gz
Source2: https://github.com/libsdl-org/SDL_mixer/releases/download/release-%version/SDL2_mixer-%version.tar.gz.sig
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-devel
BuildRequires: mingw64-flac-devel
BuildRequires: mingw64-libvorbis-devel
BuildRequires: mingw64-opusfile-devel
BuildRequires: mingw64-libgme-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
A multichannel audio mixer. It supports four channels of 16-bit stereo
audio, plus a single channel of music, mixed by the MikMod MOD,
Timidity MIDI, and mpg123 MP3 libraries.
%package devel
Summary: Development files for the SDL2 sound mixer library
Group: Development/Libraries/C and C++
Requires: %name = %version
%description devel
A multi-channel audio mixer. It supports 4 channels of 16-bit stereo
audio, plus a single channel of music, mixed by the MikMod MOD,
Timidity MIDI, and mpg123 MP3 libraries.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
sed -i 's/\r$//' CHANGES.txt README.txt
%build
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_make_install}
%files
%{_mingw64_bindir}/SDL2_mixer.dll
%files devel
%license LICENSE.txt
%doc CHANGES.txt README.txt
%{_mingw64_includedir}/SDL2/SDL_mixer.h
%{_mingw64_libdir}/libSDL2_mixer.dll.a
%{_mingw64_libdir}/pkgconfig/SDL2_mixer.pc
%_mingw64_libdir/cmake/SDL2_mixer/
%changelog