File mingw32-libgme.spec of Package mingw32-libgme

#
# spec file for package mingw32-libgme
#
# Copyright (c) 2023, 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:           mingw32-libgme
Version:        0.6.3
Release:        0
Summary:        Collection of video game music file emulators
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            https://bitbucket.org/mpyne/game-music-emu/wiki/Home
Source0:        https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-%{version}.tar.xz
#BuildRequires:  cmake
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-filesystem
#!BuildIgnore: post-build-checks
%_mingw32_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 mingw32-libgme0
Summary:        Collection of video game music file emulators
Group:          System/Libraries

%description -n mingw32-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 mingw32-libgme-devel
Summary:        MinGW development libraries and headers for libgme
Group:          Development/Libraries/C and C++
Requires:       mingw32-libgme0 = %{version}

%description -n mingw32-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.

%_mingw32_debug_package

%prep
%setup -q -n game-music-emu-%{version}
sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt

%build
%{_mingw32_cmake} -DENABLE_UBSAN=OFF
%{_mingw32_make} %{?_smp_mflags}

%install
%{_mingw32_cmake_install}

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

%files -n mingw32-libgme-devel
%{_mingw32_includedir}/gme
%{_mingw32_libdir}/libgme.dll.a
%{_mingw32_libdir}/pkgconfig/libgme.pc

%changelog
openSUSE Build Service is sponsored by