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