%global commit 3f837f561cb615e0e673e93a378d357736402900 %global short_commit 3f837f5 %global date 20200131 Name: openrct2 Version: 0.2.5 Release: 0.%{date}.git.%{short_commit}%{?dist} Summary: Open source reimplementation of Roller Coaster Tycoon 2(develop branch) License: GPLv3 URL: https://www.openrct2.org Source0: https://github.com/OpenRCT2/OpenRCT2/archive/%{commit}.tar.gz Conflicts: openrct2 =< 0.2.4 BuildRequires: gcc gcc-c++ pkgconfig jansson-devel openssl-devel SDL2-devel speexdsp-devel libcurl-devel cmake fontconfig-devel freetype-devel libpng-devel libzip-devel mesa-libGL-devel icu libicu-devel %description OpenRCT2 is a free open source remake of the famous RollerCoaster Tycoon 2 game. %prep %setup -q -n OpenRCT2-%{commit} %build mkdir build cd build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr .. %install cd build %make_install %files %{_bindir}/* %{_libdir}/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %dir %{_docdir}/%{name} %{_docdir}/%{name}/* %{_datadir}/metainfo/* %{_datadir}/icons/hicolor/16x16/apps/openrct2.png %{_datadir}/icons/hicolor/24x24/apps/openrct2.png %{_datadir}/icons/hicolor/32x32/apps/openrct2.png %{_datadir}/icons/hicolor/48x48/apps/openrct2.png %{_datadir}/icons/hicolor/64x64/apps/openrct2.png %{_datadir}/icons/hicolor/96x96/apps/openrct2.png %{_datadir}/icons/hicolor/128x128/apps/openrct2.png %{_datadir}/icons/hicolor/256x256/apps/openrct2.png %{_datadir}/icons/hicolor/scalable/apps/openrct2.svg %{_datadir}/applications/*.desktop %{_datadir}/mime/packages/*.xml %{_datadir}/man/man6/* %changelog