File Fuse.spec of Package Fuse

#
# spec file for package Fuse
#
# Copyright (c) 2021 SUSE LLC
#
# 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:           Fuse
Version:        1.6.0
Release:        0
Summary:        Sinclair ZX Spectrum Emulator
License:        GPL-2.0-or-later
URL:            http://fuse-emulator.sourceforge.net/
Source:         https://sourceforge.net/projects/fuse-emulator/files/fuse/%{version}/fuse-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Fuse-desktop-file.patch serbalgi@gmail.com -- Use SUSE categories
Patch1:         Fuse-desktop-file.patch
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libspectrum) >= 1.5.0
BuildRequires:  pkgconfig(libxml-2.0)
%if 0%{?suse_version} > 1500
BuildRequires:  pkgconfig(libgcrypt)
%else
BuildRequires:  libgcrypt-devel
%endif
%if 0%{?suse_version} > 1315
BuildRequires:  pkgconfig(sdl2)
%endif
%if 0%{?suse_version} < 1500
BuildRequires:  shared-mime-info
%endif

%description
* Accurate Spectrum 16K/48K/128K/+2/+2A/+3 emulation.
* Working Spectrum +3e and SE, Timex TC2048, TC2068 and TS2068, Pentagon 128, "512" (Pentagon 128 with extra memory) and 1024 and Scorpion ZS 256 emulation.
* Runs at true Speccy speed on any computer you're likely to try it on.
* Support for loading from .tzx files, including accelerated loading.
* Sound (on systems supporting the Open Sound System, SDL, or OpenBSD/Solaris's /dev/audio).
* Emulation of most of the common joysticks used on the Spectrum (including Kempston, Sinclair and Cursor joysticks).
* Emulation of some of the printers you could attach to a Spectrum.
* Support for the RZX input recording file format, including rollback and 'competition mode'.
* Emulation of the Currah µSource, Interface 1, Kempston mouse, Multiface One/128/3 and TTX2000S interfaces.
* Emulation of the Covox, Fuller audio box, Melodik and SpecDrum audio interfaces.
* Emulation of the DivIDE, DivMMC, Spectrum +3e, ZXATASP, ZXCF and ZXMMC storage interfaces.
* Emulation of the Beta 128, +D, Didaktik 80/40, DISCiPLE, and Opus Discovery interfaces.
* Emulation of the Spectranet and SpeccyBoot interfaces.

%prep
%setup -q -n fuse-%{version}
%patch1

%build
%configure \
    --disable-static \
    --enable-desktop-integration \
    --with-audio-driver=pulseaudio \
    --with-bash-completion-dir=%{_datadir}/bash-completion/completions
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file fuse
%fdupes %{buildroot}%{_datadir}

%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%endif

%files
%license COPYING
%doc AUTHORS ChangeLog README THANKS
%{_bindir}/fuse
%{_datadir}/fuse
%{_datadir}/applications/fuse.desktop
%{_datadir}/bash-completion/completions/fuse
%{_datadir}/icons/hicolor/
%{_datadir}/mime/packages/fuse.xml
%{_mandir}/man1/fuse.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by