File mingw64-libopenmpt.spec of Package mingw64-libopenmpt
#
# spec file for package mingw64-libopenmpt
#
# Copyright (c) 2024-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 libopenmpt
%define libname mingw64-lib%{realname}0
#
%_mingw64_package_header_debug
Name: mingw64-%{realname}
Version: 0.8.3
Release: 0
Summary: C++ and C library to decode tracker music files
License: BSD-3-Clause
Group: Productivity/Multimedia/Other
URL: https://lib.openmpt.org/libopenmpt/
Source: https://lib.openmpt.org/files/libopenmpt/src/%{realname}-%{version}+release.autotools.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-flac-devel >= 1.3.0
BuildRequires: mingw64-libogg-devel
BuildRequires: mingw64-libvorbis-devel
BuildRequires: mingw64-mpg123-devel >= 1.14.0
BuildRequires: mingw64-portaudio-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: pkgconfig
BuildArch: noarch
%description
libopenmpt is a C++ and C library to decode tracker music files
(modules) into a PCM audio stream. It is based on the player code of
the OpenMPT project, a descendant of the original ModPlug Tracker.
%package -n %{libname}
Summary: Library to operate with module formats using the openmpt API
%description -n %{libname}
libopenmpt is a C++ and C library to decode tracker music files
(modules) into a PCM audio stream. It is based on the player code of
the OpenMPT project, a descendant of the original ModPlug Tracker.
This subpackage contains the implementation as a shared library.
%package -n mingw64-%{realname}-devel
Summary: Development files for libopenmpt
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description -n mingw64-%{realname}-devel
This package contains the development files required to compile programs
using libopenmpt.
%package -n mingw64-openmpt123
Summary: Command line module player
Group: Productivity/Multimedia/Sound/Players
%description -n mingw64-openmpt123
This package contains the openmpt123 command-line module player.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}+release.autotools
#%%autopatch -p0
sed -i 's/\r$//' LICENSE README.md
%build
%{_mingw64_configure} \
--disable-static \
--disable-silent-rules \
--disable-doxygen-doc \
--without-portaudiocpp \
--without-sndfile
%{_mingw64_make} %{?_smp_mflags}
%check
%install
%{_mingw64_make_install}
rm -Rv %{buildroot}%{_mingw64_docdir}/libopenmpt/
%files -n %{libname}
%license LICENSE README.md
%{_mingw64_bindir}/libopenmpt-0.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/libopenmpt
%{_mingw64_libdir}/libopenmpt.dll.a
%{_mingw64_libdir}/pkgconfig/libopenmpt.pc
%files -n mingw64-openmpt123
%{_mingw64_bindir}/openmpt123.exe
%{_mingw64_mandir}/man1/openmpt123.1%{?ext_man}
%changelog