1 | Name: c-evo
|
---|
2 | Version: 1.4.0
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: A turn-based empire building strategy game inspired by Civilization II game.
|
---|
5 |
|
---|
6 | Group: Amusements/Games/Strategy/Turn Based
|
---|
7 | License: Public Domain
|
---|
8 | URL: https://app.zdechov.net/c-evo
|
---|
9 | Source0: c-evo.tar.gz
|
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
11 | Requires: sox libxmp portaudio libsndfile
|
---|
12 |
|
---|
13 | BuildRequires: lazarus >= 2.0.12
|
---|
14 |
|
---|
15 | %description
|
---|
16 | 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.
|
---|
17 |
|
---|
18 | 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:
|
---|
19 | * Full Linux platform support
|
---|
20 | * Zoomable map by mouse wheel with three tile sizes
|
---|
21 | * User defined key mapping
|
---|
22 | * Many sample maps included
|
---|
23 | * Multiple localizations included
|
---|
24 | * High DPI and scaling support
|
---|
25 | * Multi monitor support
|
---|
26 | * In-game background music
|
---|
27 | * And much more
|
---|
28 |
|
---|
29 | %global debug_package %{nil}
|
---|
30 |
|
---|
31 | %prep
|
---|
32 | %setup -q -c $(RPM_NAME)-$(RPM_VERSION)
|
---|
33 |
|
---|
34 |
|
---|
35 | %build
|
---|
36 | lazbuild --build-mode=Release AI/StdAI/StdAI.lpi
|
---|
37 | mv AI/StdAI/libstdai.so AI/StdAI/libstdai-%{_target_cpu}.so
|
---|
38 | sed -i 's/libstdai-i386.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt
|
---|
39 | sed -i 's/libstdai-amd64.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt
|
---|
40 | lazbuild --build-mode=Release Integrated.lpi
|
---|
41 |
|
---|
42 |
|
---|
43 | %install
|
---|
44 | rm -rf $RPM_BUILD_ROOT
|
---|
45 | install -Dm755 c-evo -t $RPM_BUILD_ROOT/usr/bin
|
---|
46 | install -Dm644 Install/common/c-evo.xml -t $RPM_BUILD_ROOT/usr/share/mime/packages
|
---|
47 | install -Dm644 Install/common/c-evo.desktop -t $RPM_BUILD_ROOT/usr/share/applications
|
---|
48 | install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/c-evo.png
|
---|
49 | install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/application-cevo.png
|
---|
50 | install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/application-cevomap.png
|
---|
51 | install -Dm644 AI/StdAI/libstdai-%{_target_cpu}.so -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
|
---|
52 | install -Dm644 AI/StdAI/StdAI.ai.txt -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
|
---|
53 | install -Dm644 AI/StdAI/StdAI.png -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
|
---|
54 | install -Dm644 Language.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
55 | install -Dm644 Language2.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
56 | install -Dm644 Fonts.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
57 | cp -r Help $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
58 | cp -r Graphics $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
59 | cp -r Sounds $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
60 | cp -r Music $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
61 | cp -r Tribes $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
62 | cp -r Maps $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
63 | cp -r Saved $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
64 | cp -r AI\ Template $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
65 | cp -r Localization $RPM_BUILD_ROOT/usr/share/c-evo
|
---|
66 |
|
---|
67 |
|
---|
68 | %clean
|
---|
69 | rm -rf $RPM_BUILD_ROOT
|
---|
70 |
|
---|
71 |
|
---|
72 | %files
|
---|
73 | %defattr(-,root,root,-)
|
---|
74 | /usr/bin/c-evo
|
---|
75 | /usr/share/applications/c-evo.desktop
|
---|
76 | /usr/share/c-evo/
|
---|
77 | /usr/share/pixmaps/c-evo.png
|
---|
78 | /usr/share/pixmaps/application-cevo.png
|
---|
79 | /usr/share/pixmaps/application-cevomap.png
|
---|
80 | /usr/share/mime/packages/c-evo.xml
|
---|
81 |
|
---|
82 | %doc readme.txt
|
---|
83 |
|
---|
84 |
|
---|
85 | %changelog
|
---|