]> git.pld-linux.org Git - packages/armagetronad.git/blob - armagetronad.spec
9168e6d14fa75ae7d8d2d0ddfc466edb422cb2ea
[packages/armagetronad.git] / armagetronad.spec
1 #
2 # TODO: - start scripts for server
3 #       - fix build on 64 bits
4 #
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
7 Name:           armagetronad
8 Version:        0.2.8.3.1
9 Release:        0.1
10 License:        GPL v3+
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
15 #Source2:       %{name}.png
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
26 BuildRequires:  unzip
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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!
37
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!
47
48 %package moviepack
49 Summary:        Moviepack addon
50 Summary(pl.UTF-8):      Dodatek Moviepack
51 Group:          X11/Applications/Games
52 Requires:       %{name} = %{version}-%{release}
53
54 %description moviepack
55 Moviepack addon.
56
57 %description moviepack -l pl.UTF-8
58 Dodatek Moviepack.
59
60 %package server
61 Summary:        Armagetron server
62 Summary(pl.UTF-8):      Serwer Armagetrona
63 Group:          Applications/Games
64
65 %description server
66 Armagetron server.
67
68 %description server -l pl.UTF-8
69 Serwer Armagetrona.
70
71 %prep
72 %setup -q -a3
73
74 # fix build with libpng >= 2:1.4.0
75 %{__sed} -i 's/png_check_sig/png_sig_cmp/' configure.ac
76
77 %build
78 %{__aclocal}
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         --enable-music \
84         --disable-sysinstall \
85         --disable-uninstall
86 #       --disable-glout \
87 #       --enable-games \
88 #       --enable-main \
89 #       --enable-master \
90 #       --enable-music \
91 #       --disable-initscripts \
92 #       --disable-useradd
93
94 %{__make}
95
96 %install
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}
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 #install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
106 #install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
107 #
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
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
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
149
150 %files moviepack
151 %defattr(644,root,root,755)
152 #%%doc moviepack/art_read_me.txt
153 #%%{_prefix}/games/%{name}/moviepack
154
155 %files server
156 %defattr(644,root,root,755)
157 %if 0
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
167 %endif
This page took 0.045662 seconds and 2 git commands to generate.