File mingw64-libgme.spec of Package mingw64-libgme

#
# spec file for package mingw64-libgme
#
# Copyright (c) 2023-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 http://bugs.opensuse.org/
#


Name:           mingw64-libgme
Version:        0.6.4
Release:        0
Summary:        Collection of video game music file emulators
License:        LGPL-2.1-or-later
Group:          System/Libraries
URL:            https://github.com/libgme/game-music-emu
Source0:        https://github.com/libgme/game-music-emu/releases/download/%{version}/libgme-%{version}-src.tar.gz
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-cross-cmake
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Game_Music_Emu is a collection of video game music file emulators that support
the following formats and systems:
- AY: ZX Spectrum/Amstrad CPC
- GBS: Nintendo Game Boy
- GYM: Sega Genesis/Mega Drive
- HES: NEC TurboGrafx-16/PC Engine
- KSS: MSX Home Computer/other Z80 systems (doesn't support FM sound)
- NSF/NSFE: Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
- SAP: Atari systems using POKEY sound chip
- SPC: Super Nintendo/Super Famicom
- VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro

%package -n mingw64-libgme0
Summary:        Collection of video game music file emulators
Group:          System/Libraries

%description -n mingw64-libgme0
Game_Music_Emu is a collection of video game music file emulators that support
the following formats and systems:
- AY: ZX Spectrum/Amstrad CPC
- GBS: Nintendo Game Boy
- GYM: Sega Genesis/Mega Drive
- HES: NEC TurboGrafx-16/PC Engine
- KSS: MSX Home Computer/other Z80 systems (doesn't support FM sound)
- NSF/NSFE: Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
- SAP: Atari systems using POKEY sound chip
- SPC: Super Nintendo/Super Famicom
- VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro

%package -n mingw64-libgme-devel
Summary:        MinGW development libraries and headers for libgme
Group:          Development/Libraries/C and C++
Requires:       mingw64-libgme0 = %{version}

%description -n mingw64-libgme-devel
Game_Music_Emu is a collection of video game music file emulators that support
the following formats and systems:
- AY: ZX Spectrum/Amstrad CPC
- GBS: Nintendo Game Boy
- GYM: Sega Genesis/Mega Drive
- HES: NEC TurboGrafx-16/PC Engine
- KSS: MSX Home Computer/other Z80 systems (doesn't support FM sound)
- NSF/NSFE: Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
- SAP: Atari systems using POKEY sound chip
- SPC: Super Nintendo/Super Famicom
- VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro

This package contains development tools and libraries for use when
cross-compiling Windows software.

%_mingw64_debug_package

%prep
%autosetup -p1 -n libgme-%{version}
sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt

%build
%{_mingw64_cmake} \
  -DGME_BUILD_STATIC=OFF \
  -DENABLE_UBSAN=OFF
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}

%files -n mingw64-libgme0
%license license.txt
%doc changes.txt gme.txt readme.txt
%{_mingw64_bindir}/libgme.dll

%files -n mingw64-libgme-devel
%{_mingw64_includedir}/gme
%{_mingw64_libdir}/libgme.dll.a
%{_mingw64_libdir}/pkgconfig/libgme.pc

%changelog
openSUSE Build Service is sponsored by