/[packages]/cauldron/alienarena/current/SPECS/alienarena.spec
ViewVC logotype

Contents of /cauldron/alienarena/current/SPECS/alienarena.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 64808 - (show annotations) (download)
Sat Mar 5 11:43:51 2011 UTC (10 years, 5 months ago) by tv
File size: 4366 byte(s)
imported package alienarena
1 Name: alienarena
2 Summary: Multiplayer retro sci-fi deathmatch game
3 Version: 7.50
4 Release: %mkrel 1
5 License: GPLv2+
6 Group: Games/Arcade
7 # Subversion: https://svn.icculus.org/alienarena/trunk/?sortby=date
8 # Upstream seems too inept to provide a simple source only tarball, so we use svn.
9 # svn export svn://svn.icculus.org/alienarena/tags/7.50/ alienarena-7.50/
10 # These windows files are useless to us.
11 # rm -rf alienarena-7.50/*.exe alienarena-7.50/*.dll alienarena-7.50/Tools/aaradiant.exe
12 # These bundled zips are also pretty useless.
13 # rm -rf alienarena-7.50/lib_zipfiles/
14 # arena/ botinfo/ data1/ live in the alienarena-data package
15 # mkdir alienarena-data-20101216
16 # mv alienarena-7.50/arena/ alienarena-7.50/botinfo/ alienarena-7.50/data1/ alienarena-data-20101216/
17 # rm -f alienarena-data-20101216/{arena,data1}/game.so
18 # This data tarball is used for the alienarena-data package
19 # tar -cvJf alienarena-data-20101216.tar.xz alienarena-data-20101216
20 # This source tarball is used for the alienarena package
21 # tar -cvjf alienarena-7.50.tar.bz2 alienarena-7.50
22 Source0: alienarena-%{version}.tar.bz2
23 Source1: alienarena.desktop
24 Source2: GPL.acebot.txt
25 Source3: alienarena.png
26 Patch3: alienarena-7.45-no-qglBlitFramebufferEXT.patch
27 Patch4: alienarena-7.50-nodata.patch
28 # Ragdolls: added a NaN check which seems to solve the ODE assertion error problem
29 # http://svn.icculus.org/alienarena?view=rev&revision=2286
30 Patch5: alienarena-7.50-NAN.patch
31 URL: http://red.planetarena.org/
32 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
33 BuildRequires: X11-devel, libxext-devel, libxxf86dga-devel, libxxf86vm-devel, libjpeg-devel
34 BuildRequires: libgl-devel, libmesaglu-devel, curl-devel, libpng-devel
35 BuildRequires: libvorbis-devel, openal-soft-devel, ode-devel, freetype-devel
36 BuildRequires: desktop-file-utils
37 Requires: alienarena-data = 20101216
38 Requires: desktop-file-utils >= 0.9, glxinfo
39 Requires: openal-soft%{?_isa}
40
41 %description
42 Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes
43 of play, loads of mutators, built-in bots, multiple player characters and weapons
44 (with alt-fire modes).
45
46
47 %package server
48 Group: Amusements/Games
49 Summary: Dedicated server for alienarena, the FPS game
50 Requires: alienarena-data = 20101216
51
52
53 %description server
54 Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes
55 of play, loads of mutators, built-in bots, multiple player characters and weapons
56 (with alt-fire modes).
57
58 This is the dedicated server.
59
60
61 %prep
62 %setup -q
63
64 %patch3 -p1 -b .no-qglBlitFramebufferEXT
65 %patch4 -p1 -b .nodata
66 %patch5 -p1 -b .NAN
67
68 # Copy license clarification for acebot
69 cp -p %{SOURCE2} .
70
71 # clean up prebuilt binary files
72 [[ -e crx ]] && rm crded crx crx.sdl {arena,data1}/game.so
73
74 # clean up end-line encoding
75 [[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt
76
77 # So, AlienArena now "uses" openal by dlopening the library, which is hardcoded to
78 # "libopenal.so". That file only lives in openal-devel, so we need to adjust the hardcoding.
79 LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4`
80 sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c
81
82 %build
83 export PTHREAD_LIBS="-lpthread"
84 export PTHREAD_CFLAGS="-pthread"
85 %configure
86 make %{?_smp_mflags}
87
88 # make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" PREFIX="%{_prefix}" \
89 # WITH_DATADIR=yes WITH_LIBDIR=yes WITH_CURRENTDIR=no \
90 # DATADIR=%{_datadir}/%{name} LIBDIR="%{_libdir}/%{name}" OPTIMIZED_CFLAGS=no
91
92
93 %install
94 make DESTDIR=%{buildroot} install
95
96 %{__mkdir_p} %{buildroot}%{_datadir}/applications
97 desktop-file-install --vendor "fedora" \
98 --dir %{buildroot}%{_datadir}/applications \
99 %{SOURCE1}
100
101 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
102 install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
103
104 # Fedora's little opengl checker
105 ln -s opengl-game-wrapper.sh %{buildroot}/%{_bindir}/%{name}-wrapper
106 ln -s crx %{buildroot}/%{_bindir}/%{name}
107 ln -s crx-ded %{buildroot}/%{_bindir}/%{name}-server
108
109
110 %files
111 %defattr(-,root,root,-)
112 %doc GPL.acebot.txt
113 %{_bindir}/crx
114 %{_bindir}/%{name}
115 %{_bindir}/%{name}-wrapper
116 %{_datadir}/applications/*.desktop
117 %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
118 %{_defaultdocdir}/%{name}/
119
120 %files server
121 %defattr(-,root,root,-)
122 %{_bindir}/crx-ded
123 %{_bindir}/%{name}-server
124

  ViewVC Help
Powered by ViewVC 1.1.28