Name: odamex Version: 0.8.0 Release: 1%{?dist} Group: Amusements/Games Summary: Open source port of the DOOM game engine License: GPLv2+ URL: http://odamex.net/ Source0: https://downloads.sourceforge.net/odamex/%{name}-src-%{version}.tar.bz2 BuildRequires: gcc-c++ cmake desktop-file-utils BuildRequires: lib64SDL-devel lib64SDL_mixer-devel BuildRequires: lib64wxgtku3.0-devel %description Odamex is a free and open source port for the classic first-person shooter Doom. Odamex's goal is to emulate the feel of and retain many aspects of the original Doom executables while offering a broader expanse of security features, personal configuration, gameplay options and editing features. %prep %setup -q -n %{name}-src-%{version} %build cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr desktop-file-edit installer/arch/odamex.desktop \ --set-key=Exec --set-value='odamex -waddir /usr/odamex' %install make install DESTDIR=%{buildroot} mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps desktop-file-install installer/arch/odamex.desktop --dir=%{buildroot}/usr/share/applications/ desktop-file-install installer/arch/odalaunch.desktop --dir=%{buildroot}/usr/share/applications/ desktop-file-install installer/arch/odasrv.desktop --dir=%{buildroot}/usr/share/applications/ install -p -m 644 media/icon_odamex_96.png %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps/odamex.png install -p -m 644 media/icon_odasrv_96.png %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps/odasrv.png install -p -m 644 media/icon_odalaunch_96.png %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps/odalaunch.png %files %{_bindir}/odamex %{_bindir}/odasrv %{_bindir}/odalaunch %{_bindir}/odamast %{_datadir}/odamex/odamex.wad %{_datadir}/odamex/LICENSE %{_datadir}/odamex/README %{_datadir}/odamex/config-samples/*.cfg %{_prefix}/lib/libminiupnpc.a %{_includedir}/miniupnpc/*.h %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/96x96/apps/*.png %changelog * Wed Jan 23 2019 vain - 0.8.0-1 - Initial releasE