File fceux.spec of Package fceux

#
# spec file for package fceux
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2012-2014 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           fceux
Version:        2.6.6
Release:        0
Summary:        Nintendo Famicom (NES) Emulator
License:        GPL-2.0-only
Group:          System/Emulators/Other
URL:            https://fceux.com/web/home.html
#Git-Clone:     https://github.com/TASVideos/fceux.git
Source:         https://codeload.github.com/TASEmulators/fceux/tar.gz/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
ExclusiveArch:  %{ix86} x86_64
BuildRequires:  cmake
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  fdupes
BuildRequires:  lua51-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(minizip)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(libavformat)
BuildRequires:  pkgconfig(libavutil)
BuildRequires:  pkgconfig(libswresample)
BuildRequires:  pkgconfig(libswscale)

%description
FCEUX is a cross platform, NTSC and PAL Famicom/NES emulator that is an
evolution of the original FCE Ultra emulator. Over time FCE Ultra had
separated into many separate branches.

The concept behind FCEUX is to merge elements from FCE Ultra, FCEU
rerecording, FCEUXD, FCEUXDSP, and FCEU-mm into a single branch of FCEU. As
the X implies, it is an all-encompassing FCEU emulator that gives the best
of all worlds for the casual player, the ROM-hacking community, Lua
Scripters, and the Tool-Assisted Speedrun Community.

%prep
%setup -q

# Fix wrong-file-end-of-line-encoding
dos2unix documentation/Videolog.txt
dos2unix documentation/fm2.txt
dos2unix documentation/tech/ppu/loopy1.txt
dos2unix documentation//tech/ppu/loopy2.txt

%build
%cmake
%make_build

%install
%cmake_install
%fdupes %{buildroot}/%{_datadir}/%{name}

%files
%license COPYING
%doc changelog.txt documentation/* readme.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_mandir}/man6/%{name}-net-server.6%{?ext_man}
%{_datadir}/pixmaps/%{name}1.png

%changelog
openSUSE Build Service is sponsored by