File mingw64-libxmp.spec of Package mingw64-libxmp

#
# spec file for package mingw64-libxmp
#
# 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 libxmp
Name:           mingw64-%{realname}
Version:        4.6.3
Release:        0
Summary:        Module Player library for MOD, S3M, IT and others
License:        MIT
Group:          System/Libraries
URL:            https://xmp.sourceforge.net/
#Git-Clone:	https://github.com/libxmp/libxmp
Source:         https://github.com/libxmp/libxmp/releases/download/%{realname}-%{version}/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch:      noarch

%description
libxmp is a module player library which supports many module formats,
including MOD, S3M and IT. Possible applications for libxmp include
standalone module players, module player plugins for other players,
module information extractors, background music replayers for games
and other applications, converters, etc.

%package -n mingw64-%{realname}-devel
Summary:        Development files for libxmp, a MOD/S3M/IT/etc. module player library
Group:          Development/Libraries/C and C++
Requires:       mingw64-%{realname} = %{version}

%description -n mingw64-%{realname}-devel
libxmp is a module player library which supports many module formats,
including MOD, S3M and IT. Possible applications for libxmp include
standalone module players, module player plugins for other players,
module information extractors, background music replayers for games
and other applications, converters, etc.

This subpackage contains headers and library development files for
libxmp.

%_mingw64_debug_package

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

%build
%{_mingw64_configure}
%{_mingw64_make} V=1 %{?_smp_mflags}

%install
%{_mingw64_make_install} DESTDIR=%{buildroot}

%files
%{_mingw64_bindir}/libxmp.dll

%files -n mingw64-%{realname}-devel
%license docs/COPYING
%{_mingw64_includedir}/xmp.h
%{_mingw64_libdir}/libxmp.dll.a
%{_mingw64_libdir}/pkgconfig/libxmp.pc
%{_mingw64_libdir}/cmake/libxmp

%changelog
openSUSE Build Service is sponsored by