Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
mgba
mgba.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mgba.spec of Package mgba
# # spec file for package mgba # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2017–2023 Markus S. <kamikazow@opensuse.org> # Copyright (c) 2015–2017 ROSA Linux # # Based on ROSA Linux 2016.1 mGBA package # https://abf.rosalinux.ru/import/mgba/blob/rosa2016.1/mgba.spec # spec file classified as "code" and released under MIT License # "Modern Style with sublicense" per ROSA Contributor License Agreement. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: mgba Version: 0.10.3 Release: 0%{?dist} Summary: Game Boy Advance emulator License: MPL-2.0 Group: System/Emulators/Other URL: https://mgba.io/ Source0: https://github.com/mgba-emu/mgba/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake >= 3.1 BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: cmake(Qt5LinguistTools) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(epoxy) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libzip) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(zlib) Requires(post): hicolor-icon-theme Requires(postun): hicolor-icon-theme %if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: libzip-tools BuildRequires: ninja-build %undefine _debugsource_packages %endif %if 0%{?suse_version} BuildRequires: libzip-tools BuildRequires: ninja %endif %description mGBA is a new generation of Game Boy Advance emulator with the goal of being fast enough to run on lower end hardware. Other goals include accurate enough emulation to provide a development environment for homebrew software, a good workflow for tool-assist runners, and a modern feature set for emulators that older emulators may not support. #---------------------------------------------------------------------------- %package sdl Summary: Game Boy Advance (GBA) emulator (SDL2-based CLI version) Group: System/Emulators/Other %description sdl Game Boy Advance (GBA) emulator with the goal of being fast enough to run on lower end hardware than other emulators support, without sacrificing accuracy or portability. Other goals include accurate enough emulation to provide a development environment for homebrew software, a good workflow for tool-assist runners, and a modern feature set for emulators that older emulators may not support. This package provides SDL2-based CLI version of mGBA. %files sdl %{_bindir}/%{name} %{_mandir}/man6/mgba.6%{?ext_man} %prep %autosetup # consequence of thirdparty/sqlite using dl* functions echo "target_link_libraries(%{name} dl)" >> CMakeLists.txt %build mkdir build cd build # FIXME: you should use the %%cmake macros cmake .. \ -G Ninja \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ -DCMAKE_INSTALL_LIBEXEC="%{_libexecdir}" \ -DBUILD_SHARED:BOOL=ON \ -DBUILD_STATIC:BOOL=OFF \ -DUSE_FFMPEG:BOOL=OFF \ -DUSE_MAGICK:BOOL=OFF \ -DUSE_MAGICK:BOOL=OFF \ -DUSE_USE_LIBZIP:BOOL=OFF ninja -v %install cd build DESTDIR=%{buildroot} ninja install # rather use %%doc and remove leftover file rm -rf %{buildroot}%{_datadir}/doc/mGBA/ rm -rf %{buildroot}%{_includedir} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %license LICENSE %doc CHANGES README.md %{_libdir}/libmgba.* %{_bindir}/%{name}-qt %{_datadir}/applications/io.mgba.mGBA.desktop %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/icons/hicolor/*/apps/io.mgba.mGBA.png %{_mandir}/man6/mgba-qt.6%{?ext_man} %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