File dosbox-ece-opl.spec of Package dosbox-ece-opl

#
# spec file for package dosbox-ece-opl
#
# Copyright (c) 2023, 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 https://bugs.opensuse.org/
#


Name:           dosbox-ece-opl
Version:        r4481
Release:        0
Summary:        DosBoxECE with a hardware OPL implementations
License:        GPL-2.0-or-later
URL:            https://github.com/morphinejh/dosboxece-opl
Source0:        https://github.com/morphinejh/dosboxece-opl/archive/refs/tags/dosboxece-opl-%{version}.tar.gz
Source1:        dosbox-ece.png
Source2:        https://github.com/xiph/opusfile/archive/master.tar.gz#/opusfile-master.tar.gz
Source3:        https://raw.githubusercontent.com/xiph/speex/master/m4/pkg.m4
Source4:        https://github.com/xiph/opus/archive/master.tar.gz#/opus-master.tar.gz
Source5:        https://github.com/xiph/ogg/archive/master.tar.gz#/ogg-master.tar.gz
Source6:        https://github.com/xiph/speexdsp/archive/master.tar.gz#/speexdsp-master.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libieee1284-devel
BuildRequires:  libtool
BuildRequires:  openglide-devel
BuildRequires:  pkgconfig
BuildRequires:  sdl12_compat-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL_net)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fluidsynth)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(mt32emu)
BuildRequires:  pkgconfig(zlib)
Recommends:     fluid-soundfont-gm
Conflicts:      dosbox
Provides:       dosbox
Provides:       bundled(opusfile)
Provides:       bundled(speex)
Provides:       bundled(ogg)
Provides:       bundled(speexdsp)

%description
DosBoxECE with a hardware OPL implementation for OPL2LPT, OPL3LPT,
OPL2 Audio and OPL3 Duo! support.

%prep
%setup -q -n dosboxece-opl-dosboxece-opl-%{version}
# bundled libs
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} src/libs/decoders/internal/
sed -i 's/\r$//' COPYING README docs/README.video

%build
autoreconf -fiv
%configure
%make_build

%install
%make_install
%suse_update_desktop_file -c %{name} %{name} "DOSBox ECE with hardware OPL implementations" dosbox %{name} Game Emulator
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/dosbox-ece-opl.png

%files
%license COPYING
%doc README docs/README.video
%{_bindir}/dosbox
%{_datadir}/icons/hicolor/256x256/apps/dosbox-ece-opl.png
%{_datadir}/applications/dosbox-ece-opl.desktop
%{_mandir}/man1/dosbox.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by