Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:KAMiKAZOW:Emulators
mesen-s
_service:set_version:mesen-s.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:mesen-s.spec of Package mesen-s
# # Spec file for package mesen-s # # Copyright © 2019–2020 Markus S. <kamikazow@opensuse.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Name: mesen-s Summary: Super Nintendo Emulator Version: 0.4.0.20200708+git.89199f2 Release: 0 Group: System/Emulators/Other License: GPL-3.0-or-later URL: https://github.com/SourMesen/Mesen-S Source0: %{name}-%{version}.tar.xz Source1: %{name}.png BuildRequires: clang BuildRequires: llvm-gold #BuildRequires: msbuild BuildRequires: zip BuildRequires: pkgconfig(mono) BuildRequires: pkgconfig(sdl2) Requires: libgdiplus0 Requires(post): hicolor-icon-theme Requires(postun): hicolor-icon-theme # Only x86_64 for now. ExclusiveArch: x86_64 %define _arch x64 %description Mesen-S is a Super Nintendo emulator. %prep %setup -q %build LTO=true make %install # Do this manually because there is no "make install", yet. install -p -D -m 0644 ./bin/%{_arch}/Release/Dependencies/libMesenSCore.%{_arch}.dll %{buildroot}/%{_libdir}/%{name}/libMesenSCore.dll install -p -D -m 0644 ./bin/%{_arch}/Release/Mesen-S.exe %{buildroot}/%{_libdir}/%{name}/ # Generate and install "/usr/bin/mesen-s" mkdir -p %{buildroot}/%{_bindir} cat > %{buildroot}/%{_bindir}/%{name} << 'EOF' #!/bin/sh cd %{_libdir}/%{name} exec mono %{_libdir}/%{name}/Mesen-S.exe "$@" EOF # Generate and install "mesen-s.desktop" mkdir -p %{buildroot}/%{_datadir}/applications/ cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << 'EOF' [Desktop Entry] Name=Mesen-S GenericName=SNES Emulator Comment=Super Nintendo Emulator Exec=mono %{_libdir}/%{name}/Mesen-S.exe %f Icon=%{name} Path=%{_libdir}/%{name} Type=Application Categories=Game;Emulator; MimeType=application/vnd.nintendo.snes.rom;application/x-snes-rom; EOF # Install icon install -p -D -m 0644 %{S:1} %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/%{name}.png %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %attr(755, root, root) %{_bindir}/%{name} %{_libdir}/%{name} %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor