]>
Commit | Line | Data |
---|---|---|
06278480 | 1 | # |
2 | # TODO: start scripts for server | |
f62c7212 | 3 | Summary: A Tron lightcycle game with focus on multiplayer mode |
8f656a03 | 4 | Summary(pl.UTF-8): Gra Tron ze światłocyklem skupiająca się na trybie dla wielu graczy |
0a8caa2a | 5 | Name: armagetron |
15046896 | 6 | Version: 0.2.6.1 |
b72b52f2 | 7 | Release: 1 |
0a8caa2a TO |
8 | License: GPL |
9 | Group: X11/Applications/Games | |
f62c7212 | 10 | Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
15046896 | 11 | # Source0-md5: 20c670d6e2bdcae2a3e52a3fab2788b7 |
161a184c | 12 | Source1: %{name}.desktop |
13 | Source2: %{name}.png | |
14 | Source3: http://armagetron.sourceforge.net/addons/moviepack.zip | |
15 | # Source3-md5: e2d40309dde7e1339ca6aff7599cdfa3 | |
c57ca451 | 16 | Patch0: %{name}-types.patch |
0a8caa2a TO |
17 | URL: http://armagetron.sourceforge.net/ |
18 | BuildRequires: OpenGL-devel | |
19 | BuildRequires: SDL_image-devel | |
20 | BuildRequires: SDL_mixer-devel | |
b6eea107 | 21 | BuildRequires: autoconf |
6fa5b741 | 22 | BuildRequires: automake |
ef96eda1 | 23 | BuildRequires: sed >= 4.0 |
66022663 | 24 | BuildRequires: unzip |
0a8caa2a TO |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
c57ca451 | 27 | # it installs data in %{_prefix}/games, so... |
ef96eda1 | 28 | %define _bindir /usr/bin |
29 | %define _prefix /usr/%{_lib} | |
30 | %define _sysconfdir /etc/%{name} | |
31 | %define _sysconfdir_server /etc/%{name}-server | |
0a8caa2a TO |
32 | |
33 | %description | |
f62c7212 TO |
34 | In Armagetron, you ride a lightcycle around the game grid. You can |
35 | only make sharp turns of 90 degrees and a wall constantly builds up | |
36 | after you. Make your enemies crash into your wall, but be aware that | |
37 | they are trying to do the same to you. If you are fast enough, you may | |
38 | be able to trap them, but the only way to speed up your lightcycle is | |
39 | to drive close to the dangerous walls. Prepare for exciting strategic | |
40 | preparations followed by action-packed close combat! | |
0a8caa2a | 41 | |
2ff15ef0 JR |
42 | %description -l pl.UTF-8 |
43 | W grze Armagetron jedzie się światłocyklem dookoła planszy. Można | |
44 | wykonywać tylko ostre zakręty o 90 stopni, a za graczem ciągle buduje | |
45 | się ściana. Trzeba spowodować, by wrogowie roztrzaskali się na tej | |
46 | ścianie, ale także uważać, bo oni próbują zrobić to samo. Jeśli gracz | |
47 | jest szybki, może złapać ich wszystkich, ale jedynym sposobem na | |
48 | przyspieszenie światłocyklu jest jazda blisko niebezpiecznych ścian. | |
49 | Trzeba się przygotować na ekscytujące strategiczne przygotowania i | |
50 | następującą po nich walkę w zbliżeniu! | |
d13b7061 | 51 | |
161a184c | 52 | %package moviepack |
53 | Summary: Moviepack addon | |
8f656a03 | 54 | Summary(pl.UTF-8): Dodatek Moviepack |
161a184c | 55 | Group: X11/Applications/Games |
7968e001 | 56 | Requires: %{name} = %{version}-%{release} |
b9fa6487 | 57 | |
161a184c | 58 | %description moviepack |
161a184c | 59 | Moviepack addon. |
b9fa6487 | 60 | |
2ff15ef0 | 61 | %description moviepack -l pl.UTF-8 |
161a184c | 62 | Dodatek Moviepack. |
63 | ||
06278480 | 64 | %package server |
48a858e9 | 65 | Summary: Armagetron server |
8f656a03 | 66 | Summary(pl.UTF-8): Serwer Armagetrona |
06278480 | 67 | Group: Applications/Games |
06278480 | 68 | |
69 | %description server | |
70 | Armagetron server. | |
71 | ||
2ff15ef0 | 72 | %description server -l pl.UTF-8 |
48a858e9 | 73 | Serwer Armagetrona. |
06278480 | 74 | |
0a8caa2a | 75 | %prep |
c57ca451 JB |
76 | %setup -q -a3 |
77 | %patch0 -p1 | |
0a8caa2a | 78 | |
5bc344c2 | 79 | sed -i -e 's@/usr/lib@/usr/%{_lib}@;s@X11R6/lib@X11R6/%{_lib}@' configure.in |
7968e001 | 80 | |
0a8caa2a | 81 | %build |
7968e001 | 82 | cp -f /usr/share/automake/config.sub . |
0d7433cf | 83 | %{__aclocal} |
84 | %{__autoconf} | |
06278480 | 85 | |
48a858e9 | 86 | %configure \ |
ef96eda1 | 87 | --disable-glout |
88 | ||
06278480 | 89 | %{__make} bindist |
90 | mv bindist bindist-dedicated | |
ef96eda1 | 91 | sed -i 's@\/etc\/armagetron@\/etc\/armagetron-server@' bindist-dedicated/bin/starter |
06278480 | 92 | |
0a8caa2a TO |
93 | %configure |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
db5151fb | 98 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir}} \ |
ef96eda1 | 99 | $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack \ |
100 | $RPM_BUILD_ROOT%{_sysconfdir_server} | |
0a8caa2a | 101 | |
f62c7212 | 102 | %{__make} install |
0a8caa2a | 103 | |
06278480 | 104 | cd bindist-dedicated |
105 | ./install | |
106 | cd .. | |
107 | ||
c57ca451 JB |
108 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/* $RPM_BUILD_ROOT%{_bindir} |
109 | ||
db5151fb | 110 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
161a184c | 111 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
112 | ||
ef96eda1 | 113 | cp $RPM_BUILD_ROOT%{_sysconfdir}/* $RPM_BUILD_ROOT%{_sysconfdir_server} |
a1e074f6 | 114 | cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name} |
161a184c | 115 | rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt |
116 | ||
0a8caa2a TO |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
f62c7212 | 122 | %doc CHANGELOG doc/*.html doc/net |
ef96eda1 | 123 | %dir %{_sysconfdir} |
124 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg | |
125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.srv | |
06278480 | 126 | %attr(755,root,root) %{_bindir}/%{name} |
127 | %attr(755,root,root) %{_bindir}/%{name}-stat | |
f62c7212 TO |
128 | %dir %{_prefix}/games/%{name} |
129 | %{_prefix}/games/%{name}/arenas | |
130 | %dir %{_prefix}/games/%{name}/bin | |
131 | %attr(755,root,root) %{_prefix}/games/%{name}/bin/[ap]* | |
132 | %dir %{_prefix}/games/%{name}/language | |
133 | %{_prefix}/games/%{name}/language/languages.txt | |
134 | %{_prefix}/games/%{name}/language/english.txt | |
135 | %lang(de) %{_prefix}/games/%{name}/language/deutsch.txt | |
136 | %{_prefix}/games/%{name}/models | |
137 | %{_prefix}/games/%{name}/sound | |
138 | %{_prefix}/games/%{name}/textures | |
0023ed4a | 139 | %{_desktopdir}/*.desktop |
161a184c | 140 | %{_pixmapsdir}/* |
141 | ||
142 | %files moviepack | |
143 | %defattr(644,root,root,755) | |
144 | %doc moviepack/art_read_me.txt | |
145 | %{_prefix}/games/%{name}/moviepack | |
06278480 | 146 | |
147 | %files server | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_bindir}/armagetron-dedicated | |
150 | %dir %{_prefix}/games/armagetron-dedicated | |
151 | %{_prefix}/games/armagetron-dedicated/bin | |
152 | %attr(755,root,root) %{_prefix}/games/armagetron-dedicated/bin/* | |
153 | %exclude %{_prefix}/games/armagetron-dedicated/bin/uninstall | |
154 | %{_prefix}/games/armagetron-dedicated/language | |
ef96eda1 | 155 | %dir %{_sysconfdir_server} |
156 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.cfg | |
157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.srv |