source: branches/zoom/Install/rpm/c-evo.spec

Last change on this file was 697, checked in by chronos, 4 weeks ago
  • Modified: Updated 1.3.8 binary packages.
File size: 3.4 KB
Line 
1Name: c-evo
2Version: 1.4.0
3Release: 1%{?dist}
4Summary: A turn-based empire building strategy game inspired by Civilization II game.
5
6Group: Amusements/Games/Strategy/Turn Based
7License: Public Domain
8URL: https://app.zdechov.net/c-evo
9Source0: c-evo.tar.gz
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11Requires: sox libxmp portaudio libsndfile
12
13BuildRequires: lazarus >= 2.0.12
14
15%description
16With 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
18It 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
36lazbuild --build-mode=Release AI/StdAI/StdAI.lpi
37mv AI/StdAI/libstdai.so AI/StdAI/libstdai-%{_target_cpu}.so
38sed -i 's/libstdai-i386.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt
39sed -i 's/libstdai-amd64.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt
40lazbuild --build-mode=Release Integrated.lpi
41
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -Dm755 c-evo -t $RPM_BUILD_ROOT/usr/bin
46install -Dm644 Install/common/c-evo.xml -t $RPM_BUILD_ROOT/usr/share/mime/packages
47install -Dm644 Install/common/c-evo.desktop -t $RPM_BUILD_ROOT/usr/share/applications
48install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/c-evo.png
49install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/application-cevo.png
50install -Dm644 Install/common/c-evo_256x256.png $RPM_BUILD_ROOT/usr/share/pixmaps/application-cevomap.png
51install -Dm644 AI/StdAI/libstdai-%{_target_cpu}.so -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
52install -Dm644 AI/StdAI/StdAI.ai.txt -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
53install -Dm644 AI/StdAI/StdAI.png -t $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
54install -Dm644 Language.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
55install -Dm644 Language2.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
56install -Dm644 Fonts.txt -t $RPM_BUILD_ROOT/usr/share/c-evo
57cp -r Help $RPM_BUILD_ROOT/usr/share/c-evo
58cp -r Graphics $RPM_BUILD_ROOT/usr/share/c-evo
59cp -r Sounds $RPM_BUILD_ROOT/usr/share/c-evo
60cp -r Music $RPM_BUILD_ROOT/usr/share/c-evo
61cp -r Tribes $RPM_BUILD_ROOT/usr/share/c-evo
62cp -r Maps $RPM_BUILD_ROOT/usr/share/c-evo
63cp -r Saved $RPM_BUILD_ROOT/usr/share/c-evo
64cp -r AI\ Template $RPM_BUILD_ROOT/usr/share/c-evo
65cp -r Localization $RPM_BUILD_ROOT/usr/share/c-evo
66
67
68%clean
69rm -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
Note: See TracBrowser for help on using the repository browser.