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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95334 - (hide annotations) (download)
Fri May 6 06:13:20 2011 UTC (12 years, 10 months ago) by tv
File size: 4230 byte(s)
BR freetype2-devel instead of freetype-devel
1 ahmad 65168 Summary: Multiplayer retro sci-fi deathmatch game
2 tv 64808 Name: alienarena
3     Version: 7.50
4 wally 92847 Release: %mkrel 4
5 tv 64808 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 tv 95333 BuildRequires: X11-devel
33     BuildRequires: libxext-devel
34     BuildRequires: libxxf86dga-devel
35     BuildRequires: libxxf86vm-devel
36     BuildRequires: libjpeg-devel
37     BuildRequires: GL-devel
38     BuildRequires: libmesaglu-devel
39     BuildRequires: curl-devel
40     BuildRequires: libpng-devel
41     BuildRequires: libvorbis-devel
42     BuildRequires: openal-soft-devel
43     BuildRequires: ode-devel
44 tv 95334 BuildRequires: freetype2-devel
45 tv 64808 BuildRequires: desktop-file-utils
46     Requires: alienarena-data = 20101216
47     Requires: desktop-file-utils >= 0.9, glxinfo
48 ahmad 65168 Requires: openal%{?_isa}
49 tv 64808
50     %description
51     Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes
52     of play, loads of mutators, built-in bots, multiple player characters and weapons
53     (with alt-fire modes).
54    
55    
56     %package server
57 ahmad 65168 Group: Games/Arcade
58     Summary: Dedicated server for alienarena, the FPS game
59     Requires: alienarena-data = 20101216
60 tv 64808
61    
62     %description server
63     Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes
64     of play, loads of mutators, built-in bots, multiple player characters and weapons
65     (with alt-fire modes).
66    
67     This is the dedicated server.
68    
69    
70     %prep
71     %setup -q
72    
73     %patch3 -p1 -b .no-qglBlitFramebufferEXT
74     %patch4 -p1 -b .nodata
75     %patch5 -p1 -b .NAN
76    
77     # Copy license clarification for acebot
78     cp -p %{SOURCE2} .
79    
80     # clean up prebuilt binary files
81     [[ -e crx ]] && rm crded crx crx.sdl {arena,data1}/game.so
82    
83     # clean up end-line encoding
84     [[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt
85    
86     # So, AlienArena now "uses" openal by dlopening the library, which is hardcoded to
87     # "libopenal.so". That file only lives in openal-devel, so we need to adjust the hardcoding.
88     LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4`
89     sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c
90    
91     %build
92     export PTHREAD_LIBS="-lpthread"
93     export PTHREAD_CFLAGS="-pthread"
94 wally 92847 %configure2_5x
95     %make
96 tv 64808
97     %install
98 ahmad 65168 rm -fr %{buildroot}
99 wally 92847 %makeinstall_std
100 tv 64808
101     %{__mkdir_p} %{buildroot}%{_datadir}/applications
102 wally 92847 desktop-file-install --vendor "%{_real_vendor}" \
103 tv 64808 --dir %{buildroot}%{_datadir}/applications \
104     %{SOURCE1}
105    
106     mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
107     install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
108    
109     # Fedora's little opengl checker
110     ln -s opengl-game-wrapper.sh %{buildroot}/%{_bindir}/%{name}-wrapper
111     ln -s crx %{buildroot}/%{_bindir}/%{name}
112     ln -s crx-ded %{buildroot}/%{_bindir}/%{name}-server
113    
114 ahmad 65168 %clean
115     rm -fr %{buildroot}
116 tv 64808
117     %files
118     %defattr(-,root,root,-)
119     %doc GPL.acebot.txt
120     %{_bindir}/crx
121     %{_bindir}/%{name}
122     %{_bindir}/%{name}-wrapper
123     %{_datadir}/applications/*.desktop
124     %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
125     %{_defaultdocdir}/%{name}/
126    
127     %files server
128     %defattr(-,root,root,-)
129     %{_bindir}/crx-ded
130     %{_bindir}/%{name}-server

  ViewVC Help
Powered by ViewVC 1.1.30