]> git.pld-linux.org Git - packages/ufoai.git/blame - ufoai.spec
- desktop file for ufoai.spec
[packages/ufoai.git] / ufoai.spec
CommitLineData
5cb735d6 1Summary: "UFO: Alien Invasion" is a squad-based tactical strategy game in the tradition of the old X-COM PC games
4c89b5fb 2Name: ufoai
3Version: 2.2
4Release: 0.1
5License: GPL
6Group: X11/Applications/Games/Strategy
7URL: http://ufoai.sourceforge.net/
8Source0: http://dl.sourceforge.net/ufoai/%{name}-%{version}-source.tar.bz2
9# Source0-md5: 67347e7124fe5679c672a392161a6611
5cb735d6 10Source1: %{name}.desktop
4c89b5fb 11BuildRequires: OpenGL-GLU-devel
12BuildRequires: SDL-devel
13BuildRequires: SDL_mixer-devel
14BuildRequires: SDL_ttf-devel
15BuildRequires: curl-devel
16BuildRequires: gettext-devel
17BuildRequires: libjpeg-devel
18BuildRequires: libpng-devel
19BuildRequires: ncurses-devel
20BuildRequires: zlib-devel
21Requires: ufoai-data = %{version}
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25It is the year 2084. You control a secret organisation charged with
26defending Earth from a brutal alien enemy. Build up your bases,
27prepare your team, and dive head-first into the fast and flowing
28turn-based combat.
29
5cb735d6 30"UFO: Alien Invasion" is a squad-based tactical strategy game in the
4c89b5fb 31tradition of the old X-COM PC games, but with a twist. This game
32combines military realism with hard science-fiction and the weirdness
33of an alien invasion. The carefully constructed turn-based system
34gives you pin-point control of your squad while maintaining a sense of
35pace and danger.
36
37Over the long term you will need to conduct research into the alien
38threat to figure out their mysterious goals and use their powerful
39weapons for your own ends. You will produce unique items and use them
40in combat against your enemies. If you like, you can even use them
41against 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
49CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
50%configure \
51 --enable-mmx \
52 --with-curses \
53 --with-shaders
54%{__make}
55%{__make} lang
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
5cb735d6 60install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/base,%{_datadir}/%{name}/base/i18n,%{_pixmapsdir},%{_desktopdir}}
4c89b5fb 61install base/game.so $RPM_BUILD_ROOT%{_libdir}/%{name}/base/game.so
62install ufo $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoai
63install ufoded $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoaided
64install ufo2map $RPM_BUILD_ROOT%{_bindir}/ufoai2map
65cp -rf base/i18n $RPM_BUILD_ROOT%{_datadir}/%{name}/base
66
67cat > ufoai << EOF
68#!/bin/sh
69cd %{_libdir}/%{name}
70./ufoai
71EOF
72cat > ufoaided << EOF
73#!/bin/sh
74cd %{_libdir}/%{name}
75./ufoaided
76EOF
77
5cb735d6 78install ufoai $RPM_BUILD_ROOT%{_bindir}/ufoai
79install ufoaided $RPM_BUILD_ROOT%{_bindir}/ufoaided
4c89b5fb 80
81ln -s %{_datadir}/%{name}/base/i18n $RPM_BUILD_ROOT%{_libdir}/%{name}/base/i18n
82for 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
84done
85
5cb735d6 86# install icon and desktop file
87install src/ports/linux/installer/data/ufo.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
88install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
89
4c89b5fb 90%clean
91rm -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
This page took 0.069303 seconds and 4 git commands to generate.