File mingw64-libmikmod.spec of Package mingw64-libmikmod

#
# spec file for package mingw64-libmikmod
#
# 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/
#

%define realname libmikmod
Name:           mingw64-%{realname}
Version:        3.3.11.1
Release:        0
Summary:        MikMod Sound Library
License:        LGPL-2.1-or-later
URL:            http://mikmod.raphnet.net/
Source:         http://sourceforge.net/projects/mikmod/files/%{realname}/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-openal-soft-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Libmikmod is a portable sound library, capable of playing samples as
well as module files. It was originally written by Jean-Paul Mikkers
(MikMak) for DOS. It supports OSS /dev/dsp, ALSA, and Esound and can
also write wav files. Supported file formats include mod, stm, s3m,
mtm, xm, and it.

%package -n mingw64-%{realname}-devel
Summary:        Development files for MikMod Sound Library
Group:          Development/Libraries/C and C++
Requires:       mingw64-%{realname} = %{version}

%description -n mingw64-%{realname}-devel
This package contains files needed for compiling programs using
libmikmod.

Libmikmod is a portable sound library, capable of playing samples as
well as module files. It was originally written by Jean-Paul Mikkers
(MikMak) for DOS. It supports OSS /dev/dsp, ALSA, and Esound and can
also write wav files. Supported file formats include mod, stm, s3m,
mtm, xm, and it.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_configure} \
  --enable-openal \
  --disable-static
%{_mingw64_make} V=1 %{?_smp_mflags}

%install
%{_mingw64_make_install}
rm -Rvf %{buildroot}%{_mingw64_datadir}/info/

%files
%license COPYING.LIB COPYING.LESSER
%{_mingw64_bindir}/libmikmod-3.dll

%files -n mingw64-%{realname}-devel
%doc README
%{_mingw64_bindir}/libmikmod-config
%{_mingw64_includedir}/mikmod.h
%{_mingw64_libdir}/libmikmod.dll.a
%{_mingw64_libdir}/pkgconfig/libmikmod.pc
%{_mingw64_datadir}/aclocal/
%{_mingw64_mandir}/man1/libmikmod-config.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by