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