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