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