]> git.pld-linux.org Git - packages/armagetron.git/blob - armagetron.spec
bdbe2f84c1ed09e49fd26599bc9f4c8dd1d538f2
[packages/armagetron.git] / armagetron.spec
1 #
2 # Conditionale build:
3 # _with_moviesounds - build moviesounds subpackage. Note: it probably is a
4 #                     violation of Disney's copyright.
5 #
6 Summary:        A Tron lightcycle game with focus on multiplayer mode
7 Summary(pl):    Gra Tron ze ¶wiat³ocyklem skupiaj±ca siê na trybie dla wielu graczy
8 Name:           armagetron
9 Version:        0.2.5.2
10 Release:        3
11 License:        GPL
12 Group:          X11/Applications/Games
13 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
14 # Source0-md5:  71bfeaa5ddaf38d5fd8d893caec91d15
15 Source1:        %{name}.desktop
16 Source2:        %{name}.png
17 Source3:        http://armagetron.sourceforge.net/addons/moviepack.zip
18 # Source3-md5:  e2d40309dde7e1339ca6aff7599cdfa3
19 %if %{?_with_moviesounds:1}%{!?_with_moviesounds:0}
20 Source4:        http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
21 # Source4-md5:  3c5d04af52eb296cdeb2fba5ecbd8899
22 %endif
23 URL:            http://armagetron.sourceforge.net/
24 BuildRequires:  OpenGL-devel
25 BuildRequires:  SDL_image-devel
26 BuildRequires:  SDL_mixer-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _sysconfdir     /etc/%{name}
30
31 %description
32 In Armagetron, you ride a lightcycle around the game grid. You can
33 only make sharp turns of 90 degrees and a wall constantly builds up
34 after you. Make your enemies crash into your wall, but be aware that
35 they are trying to do the same to you. If you are fast enough, you may
36 be able to trap them, but the only way to speed up your lightcycle is
37 to drive close to the dangerous walls. Prepare for exciting strategic
38 preparations followed by action-packed close combat!
39
40 %description -l pl
41 W grze Armagetron jedzie siê ¶wiat³ocyklem dooko³a planszy. Mo¿na
42 wykonywaæ tylko ostre zakrêty o 90 stopni, a za graczem ci±gle buduje
43 siê ¶ciana. Trzeba spowodowaæ, by wrogowie roztrzaskali siê na tej
44 ¶cianie, ale tak¿e uwa¿aæ, bo oni próbuj± zrobiæ to samo. Je¶li gracz
45 jest szybki, mo¿e z³apaæ ich wszystkich, ale jedynym sposobem na
46 przyspieszenie ¶wiat³ocyklu jest jazda blisko niebezpiecznych ¶cian.
47 Trzeba siê przygotowaæ na ekscytuj±ce strategiczne przygotowania i
48 nastêpuj±c± po nich walkê w zbli¿eniu!
49
50 %package moviepack
51 Summary:        Moviepack addon
52 Summary(pl):    Dodatek Moviepack
53 Group:          X11/Applications/Games
54 Requires:       %{name} = %{version}
55                                                                                 
56 %description moviepack
57 Moviepack addon.
58                                                                                 
59 %description moviepack -l pl
60 Dodatek Moviepack.
61
62 %package moviesounds
63 Summary:        Moviesounds addon
64 Summary(pl):    Dodatek Moviesounds
65 Group:          X11/Applications/Games
66 Requires:       %{name} = %{version}
67                                                                                 
68 %description moviesounds
69 Moviesounds addon.
70                                                                                 
71 %description moviesounds -l pl
72 Dodatek Moviesounds.
73
74 %prep
75 %setup -q -a 3 %{?_with_moviesounds:-a 4}
76
77 %build
78 rm -f missing
79 %{__aclocal}
80 %{__autoconf}
81 %configure
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}} \
87         $RPM_BUILD_ROOT%{_prefix}/games/%{name}/movie{pack,sounds}
88
89 %{__make} install
90
91 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
92 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
93
94 cp -R moviepack $RPM_BUILD_ROOT%{_prefix}/games/%{name}
95 %{?_with_moviesounds:cp -R moviesounds $RPM_BUILD_ROOT%{_prefix}/games/%{name}}
96 rm -f $RPM_BUILD_ROOT%{_prefix}/games/%{name}/moviepack/art_read_me.txt
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files
102 %defattr(644,root,root,755)
103 %doc CHANGELOG doc/*.html doc/net
104 %attr(755,root,root) %{_bindir}/*
105 %dir %{_sysconfdir}
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg
107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.srv
108 %dir %{_prefix}/games/%{name}
109 %{_prefix}/games/%{name}/arenas
110 %dir %{_prefix}/games/%{name}/bin
111 %attr(755,root,root) %{_prefix}/games/%{name}/bin/[ap]*
112 %dir %{_prefix}/games/%{name}/language
113 %{_prefix}/games/%{name}/language/languages.txt
114 %{_prefix}/games/%{name}/language/english.txt
115 %lang(de) %{_prefix}/games/%{name}/language/deutsch.txt
116 %{_prefix}/games/%{name}/models
117 %{_prefix}/games/%{name}/sound
118 %{_prefix}/games/%{name}/textures
119 %{_applnkdir}/Games/*
120 %{_pixmapsdir}/*
121
122 %files moviepack
123 %defattr(644,root,root,755)
124 %doc moviepack/art_read_me.txt
125 %{_prefix}/games/%{name}/moviepack
126
127 %if %{?_with_moviesounds:1}%{!?_with_moviesounds:0}
128 %files moviesounds
129 %defattr(644,root,root,755)
130 %{_prefix}/games/%{name}/moviesounds
131 %endif
This page took 0.054866 seconds and 3 git commands to generate.