]> git.pld-linux.org Git - packages/armagetron.git/blame - armagetron.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/armagetron.git] / armagetron.spec
CommitLineData
06278480 1#
2# TODO: start scripts for server
f62c7212 3Summary: A Tron lightcycle game with focus on multiplayer mode
8f656a03 4Summary(pl.UTF-8): Gra Tron ze światłocyklem skupiająca się na trybie dla wielu graczy
0a8caa2a 5Name: armagetron
15046896 6Version: 0.2.6.1
b72b52f2 7Release: 1
0a8caa2a
TO
8License: GPL
9Group: X11/Applications/Games
f62c7212 10Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
15046896 11# Source0-md5: 20c670d6e2bdcae2a3e52a3fab2788b7
161a184c 12Source1: %{name}.desktop
13Source2: %{name}.png
14Source3: http://armagetron.sourceforge.net/addons/moviepack.zip
15# Source3-md5: e2d40309dde7e1339ca6aff7599cdfa3
c57ca451 16Patch0: %{name}-types.patch
0a8caa2a
TO
17URL: http://armagetron.sourceforge.net/
18BuildRequires: OpenGL-devel
19BuildRequires: SDL_image-devel
20BuildRequires: SDL_mixer-devel
b6eea107 21BuildRequires: autoconf
6fa5b741 22BuildRequires: automake
ef96eda1 23BuildRequires: sed >= 4.0
66022663 24BuildRequires: unzip
0a8caa2a
TO
25BuildRoot: %{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
34In Armagetron, you ride a lightcycle around the game grid. You can
35only make sharp turns of 90 degrees and a wall constantly builds up
36after you. Make your enemies crash into your wall, but be aware that
37they are trying to do the same to you. If you are fast enough, you may
38be able to trap them, but the only way to speed up your lightcycle is
39to drive close to the dangerous walls. Prepare for exciting strategic
40preparations followed by action-packed close combat!
0a8caa2a 41
2ff15ef0
JR
42%description -l pl.UTF-8
43W grze Armagetron jedzie się światłocyklem dookoła planszy. Można
44wykonywać tylko ostre zakręty o 90 stopni, a za graczem ciągle buduje
45się ś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
47jest szybki, może złapać ich wszystkich, ale jedynym sposobem na
48przyspieszenie światłocyklu jest jazda blisko niebezpiecznych ścian.
49Trzeba się przygotować na ekscytujące strategiczne przygotowania i
50następującą po nich walkę w zbliżeniu!
d13b7061 51
161a184c 52%package moviepack
53Summary: Moviepack addon
8f656a03 54Summary(pl.UTF-8): Dodatek Moviepack
161a184c 55Group: X11/Applications/Games
7968e001 56Requires: %{name} = %{version}-%{release}
b9fa6487 57
161a184c 58%description moviepack
161a184c 59Moviepack addon.
b9fa6487 60
2ff15ef0 61%description moviepack -l pl.UTF-8
161a184c 62Dodatek Moviepack.
63
06278480 64%package server
48a858e9 65Summary: Armagetron server
8f656a03 66Summary(pl.UTF-8): Serwer Armagetrona
06278480 67Group: Applications/Games
06278480 68
69%description server
70Armagetron server.
71
2ff15ef0 72%description server -l pl.UTF-8
48a858e9 73Serwer Armagetrona.
06278480 74
0a8caa2a 75%prep
c57ca451
JB
76%setup -q -a3
77%patch0 -p1
0a8caa2a 78
5bc344c2 79sed -i -e 's@/usr/lib@/usr/%{_lib}@;s@X11R6/lib@X11R6/%{_lib}@' configure.in
7968e001 80
0a8caa2a 81%build
7968e001 82cp -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
90mv bindist bindist-dedicated
ef96eda1 91sed -i 's@\/etc\/armagetron@\/etc\/armagetron-server@' bindist-dedicated/bin/starter
06278480 92
0a8caa2a
TO
93%configure
94%{__make}
95
96%install
97rm -rf $RPM_BUILD_ROOT
db5151fb 98install -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 104cd bindist-dedicated
105./install
106cd ..
107
c57ca451
JB
108mv -f $RPM_BUILD_ROOT%{_prefix}/bin/* $RPM_BUILD_ROOT%{_bindir}
109
db5151fb 110install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
161a184c 111install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
112
ef96eda1 113cp $RPM_BUILD_ROOT%{_sysconfdir}/* $RPM_BUILD_ROOT%{_sysconfdir_server}
a1e074f6 114cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name}
161a184c 115rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt
116
0a8caa2a
TO
117%clean
118rm -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
This page took 0.12099 seconds and 4 git commands to generate.