]>
Commit | Line | Data |
---|---|---|
5cb735d6 | 1 | Summary: "UFO: Alien Invasion" is a squad-based tactical strategy game in the tradition of the old X-COM PC games |
4c89b5fb | 2 | Name: ufoai |
3 | Version: 2.2 | |
4 | Release: 0.1 | |
5 | License: GPL | |
6 | Group: X11/Applications/Games/Strategy | |
7 | URL: http://ufoai.sourceforge.net/ | |
8 | Source0: http://dl.sourceforge.net/ufoai/%{name}-%{version}-source.tar.bz2 | |
9 | # Source0-md5: 67347e7124fe5679c672a392161a6611 | |
5cb735d6 | 10 | Source1: %{name}.desktop |
4c89b5fb | 11 | BuildRequires: OpenGL-GLU-devel |
12 | BuildRequires: SDL-devel | |
13 | BuildRequires: SDL_mixer-devel | |
14 | BuildRequires: SDL_ttf-devel | |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: gettext-devel | |
17 | BuildRequires: libjpeg-devel | |
18 | BuildRequires: libpng-devel | |
19 | BuildRequires: ncurses-devel | |
20 | BuildRequires: zlib-devel | |
21 | Requires: ufoai-data = %{version} | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | It is the year 2084. You control a secret organisation charged with | |
26 | defending Earth from a brutal alien enemy. Build up your bases, | |
27 | prepare your team, and dive head-first into the fast and flowing | |
28 | turn-based combat. | |
29 | ||
5cb735d6 | 30 | "UFO: Alien Invasion" is a squad-based tactical strategy game in the |
4c89b5fb | 31 | tradition of the old X-COM PC games, but with a twist. This game |
32 | combines military realism with hard science-fiction and the weirdness | |
33 | of an alien invasion. The carefully constructed turn-based system | |
34 | gives you pin-point control of your squad while maintaining a sense of | |
35 | pace and danger. | |
36 | ||
37 | Over the long term you will need to conduct research into the alien | |
38 | threat to figure out their mysterious goals and use their powerful | |
39 | weapons for your own ends. You will produce unique items and use them | |
40 | in combat against your enemies. If you like, you can even use them | |
41 | against your friends with multiplayer functionality. | |
42 | ||
5cb735d6 | 43 | "UFO: Alien Invasion". Endless hours of gameplay -- absolutely free. |
4c89b5fb | 44 | |
45 | %prep | |
46 | %setup -q -n %{name}-%{version}-source | |
47 | ||
48 | %build | |
49 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
50 | %configure \ | |
51 | --enable-mmx \ | |
52 | --with-curses \ | |
53 | --with-shaders | |
54 | %{__make} | |
55 | %{__make} lang | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
5cb735d6 | 60 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/base,%{_datadir}/%{name}/base/i18n,%{_pixmapsdir},%{_desktopdir}} |
4c89b5fb | 61 | install base/game.so $RPM_BUILD_ROOT%{_libdir}/%{name}/base/game.so |
62 | install ufo $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoai | |
63 | install ufoded $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoaided | |
64 | install ufo2map $RPM_BUILD_ROOT%{_bindir}/ufoai2map | |
65 | cp -rf base/i18n $RPM_BUILD_ROOT%{_datadir}/%{name}/base | |
66 | ||
67 | cat > ufoai << EOF | |
68 | #!/bin/sh | |
69 | cd %{_libdir}/%{name} | |
70 | ./ufoai | |
71 | EOF | |
72 | cat > ufoaided << EOF | |
73 | #!/bin/sh | |
74 | cd %{_libdir}/%{name} | |
75 | ./ufoaided | |
76 | EOF | |
77 | ||
5cb735d6 | 78 | install ufoai $RPM_BUILD_ROOT%{_bindir}/ufoai |
79 | install ufoaided $RPM_BUILD_ROOT%{_bindir}/ufoaided | |
4c89b5fb | 80 | |
81 | ln -s %{_datadir}/%{name}/base/i18n $RPM_BUILD_ROOT%{_libdir}/%{name}/base/i18n | |
82 | for i in 0base 0maps 0media 0models 0music 0pics 0snd 0ufos; do | |
83 | ln -s %{_datadir}/%{name}/base/$i.pk3 $RPM_BUILD_ROOT%{_libdir}/%{name}/base/$i.pk3 | |
84 | done | |
85 | ||
5cb735d6 | 86 | # install icon and desktop file |
87 | install src/ports/linux/installer/data/ufo.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm | |
88 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
89 | ||
4c89b5fb | 90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_bindir}/ufoai | |
96 | %attr(755,root,root) %{_bindir}/ufoaided | |
97 | %attr(755,root,root) %{_bindir}/ufoai2map | |
98 | %dir %{_libdir}/%{name} | |
99 | %attr(755,root,root) %{_libdir}/%{name}/ufoai | |
100 | %attr(755,root,root) %{_libdir}/%{name}/ufoaided | |
101 | %dir %{_libdir}/%{name}/base | |
102 | %attr(755,root,root) %{_libdir}/%{name}/base/game.so | |
103 | %attr(755,root,root) %{_libdir}/%{name}/base/i18n | |
104 | %attr(755,root,root) %{_libdir}/%{name}/base/*.pk3 | |
105 | %dir %{_datadir}/%{name} | |
106 | %dir %{_datadir}/%{name}/base | |
107 | %{_datadir}/%{name}/base/i18n | |
5cb735d6 | 108 | %{_pixmapsdir}/%{name}.xpm |
109 | %{_desktopdir}/%{name}.desktop |