]>
Commit | Line | Data |
---|---|---|
2c447a9f JB |
1 | Summary: "UFO: Alien Invasion" - squad-based tactical strategy game in the tradition of the old X-COM PC games |
2 | Summary(pl.UTF-8): "UFO: Alien Invasion" - gra strategiczna utrzymana w tradycji starych gier X-COM z PC | |
4c89b5fb | 3 | Name: ufoai |
1ed2e4db | 4 | Version: 2.2.1 |
60ae3eb2 | 5 | Release: 1 |
4c89b5fb | 6 | License: GPL |
7 | Group: X11/Applications/Games/Strategy | |
4c89b5fb | 8 | Source0: http://dl.sourceforge.net/ufoai/%{name}-%{version}-source.tar.bz2 |
1ed2e4db | 9 | # Source0-md5: d3d1e45056fe87efbd9a0f000779ab17 |
5cb735d6 | 10 | Source1: %{name}.desktop |
2c447a9f | 11 | URL: http://ufoai.sourceforge.net/ |
4c89b5fb | 12 | BuildRequires: OpenGL-GLU-devel |
13 | BuildRequires: SDL-devel | |
14 | BuildRequires: SDL_mixer-devel | |
15 | BuildRequires: SDL_ttf-devel | |
16 | BuildRequires: curl-devel | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: libjpeg-devel | |
19 | BuildRequires: libpng-devel | |
20 | BuildRequires: ncurses-devel | |
21 | BuildRequires: zlib-devel | |
22 | Requires: ufoai-data = %{version} | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | It is the year 2084. You control a secret organisation charged with | |
27 | defending Earth from a brutal alien enemy. Build up your bases, | |
28 | prepare your team, and dive head-first into the fast and flowing | |
29 | turn-based combat. | |
30 | ||
5cb735d6 | 31 | "UFO: Alien Invasion" is a squad-based tactical strategy game in the |
4c89b5fb | 32 | tradition of the old X-COM PC games, but with a twist. This game |
33 | combines military realism with hard science-fiction and the weirdness | |
34 | of an alien invasion. The carefully constructed turn-based system | |
35 | gives you pin-point control of your squad while maintaining a sense of | |
36 | pace and danger. | |
37 | ||
38 | Over the long term you will need to conduct research into the alien | |
39 | threat to figure out their mysterious goals and use their powerful | |
40 | weapons for your own ends. You will produce unique items and use them | |
41 | in combat against your enemies. If you like, you can even use them | |
42 | against your friends with multiplayer functionality. | |
43 | ||
5cb735d6 | 44 | "UFO: Alien Invasion". Endless hours of gameplay -- absolutely free. |
4c89b5fb | 45 | |
2c447a9f JB |
46 | %description -l pl.UTF-8 |
47 | Jest rok 2084. Kierujesz tajną organizacją, która ma obronić Ziemię | |
48 | przed brutalnymi wrogami. Buduj swoje bazy, przygotuj swój zespół i | |
49 | wpadnij w wir szybkiej turowej walki. | |
50 | ||
51 | "UFO: Alien Invasion" to oparta o oddziały gra strategiczna utrzymana | |
52 | w tradycji starych gier X-COM z PC, ale z pewnymi zmianami. Gra łączy | |
53 | realizm militarny z ciężkim science-fiction i dziwnością inwacji | |
54 | wroga. Uważnie skonstruowany system turowy daje kontrolę nad oddziałem | |
55 | zachowując poczucie kroku i niebezpieczeństwa. | |
56 | ||
57 | W ciągu długiego czasu gracz musi prowadzić badania narażając się | |
58 | wrogom, aby odkryć ich tajemnicze cele i użyć ich potężnych broni dla | |
59 | własnych potrzeb. Gracz wytworzy unikalne przedmioty i wykorzysta je w | |
60 | walce przeciwko swoim wrogom. Można także używać ich przeciwko | |
61 | przyjaciołom w przypadku gry dla wielu graczy. | |
62 | ||
63 | "UFO: Alien Invasion" to niekończące się godziny gry całkowicie za | |
64 | darmo. | |
65 | ||
4c89b5fb | 66 | %prep |
67 | %setup -q -n %{name}-%{version}-source | |
68 | ||
69 | %build | |
70 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
71 | %configure \ | |
0546165a | 72 | %ifarch %{x8664} |
4c89b5fb | 73 | --enable-mmx \ |
0546165a | 74 | %endif |
4c89b5fb | 75 | --with-curses \ |
76 | --with-shaders | |
77 | %{__make} | |
78 | %{__make} lang | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
5cb735d6 | 83 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/base,%{_datadir}/%{name}/base/i18n,%{_pixmapsdir},%{_desktopdir}} |
4c89b5fb | 84 | install base/game.so $RPM_BUILD_ROOT%{_libdir}/%{name}/base/game.so |
85 | install ufo $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoai | |
86 | install ufoded $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoaided | |
87 | install ufo2map $RPM_BUILD_ROOT%{_bindir}/ufoai2map | |
a6b055c7 | 88 | cp -a base/i18n $RPM_BUILD_ROOT%{_datadir}/%{name}/base |
4c89b5fb | 89 | |
a6b055c7 | 90 | cat > ufoai << 'EOF' |
4c89b5fb | 91 | #!/bin/sh |
92 | cd %{_libdir}/%{name} | |
a6b055c7 | 93 | exec ./ufoai |
4c89b5fb | 94 | EOF |
a6b055c7 | 95 | cat > ufoaided << 'EOF' |
4c89b5fb | 96 | #!/bin/sh |
97 | cd %{_libdir}/%{name} | |
a6b055c7 | 98 | exec ./ufoaided |
4c89b5fb | 99 | EOF |
100 | ||
5cb735d6 | 101 | install ufoai $RPM_BUILD_ROOT%{_bindir}/ufoai |
102 | install ufoaided $RPM_BUILD_ROOT%{_bindir}/ufoaided | |
4c89b5fb | 103 | |
104 | ln -s %{_datadir}/%{name}/base/i18n $RPM_BUILD_ROOT%{_libdir}/%{name}/base/i18n | |
105 | for i in 0base 0maps 0media 0models 0music 0pics 0snd 0ufos; do | |
a6b055c7 | 106 | ln -s %{_datadir}/%{name}/base/$i.pk3 $RPM_BUILD_ROOT%{_libdir}/%{name}/base/$i.pk3 |
4c89b5fb | 107 | done |
108 | ||
5cb735d6 | 109 | # install icon and desktop file |
110 | install src/ports/linux/installer/data/ufo.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm | |
111 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
112 | ||
4c89b5fb | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_bindir}/ufoai | |
119 | %attr(755,root,root) %{_bindir}/ufoaided | |
120 | %attr(755,root,root) %{_bindir}/ufoai2map | |
121 | %dir %{_libdir}/%{name} | |
122 | %attr(755,root,root) %{_libdir}/%{name}/ufoai | |
123 | %attr(755,root,root) %{_libdir}/%{name}/ufoaided | |
124 | %dir %{_libdir}/%{name}/base | |
125 | %attr(755,root,root) %{_libdir}/%{name}/base/game.so | |
126 | %attr(755,root,root) %{_libdir}/%{name}/base/i18n | |
127 | %attr(755,root,root) %{_libdir}/%{name}/base/*.pk3 | |
128 | %dir %{_datadir}/%{name} | |
129 | %dir %{_datadir}/%{name}/base | |
130 | %{_datadir}/%{name}/base/i18n | |
5cb735d6 | 131 | %{_pixmapsdir}/%{name}.xpm |
132 | %{_desktopdir}/%{name}.desktop |