File mingw64-libadplug.spec of Package mingw64-libadplug
#
# spec file for package mingw64-libadplug
#
# 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/
#
Name: mingw64-libadplug
Version: 2.4
Release: 0
Summary: AdLib Sound Player Library
License: LGPL-2.1-only
Group: System/Libraries
#Git-Clone: https://github.com/adplug/adplug.git
URL: https://adplug.github.io/
Source: adplug-%{version}.tar.xz
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: pkgconfig
BuildRequires: mingw64-libbinio-devel
BuildRequires: makeinfo
%_mingw64_package_header_debug
BuildArch: noarch
%description
AdPlug is a hardware independent AdLib sound player library.
AdPlug plays sound data, originally created for the AdLib (OPL2) and
Sound Blaster (Dual OPL2/OPL3) audio boards, directly from its original
format on top of an emulator or by using the real hardware.
No OPL chip is required for playback.
%package -n mingw64-libadplug0
Summary: MinGW port of AdLib Sound Player Library
Group: System/Libraries
%description -n mingw64-libadplug0
AdPlug is a hardware independent AdLib sound player library.
AdPlug plays sound data, originally created for the AdLib (OPL2) and
Sound Blaster (Dual OPL2/OPL3) audio boards, directly from its original
format on top of an emulator or by using the real hardware.
No OPL chip is required for playback.
%package -n mingw64-libadplug-devel
Summary: MinGW port of AdLib Sound Player Library
Group: Development/Libraries/C and C++
Requires: mingw64-libadplug0 = %{version}
%description -n mingw64-libadplug-devel
AdPlug is a hardware independent AdLib sound player library.
AdPlug plays sound data, originally created for the AdLib (OPL2) and
Sound Blaster (Dual OPL2/OPL3) audio boards, directly from its original
format on top of an emulator or by using the real hardware.
No OPL chip is required for playback.
This package contains development tools and libraries for use when
cross-compiling Windows software.
%package -n mingw64-adplugdb
Summary: AdPlug Database Maintenance Utility
Group: Productivity/Multimedia/Sound/Utilities
%description -n mingw64-adplugdb
adplugdb maintains database files in AdPlug database format. It can add, list
and remove records within a central database, or merge a set of databases
together into one single database.
%description -n mingw64-adplugdb
adplugdb maintains database files in AdPlug database format. It can add, list
and remove records within a central database, or merge a set of databases
together into one single database.
%_mingw64_debug_package
%prep
%autosetup -p1 -n adplug-%{version}
%build
autoreconf -fiv
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_make_install}
%files -n mingw64-libadplug0
%{_mingw64_bindir}/libadplug-2-4-0.dll
%files -n mingw64-libadplug-devel
%{_mingw64_includedir}/adplug
%{_mingw64_libdir}/libadplug.dll.a
%{_mingw64_libdir}/pkgconfig/adplug.pc
%exclude %{_mingw64_infodir}/*%{?ext_info}
%files -n mingw64-adplugdb
%{_mingw64_bindir}/adplugdb.exe
%{_mingw64_mandir}/man1/adplugdb.1%{?ext_man}
%changelog