%global commit 68dc4d0fb80c4e3feb829df2dc6ad9c94e608b87 %global short_commit 68dc4d0 %global date 20190810 Name: openrct2 Version: 0.2.4 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.3 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