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