File osmose-emulator.spec of Package osmose-emulator

#
# spec file for package osmose-emulator
#
# 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:           osmose-emulator
Version:        1.6
Release:        0
Summary:        Sega Master System and Game Gear Emulator
License:        GPL-3.0-or-later
Group:          System/Emulators/Other
URL:            https://gitlab.com/coringao/osmose-emulator
Source0:        https://gitlab.com/coringao/osmose-emulator/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  Mesa-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(glut)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(zlib)

%description
In brief it's a Sega Master System/Game Gear emulator encapsulated into C++ classes.
Osmose Emulator now has a clean graphical user interface based on Qt version 5.x,
a GUI library which is fast enough to refresh the display at 60 Hz.

- SMS: Good compatibility. At this stage, the emulator can run 96% of commercial games and public demos, except games that rely on
  codemaster mapper, which works but does not have proper video mode emulated.
- Game Gear: Good compatibility. At this stage, the emulator can run 98% of game gear ROMS.
- SN76489 Sound is supported.
- Support for ".sms"  and ".gg" format.
- Video filters: bilinear or nearest neighbour (default).
- Pad(keyboard or joystick mapped) emulation.
- PAL/NTSC Timing.
- Japanese/Export console.
- In game Screenshots, GFX rip, sound shot.
- Configurable keyboard configuration.
- Joystick support, configurable button assignement.
- Drag and drop your ROMS into the emulator window to run games.

%prep
%setup -q

%build
%qmake5 \
  PREFIX=%{_prefix}
%make_build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/applications
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -d -m 755 %{buildroot}%{_mandir}/man6
install -m 755 osmose-emulator %{buildroot}%{_bindir}
install -m 644 src/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 644 src/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m 644 src/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

%files
%license LICENSE 
%doc CHANGELOG README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man?/%{name}.?%{?ext_man}

%changelog
openSUSE Build Service is sponsored by