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#/ZMusic-%{version}.tar.gz
Patch1:         zmusic-mingw64.patch
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%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-libzmusic1
Summary:        ZDoom component library for music handling
Group:          System/Libraries

%description -n mingw64-libzmusic1
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-libzmusic1 = %{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
%{_mingw64_cmake}
%{_mingw64_cmake_build} %{?_smp_mflags}

%install
%{_mingw64_cmake_install}

%files -n mingw64-libzmusic1
%license licenses/*
%doc README.md
%{_mingw64_bindir}/libzmusic.dll
%{_mingw64_bindir}/libzmusiclite.dll

%files devel
%{_mingw64_includedir}/zmusic.h
%{_mingw64_libdir}/cmake/ZMusic
%{_mingw64_libdir}/libzmusic.dll.a
%{_mingw64_libdir}/libzmusiclite.dll.a

%changelog
openSUSE Build Service is sponsored by