Name: c-evo Version: 1.3.6 Release: 1%{?dist} Summary: A turn-based empire building strategy game inspired by Civilization II game. Group: Development/Languages License: Public Domain URL: https://app.zdechov.net/c-evo Source0: c-evo.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: sox BuildRequires: lazarus >= 2.0.12 %description With a time scope of several thousand years, it covers aspects of exploration and expansion, industry and agriculture, warfare and diplomacy, science and administration. C-evo follows the spirit of popular turn-based strategy games from the mid 90s, but with more emphasis on powerful AI and careful design of the rules, resulting in a true challenge. It is a turn-based strategy game inspired by Civilization 2 game where you can explore the world and build your own empire. New Horizons edition is a continuation of the last released original C-evo 1.2.0 version with many quality improvements: * Full Linux platform support * Zoomable map by mouse wheel with three tile sizes * User defined key mapping * Many sample maps included * Multiple localizations included * High DPI and scaling support * Multi monitor support * And much more %global debug_package %{nil} %prep %setup -q -c $(RPM_NAME)-$(RPM_VERSION) %build lazbuild --build-mode=Release AI/StdAI/StdAI.lpi mv AI/StdAI/libstdai.so AI/StdAI/libstdai-%{_target_cpu}.so sed -i 's/libstdai-i386.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt sed -i 's/libstdai-amd64.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt lazbuild --build-mode=Release Integrated.lpi %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo install -s -m 755 c-evo $RPM_BUILD_ROOT/usr/share/c-evo install -d -m 755 $RPM_BUILD_ROOT/usr/bin install -m 755 Install/deb/debian/c-evo.sh $RPM_BUILD_ROOT/usr/bin/c-evo install -d -m 755 $RPM_BUILD_ROOT/usr/share/applications install -m 755 Install/deb/c-evo.desktop $RPM_BUILD_ROOT/usr/share/applications install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps install -m 644 Graphics/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/c-evo.png install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI install -m 644 AI/StdAI/libstdai-%{_target_cpu}.so $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI install -m 644 AI/StdAI/StdAI.ai.txt $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI install -m 644 AI/StdAI/StdAI.png $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Graphics install -D -m 644 Graphics/* $RPM_BUILD_ROOT/usr/share/c-evo/Graphics install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Help install -D -m 644 Help/* $RPM_BUILD_ROOT/usr/share/c-evo/Help install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Sounds install -D -m 644 Sounds/* $RPM_BUILD_ROOT/usr/share/c-evo/Sounds install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Tribes install -D -m 644 Tribes/* $RPM_BUILD_ROOT/usr/share/c-evo/Tribes install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Maps install -D -m 644 Maps/* $RPM_BUILD_ROOT/usr/share/c-evo/Maps install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Saved install -D -m 644 Saved/* $RPM_BUILD_ROOT/usr/share/c-evo/Saved install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/AI\ Template cp -R AI\ Template $RPM_BUILD_ROOT/usr/share/c-evo install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Localization cp -R Localization $RPM_BUILD_ROOT/usr/share/c-evo install -m 644 Language.txt $RPM_BUILD_ROOT/usr/share/c-evo/ install -m 644 Language2.txt $RPM_BUILD_ROOT/usr/share/c-evo/ install -m 644 Fonts.txt $RPM_BUILD_ROOT/usr/share/c-evo/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /usr/bin/c-evo /usr/share/applications/c-evo.desktop /usr/share/c-evo/ /usr/share/pixmaps/c-evo.png %doc readme.txt %changelog