File mingw64-adplay.spec of Package mingw64-adplay

#
# spec file for package mingw64-adplay
#
# Copyright (c) 2024, 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-adplay
Version:        1.8.1+git20240202
Release:        0
Summary:        AdLib music player for the command line
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Players
URL:            https://adplug.github.io/
Source0:        adplay-%{version}.tar.xz
BuildRequires:  automake
BuildRequires:  autoconf
BuildRequires:  libtool
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libadplug-devel >= 2.0
BuildRequires:  mingw64-libSDL2-devel
#!BuildIgnore: post-build-checks
%_mingw64_package_header_debug
BuildArch:      noarch

%description
AdPlay/UNIX is AdPlug's UNIX console-based frontend. AdPlug is a free,
universal OPL2 audio playback library. AdPlay/UNIX supports the full range
of AdPlug's file format playback features. Despite this, at the moment, only
emulated OPL2 output is supported by AdPlay/UNIX, but this on a wide range
of output devices.

%_mingw64_debug_package

%prep
%setup -q -n adplay-%{version}

%build
autoreconf -fiv
%{_mingw64_configure} \
  --disable-static \
  --disable-output-oss \
  --disable-output-esound \
  --disable-output-qsa \
  --disable-output-ao
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}

%files
%{_mingw64_bindir}/x86_64-w64-mingw32-adplay.exe
%{_mingw64_mandir}/man1/x86_64-w64-mingw32-adplay.1.gz

%changelog
openSUSE Build Service is sponsored by