3 %bcond_without server # without server
4 %bcond_without tools # without tools
6 Summary: Strategy game with a fantasy theme
7 Summary(pl): Strategiczna gra z fantazyjnym tematem
12 Group: X11/Applications/Games/Strategy
13 Icon: %{name}-icon.xpm
14 Source0: http://www.wesnoth.org/files/%{name}-%{version}.tar.gz
15 # Source0-md5: 716f3507d044318b63c907134356708c
16 Source1: %{name}.desktop
17 URL: http://www.wesnoth.org
18 BuildRequires: SDL-devel >= 1.2
19 BuildRequires: SDL_image-devel >= 1.2
20 BuildRequires: SDL_mixer-devel >= 1.2
21 BuildRequires: SDL_ttf-devel >= 1.2
22 BuildRequires: SDL_net-devel >= 1.2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Battle for Wesnoth is a fantasy strategy game. Battle for control of
27 villages, using variety of units which have advantages and
28 disadvantages in different types of terrains and against different
29 types of attacks. Units gain experience and advance levels, and are
30 carried over from one scenario to the next campaign.
33 Battle for Wesnoth jest fantazyjno strategiczn± gr±. Batalia o
34 kontrolê nad wsiami przy pomocy ró¿nego rodzaju oddzia³ów, które maj±
35 przewagê lub jej brak w odmiennym ukszta³towaniu terenu i przeciwko
36 ró¿nym sposobom ataku. Oddzia³y zdobywaj± do¶wiadczenie i poziomy
37 zaawansowania i s± przenoszene z jednej scenerii do nastêpnej kampani.
41 Summary: Network server for Wesnoth
42 Summary(pl): Sieciowy serwer dla Wesnoth
43 Group: X11/Applications/Games/Strategy
46 Server for playing networked games of Wesnoth.
48 %description server -l pl
49 Serwer do prowadzenia sieciowych gier Wesnoth.
54 Summary: Tools for Wesnoth
55 Summary(pl): Narzêdzia dla Wesnoth
56 Group: X11/Applications/Games/Strategy
57 Requires: %{name} = %{version}
60 Map editor and translations tools.
62 %description tools -l pl
63 Edytor map i narzêdzia do t³umaczeñ.
71 %{?with_server:--enable-server} \
72 %{?with_tools:--enable-editor} \
73 %{?with_tools:--enable-tools}
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT%{_desktopdir}
81 DESTDIR=$RPM_BUILD_ROOT
83 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc changelog README MANUAL*
91 %attr(755,root,root) %{_bindir}/wesnoth
92 %{_mandir}/man6/wesnoth.6.gz
94 %{_desktopdir}/%{name}.desktop
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/wesnothd
100 %{_mandir}/man6/wesnothd.6.gz
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/make_translation
107 %attr(755,root,root) %{_bindir}/merge_translations
108 %attr(755,root,root) %{_bindir}/wesnoth_editor