%define debug_package %{nil} Name: devilutionx Version: 0.4.0 Release: 1%{?dist} Summary: Diablo I engine for modern operating systems License: Unlicensed URL: https://github.com/diasurgical/devilutionX Source0: https://github.com/diasurgical/devilutionX/archive/%{version}.tar.gz Source1: devilutionx.desktop BuildRequires: cmake gcc gcc-c++ libstdc++-static glibc desktop-file-utils BuildRequires: glibc-devel SDL2-devel SDL2_ttf-devel SDL2_mixer-devel libsodium-devel libasan Requires: SDL2_ttf SDL2_mixer libsodium %description Diablo I devolved - magic behind the 1996 computer game Note: Devilution requires an original copy of diabdat.mpq. None of the Diablo 1 game assets are provided by this package! %prep %setup -q -n devilutionX-%{version} %build cmake -DBINARY_RELEASE=ON -DDEBUG=OFF make %{?_smp_mflags} %install make INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/pixmaps install -m 755 devilutionx %{buildroot}%{_bindir}/%{name} install -p -D -m644 Diablo.ico %{buildroot}%{_datadir}/pixmaps/%{name}.ico desktop-file-install --remove-category="Qt" --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} %files %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.ico %post # print info cat < - 0.3.1-2 - Updated packaging files - added icon to desktop file * Mon Apr 15 2019 Michael Seevogel - 0.3.1-1 - Initial release for Fedora