Name: melonds-git Summary: DS emulator, sorta Version: 20201122T143129Z Release: 1 License: GPLv3+ URL: http://melonds.kuribo64.net/ Source0: https://gitlab.com/dirextric/melonds-git/-/archive/master/melonds-git-master.tar.gz %if 0%{?fedora} BuildRequires: binutils BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpcap) BuildRequires: pkgconfig(slirp) BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: pkgconfig(sdl2) %endif %if 0%{?suse_version} BuildRequires: binutils BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpcap) BuildRequires: pkgconfig(slirp) BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtdeclarative-devel BuildRequires: pkgconfig(sdl2) %endif %description melonDS is a Nintendo DS emulator. Required firmware image files (bios7.bin, bios9.bin, firmware.bin) are not included. %prep gunzip -c ../SOURCES/melonds-git-master.tar.gz | tar -xo %build mkdir melonds-git-master/build cd melonds-git-master/build cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ .. %install cd melonds-git-master/build make -j$(nproc --all) install -Dm 755 melonDS "%{buildroot}/%{_bindir}/melonDS" install -Dm 644 ../net.kuribo64.melonDS.desktop "%{buildroot}/%{_datadir}/applications/net.kuribo64.melonDS.desktop" install -Dm 644 ../icon/melon_256x256.png "%{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/net.kuribo64.melonDS.png" %files %doc melonds-git-master/README.md %license melonds-git-master/LICENSE %{_bindir}/melonDS %{_datadir}/applications/net.kuribo64.melonDS.desktop %{_datadir}/icons/hicolor/256x256/apps/net.kuribo64.melonDS.png