]> git.pld-linux.org Git - packages/armagetronad.git/blob - armagetronad.spec
- more TODO
[packages/armagetronad.git] / armagetronad.spec
1 #
2 # TODO: - start scripts for server
3 #       - fix build on 64 bits
4 #       - re-enable server
5 #
6 Summary:        A Tron lightcycle game with focus on multiplayer mode
7 Summary(pl.UTF-8):      Gra Tron ze światłocyklem skupiająca się na trybie dla wielu graczy
8 Name:           armagetronad
9 Version:        0.2.8.3.1
10 Release:        0.1
11 License:        GPL v3+
12 Group:          X11/Applications/Games
13 Source0:        http://downloads.sourceforge.net/armagetronad/%{name}-%{version}.src.tar.bz2
14 # Source0-md5:  d4957ee0c2d3ae9d630d1362a6dcee70
15 #Source1:       %{name}.desktop
16 #Source2:       %{name}.png
17 Source3:        http://armagetron.sourceforge.net/addons/moviepack.zip
18 # Source3-md5:  e2d40309dde7e1339ca6aff7599cdfa3
19 URL:            http://armagetronad.net/
20 BuildRequires:  OpenGL-devel
21 BuildRequires:  SDL_image-devel
22 BuildRequires:  SDL_mixer-devel
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  libpng-devel >= 2:1.4.0
25 BuildRequires:  libxml2-devel
26 BuildRequires:  sed >= 4.0
27 BuildRequires:  unzip
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 In Armagetron, you ride a lightcycle around the game grid. You can
32 only make sharp turns of 90 degrees and a wall constantly builds up
33 after you. Make your enemies crash into your wall, but be aware that
34 they are trying to do the same to you. If you are fast enough, you may
35 be able to trap them, but the only way to speed up your lightcycle is
36 to drive close to the dangerous walls. Prepare for exciting strategic
37 preparations followed by action-packed close combat!
38
39 %description -l pl.UTF-8
40 W grze Armagetron jeździ się światłocyklem po planszy. Można wykonywać
41 tylko ostre zakręty o 90 stopni, a za graczem ciągle buduje się mur.
42 Trzeba spowodować, by wrogowie roztrzaskali się na tym murze, ale
43 także uważać, bo oni próbują zrobić to samo. Jeśli gracz jest szybki,
44 może złapać ich wszystkich, ale jedynym sposobem na przyspieszenie
45 światłocyklu jest jazda blisko niebezpiecznych ścian. Trzeba się
46 przygotować na ekscytujące strategiczne przygotowania i następującą po
47 nich walkę w zbliżeniu!
48
49 %package moviepack
50 Summary:        Moviepack addon
51 Summary(pl.UTF-8):      Dodatek Moviepack
52 Group:          X11/Applications/Games
53 Requires:       %{name} = %{version}-%{release}
54
55 %description moviepack
56 Moviepack addon.
57
58 %description moviepack -l pl.UTF-8
59 Dodatek Moviepack.
60
61 %package server
62 Summary:        Armagetron server
63 Summary(pl.UTF-8):      Serwer Armagetrona
64 Group:          Applications/Games
65
66 %description server
67 Armagetron server.
68
69 %description server -l pl.UTF-8
70 Serwer Armagetrona.
71
72 %prep
73 %setup -q -a3
74
75 # fix build with libpng >= 2:1.4.0
76 %{__sed} -i 's/png_check_sig/png_sig_cmp/' configure.ac
77
78 %build
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --enable-music \
85         --disable-sysinstall \
86         --disable-uninstall
87 #       --disable-glout \
88 #       --enable-games \
89 #       --enable-main \
90 #       --enable-master \
91 #       --enable-music \
92 #       --disable-initscripts \
93 #       --disable-useradd
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99 #install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
100 #       $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack \
101 #       $RPM_BUILD_ROOT%{_sysconfdir_server}
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 #install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
107 #install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
108 #
109 #cp $RPM_BUILD_ROOT%{_sysconfdir}/* $RPM_BUILD_ROOT%{_sysconfdir_server}
110 #cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name}
111 #rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS src/doc/{*.html,net}
119 %dir %{_sysconfdir}/games
120 %dir %{_sysconfdir}/games/%{name}
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/games/%{name}/*.cfg
122 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg
123 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.srv
124 %attr(755,root,root) %{_bindir}/%{name}
125 %dir %{_datadir}/games/armagetronad
126 %dir %{_datadir}/games/armagetronad/language
127 %{_datadir}/games/armagetronad/language/*.txt
128 %dir %{_datadir}/games/armagetronad/models
129 %{_datadir}/games/armagetronad/models/*.mod
130 %dir %{_datadir}/games/armagetronad/resource
131 %dir %{_datadir}/games/armagetronad/resource/included
132 %{_datadir}/games/armagetronad/resource/included/*.dtd
133 %dir %{_datadir}/games/armagetronad/resource/included/AATeam
134 %{_datadir}/games/armagetronad/resource/included/AATeam/*.dtd
135 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous
136 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon
137 %dir %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon/regular
138 %{_datadir}/games/armagetronad/resource/included/Anonymous/polygon/regular/*.xml
139 %dir %{_datadir}/games/armagetronad/resource/included/Your_mom
140 %dir %{_datadir}/games/armagetronad/resource/included/Your_mom/clever
141 %{_datadir}/games/armagetronad/resource/included/Your_mom/clever/*.xml
142 %dir %{_datadir}/games/armagetronad/resource/included/Z-Man
143 %dir %{_datadir}/games/armagetronad/resource/included/Z-Man/fortress
144 %{_datadir}/games/armagetronad/resource/included/Z-Man/fortress/*.xml
145 %dir %{_datadir}/games/armagetronad/sound
146 %{_datadir}/games/armagetronad/sound/*.wav
147 %dir %{_datadir}/games/armagetronad/textures
148 %{_datadir}/games/armagetronad/textures/*.jpg
149 %{_datadir}/games/armagetronad/textures/*.png
150
151 %files moviepack
152 %defattr(644,root,root,755)
153 #%%doc moviepack/art_read_me.txt
154 #%%{_prefix}/games/%{name}/moviepack
155
156 %files server
157 %defattr(644,root,root,755)
158 %if 0
159 %attr(755,root,root) %{_bindir}/armagetronad-dedicated
160 %dir %{_prefix}/games/armagetronad-dedicated
161 %{_datadir}/games/armagetronad-dedicated/bin
162 %attr(755,root,root) %{_prefix}/games/armagetronad-dedicated/bin/*
163 %exclude %{_prefix}/games/armagetronad-dedicated/bin/uninstall
164 %{_prefix}/games/armagetronad-dedicated/language
165 %dir %{_sysconfdir_server}
166 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.cfg
167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir_server}/*.srv
168 %endif
This page took 0.066588 seconds and 3 git commands to generate.