2 # TODO: - start scripts for server
3 # - fix build on 64 bits
5 Summary: A Tron lightcycle game with focus on multiplayer mode
6 Summary(pl.UTF-8): Gra Tron ze światłocyklem skupiająca się na trybie dla wielu graczy
11 Group: X11/Applications/Games
12 Source0: http://downloads.sourceforge.net/armagetronad/%{name}-%{version}.src.tar.bz2
13 # Source0-md5: d4957ee0c2d3ae9d630d1362a6dcee70
14 #Source1: %{name}.desktop
16 Source3: http://armagetron.sourceforge.net/addons/moviepack.zip
17 # Source3-md5: e2d40309dde7e1339ca6aff7599cdfa3
18 URL: http://armagetronad.net/
19 BuildRequires: OpenGL-devel
20 BuildRequires: SDL_image-devel
21 BuildRequires: SDL_mixer-devel
22 BuildRequires: libjpeg-devel
23 BuildRequires: libpng-devel >= 2:1.4.0
24 BuildRequires: libxml2-devel
25 BuildRequires: sed >= 4.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 In Armagetron, you ride a lightcycle around the game grid. You can
31 only make sharp turns of 90 degrees and a wall constantly builds up
32 after you. Make your enemies crash into your wall, but be aware that
33 they are trying to do the same to you. If you are fast enough, you may
34 be able to trap them, but the only way to speed up your lightcycle is
35 to drive close to the dangerous walls. Prepare for exciting strategic
36 preparations followed by action-packed close combat!
38 %description -l pl.UTF-8
39 W grze Armagetron jedzie się światłocyklem dookoła planszy. Można
40 wykonywać tylko ostre zakręty o 90 stopni, a za graczem ciągle buduje
41 się ściana. Trzeba spowodować, by wrogowie roztrzaskali się na tej
42 ścianie, ale także uważać, bo oni próbują zrobić to samo. Jeśli gracz
43 jest szybki, może złapać ich wszystkich, ale jedynym sposobem na
44 przyspieszenie światłocyklu jest jazda blisko niebezpiecznych ścian.
45 Trzeba się przygotować na ekscytujące strategiczne przygotowania i
46 następującą po nich walkę w zbliżeniu!
49 Summary: Moviepack addon
50 Summary(pl.UTF-8): Dodatek Moviepack
51 Group: X11/Applications/Games
52 Requires: %{name} = %{version}-%{release}
54 %description moviepack
57 %description moviepack -l pl.UTF-8
61 Summary: Armagetron server
62 Summary(pl.UTF-8): Serwer Armagetrona
63 Group: Applications/Games
68 %description server -l pl.UTF-8
74 # fix build with libpng >= 2:1.4.0
75 %{__sed} -i 's/png_check_sig/png_sig_cmp/' configure.ac
84 --disable-sysinstall \
91 # --disable-initscripts \
97 rm -rf $RPM_BUILD_ROOT
98 #install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
99 # $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack \
100 # $RPM_BUILD_ROOT%{_sysconfdir_server}
103 DESTDIR=$RPM_BUILD_ROOT
105 #install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
106 #install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
108 #cp $RPM_BUILD_ROOT%{_sysconfdir}/* $RPM_BUILD_ROOT%{_sysconfdir_server}
109 #cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name}
110 #rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS src/doc/{*.html,net}
118 %dir %{_sysconfdir}/games
119 %dir %{_sysconfdir}/games/%{name}
120 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/games/%{name}/*.cfg
121 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg
122 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.srv
123 %attr(755,root,root) %{_bindir}/%{name}
124 %dir %{_datadir}/games/armagetronad
125 %dir %{_datadir}/games/armagetronad/language
126 %{_datadir}/games/armagetronad/language/*.txt
127 %dir %{_datadir}/games/armagetronad/models
128 %{_datadir}/games/armagetronad/models/*.mod
129 %dir %{_datadir}/games/armagetronad/resource
130 %dir %{_datadir}/games/armagetronad/resource/included
131 %{_datadir}/games/armagetronad/resource/included/*.dtd
132 %dir %{_datadir}/games/armagetronad/resource/included/AATeam
133 %{_datadir}/games/armagetronad/resource/included/AATeam/*.dtd
134 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous
135 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon
136 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon/regular
137 %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon/regular/*.xml
138 %dir %{_datadir}/games/armagetronad/resource/included/Your_mom
139 %dir %{_datadir}/games/armagetronad/resource/included/Your_mom/clever
140 %{_datadir}/games/armagetronad/resource/included/Your_mom/clever/*.xml
141 %dir %{_datadir}/games/armagetronad/resource/included/Z-Man
142 %dir %{_datadir}/games/armagetronad/resource/included/Z-Man/fortress
143 %{_datadir}/games/armagetronad/resource/included/Z-Man/fortress/*.xml
144 %dir %{_datadir}/games/armagetronad/sound
145 %{_datadir}/games/armagetronad/sound/*.wav
146 %dir %{_datadir}/games/armagetronad/textures
147 %{_datadir}/games/armagetronad/textures/*.jpg
148 %{_datadir}/games/armagetronad/textures/*.png
151 %defattr(644,root,root,755)
152 #%%doc moviepack/art_read_me.txt
153 #%%{_prefix}/games/%{name}/moviepack
156 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/armagetronad-dedicated
159 %dir %{_prefix}/games/armagetronad-dedicated
160 %{_datadir}/games/armagetronad-dedicated/bin
161 %attr(755,root,root) %{_prefix}/games/armagetronad-dedicated/bin/*
162 %exclude %{_prefix}/games/armagetronad-dedicated/bin/uninstall
163 %{_prefix}/games/armagetronad-dedicated/language
164 %dir %{_sysconfdir_server}
165 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.cfg
166 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.srv