File mingw64-zmusic.spec of Package mingw64-zmusic
# # spec file for package mingw64-zmusic # # Copyright (c) 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-zmusic Version: 1.1.14 Release: 0 Summary: ZDoom component library for music handling License: GPL-3.0-only Group: Development/Libraries/C and C++ URL: https://zdoom.org/ #Git-Clone: https://github.com/ZDoom/ZMusic Source: https://github.com/ZDoom/ZMusic/archive/%version.tar.gz Patch1: zmusic-mingw64.patch BuildRequires: mingw64-cross-gcc-c++ BuildRequires: mingw64-cross-cmake BuildRequires: mingw64-zlib-devel BuildArch: noarch # DUMB is modified to read OggVorbis samples # Though everything else has been moved to libxmp, DSIK format still uses foo_DUMB Provides: bundled(dumb) = 0.9.3 %_mingw64_package_header_debug %description This is the music playback code from gzdoom, which was separated into its own code repository starting with gzdoom-4.4.0. %package -n mingw64-libzmusic Summary: ZDoom component library for music handling Group: System/Libraries %description -n mingw64-libzmusic This is the music playback code from gzdoom, which was separated into its own code repository starting with gzdoom-4.4.0. %package devel Summary: Headers for the ZMusic library Group: Development/Libraries/C and C++ Requires: mingw64-libzmusic = %version %description devel This subpackage contains the headers for the zmusic library, which is ZDoom's music component library. %_mingw64_debug_package %prep %autosetup -p1 -n ZMusic-%version %build # There is handcrafted assembler, which LTO does not play nice with. %define _lto_cflags %nil %_mingw64_cmake -DNO_STRIP=1 %_mingw64_cmake_build %install %_mingw64_cmake_install %files -n mingw64-libzmusic %_mingw64_bindir/libzmusic*.dll %license licenses/* %files devel %_mingw64_includedir/* %_mingw64_libdir/libzmusic*.dll.a %_mingw64_libdir/cmake/ %changelog