File dosbox-ece.spec of Package dosbox-ece

#
# spec file for package dosbox-ece
#
# 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
Version:        r4481
Release:        0
Summary:        A DOS/x86 emulator focusing on ease of use (ECE fork)
License:        GPL-2.0-or-later
URL:            https://yesterplay.net/dosboxece/
Source:         https://yesterplay.net/dosboxece/download/DOSBox%20ECE%20%{version}%20(source).7z
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
Patch0:         dosbox-ece-autoconf-update.patch
BuildRequires:  7zip
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
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
DOSBox Enhanced Community Edition (ECE) is a DOS/x86 emulator focusing
on ease of use.

It currently differs from normal DOSBox in the following features:
 * Improved emulation of OPL3 (a FM sound synthesis chip from Yamaha).
 * Improved balance and authenticity in FM sound playback.
 * Improved PC speaker sound emulation.
 * Emulation of the Roland MT-32 Midi synthesizer.
 * Integration of Fluidsynth (a software midi synthesizer with
   soundfont support).
 * Support for up to 10 joystick axes and 2 D-pads (allowing 2
   complete Xbox360 compatible controllers to be used).
 * Mouse buttons can be mapped to keyboard keys or controller buttons.
 * Support for up to 384 MB RAM, required for running Windows 9x in
   DOSBox ECE.
 * 4MB video memory, reducing sprite flickering in games with the
   Build engine ("Duke Nukem 3D", "Blood", etc.).
 * Support for MSF timestamps in CUE files, MP3, FLAC, WAV and OPUS
   files are supported as cd audio replacement.

%prep
%setup -q -c %{name} -T
7z x "%{SOURCE0}"
%patch0 -p1
# bundled libs
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} src/libs/decoders/internal/
sed -i 's/\r$//' COPYING README docs/README.video

%build
autoreconf -fiv
export CXXFLAGS="%{optflags} -I/usr/include/openglide"
%configure
%make_build

%install
%make_install
%suse_update_desktop_file -c %{name} %{name} "DOSBox ECE" dosbox %{name} Game Emulator
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/dosbox-ece.png
rm -v %{buildroot}%{_datadir}/pixmaps/dosbox-ece.png

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

%changelog
openSUSE Build Service is sponsored by