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 motywem fantasy
12 Group: X11/Applications/Games/Strategy
13 Source0: http://www.wesnoth.org/files/%{name}-%{version}.tar.gz
14 # Source0-md5: 722a459282abe6d04dbe228d031c088e
15 Source1: %{name}.desktop
16 Source2: %{name}d.init
17 Patch0: %{name}-Makefile.patch
18 Patch1: %{name}-locale_dir.patch
19 URL: http://www.wesnoth.org/
20 BuildRequires: SDL-devel >= 1.2.7
21 BuildRequires: SDL_image-devel >= 1.2
22 BuildRequires: SDL_mixer-devel >= 1.2
23 BuildRequires: SDL_net-devel >= 1.2
24 BuildRequires: SDL_ttf-devel >= 2.0
25 BuildRequires: autoconf >= 2.57
26 BuildRequires: automake >= 1:1.9
27 BuildRequires: gettext-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool >= 2:1.5
30 BuildRequires: zipios++-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Battle for Wesnoth is a fantasy strategy game. Battle for control of
35 villages, using variety of units which have advantages and
36 disadvantages in different types of terrains and against different
37 types of attacks. Units gain experience and advance levels, and are
38 carried over from one scenario to the next campaign.
41 Battle for Wesnoth jest strategiczn± gr± fantasy. Batalia o kontrolê
42 nad wsiami przy pomocy ró¿nego rodzaju oddzia³ów, które maj± przewagê
43 lub jej brak w odmiennym ukszta³towaniu terenu i przeciwko ró¿nym
44 sposobom ataku. Oddzia³y zdobywaj± do¶wiadczenie i poziomy
45 zaawansowania i s± przenoszone z jednej scenerii do nastêpnej
49 Summary: Network server for Wesnoth
50 Summary(pl): Sieciowy serwer dla Wesnoth
51 Group: X11/Applications/Games/Strategy
52 Requires(post,preun): /sbin/chkconfig
55 Server for playing networked games of Wesnoth.
57 %description server -l pl
58 Serwer do prowadzenia sieciowych gier Wesnoth.
61 Summary: Tools for Wesnoth
62 Summary(pl): Narzêdzia dla Wesnoth
63 Group: X11/Applications/Games/Strategy
64 Requires: %{name} = %{version}-%{release}
67 Map editor and translations tools.
69 %description tools -l pl
70 Edytor map i narzêdzia do t³umaczeñ.
84 %{?with_server:--enable-server} \
85 %{?with_tools:--enable-editor} \
86 %{?with_tools:--enable-tools}
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/var/run/wesnothd,/etc/rc.d/init.d}
94 DESTDIR=$RPM_BUILD_ROOT
96 install images/wesnoth-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}
97 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/wesnothd
100 %find_lang %{name} --all-name
103 rm -rf $RPM_BUILD_ROOT
106 /sbin/chkconfig --add wesnothd
107 if [ -f /var/lock/subsys/wesnothd ]; then
108 /etc/rc.d/init.d/wesnothd restart >&2
110 echo "Run \"/etc/rc.d/init.d/wesnothd start\" to start wesnothd." >&2
114 if [ "$1" = "0" ]; then
115 if [ -f /var/lock/subsys/wesnothd ]; then
116 /etc/rc.d/init.d/wesnothd stop
118 /sbin/chkconfig --del wesnothd
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc changelog README MANUAL*
124 %attr(755,root,root) %{_bindir}/wesnoth
125 %attr(755,root,root) %{_bindir}/wmlxgettext
126 %{_mandir}/man6/wesnoth.6*
127 %lang(de) %{_mandir}/de/man6/wesnoth.6*
128 %lang(cs) %{_mandir}/cs/man6/wesnoth.6*
129 %lang(en_GB) %{_mandir}/en_GB/man6/wesnoth.6*
130 %lang(fr) %{_mandir}/fr/man6/wesnoth.6*
131 %lang(ja) %{_mandir}/ja/man6/wesnoth.6*
132 %lang(nl) %{_mandir}/nl/man6/wesnoth.6*
133 %lang(pt_BR) %{_mandir}/pt_BR/man6/wesnoth.6*
134 %lang(sk) %{_mandir}/sk/man6/wesnoth.6*
135 %lang(sv) %{_mandir}/sv/man6/wesnoth.6*
137 %{_desktopdir}/%{name}.desktop
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/wesnothd
144 %attr(754,root,root) /etc/rc.d/init.d/wesnothd
145 %{_mandir}/man6/wesnothd.6*
146 %lang(cs) %{_mandir}/cs/man6/wesnothd.6*
147 %lang(de) %{_mandir}/de/man6/wesnothd.6*
148 %lang(en_GB) %{_mandir}/en_GB/man6/wesnothd.6*
149 %lang(fr) %{_mandir}/fr/man6/wesnothd.6*
150 %lang(ja) %{_mandir}/ja/man6/wesnothd.6*
151 %lang(nl) %{_mandir}/nl/man6/wesnothd.6*
152 %lang(pt_BR) %{_mandir}/pt_BR/man6/wesnothd.6*
153 %lang(sk) %{_mandir}/sk/man6/wesnothd.6*
154 %lang(sv) %{_mandir}/sv/man6/wesnothd.6*
155 %dir /var/run/wesnothd
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/cutter
162 %attr(755,root,root) %{_bindir}/exploder
163 %attr(755,root,root) %{_bindir}/wesnoth_editor
164 %{_mandir}/man6/wesnoth_editor.6*
165 %lang(cs) %{_mandir}/cs/man6/wesnoth_editor.6*
166 %lang(de) %{_mandir}/de/man6/wesnoth_editor.6*
167 %lang(en_GB) %{_mandir}/en_GB/man6/wesnoth_editor.6*
168 %lang(fr) %{_mandir}/fr/man6/wesnoth_editor.6*
169 %lang(it) %{_mandir}/it/man6/wesnoth_editor.6*
170 %lang(ja) %{_mandir}/ja/man6/wesnoth_editor.6*
171 %lang(nl) %{_mandir}/nl/man6/wesnoth_editor.6*
172 %lang(pt_BR) %{_mandir}/pt_BR/man6/wesnoth_editor.6*
173 %lang(sk) %{_mandir}/sk/man6/wesnoth_editor.6*
174 %lang(sv) %{_mandir}/sv/man6/wesnoth_editor.6*