]> git.pld-linux.org Git - packages/wesnoth.git/blob - wesnoth.spec
- typos, encoding fixes, added vi-line, etc.
[packages/wesnoth.git] / wesnoth.spec
1 #
2 # Conditional build
3 %bcond_without  server  # without server
4 %bcond_without  tools   # without tools
5 #
6 Summary:        Strategy game with a fantasy theme
7 Summary(pl):    Strategiczna gra z motywem fantasy
8 Name:           wesnoth
9 Version:        0.6.1
10 Release:        1
11 License:        GPL v2
12 Group:          X11/Applications/Games/Strategy
13 Icon:           wesnoth-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_net-devel >= 1.2
22 BuildRequires:  SDL_ttf-devel >= 1.2
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
31
32 %description -l pl
33 Battle for Wesnoth jest strategiczn± gr± fantasy. 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.
38
39 %package server
40 Summary:        Network server for Wesnoth
41 Summary(pl):    Sieciowy serwer dla Wesnoth
42 Group:          X11/Applications/Games/Strategy
43
44 %description server
45 Server for playing networked games of Wesnoth.
46
47 %description server -l pl
48 Serwer do prowadzenia sieciowych gier Wesnoth.
49
50 %package tools
51 Summary:        Tools for Wesnoth
52 Summary(pl):    Narzêdzia dla Wesnoth
53 Group:          X11/Applications/Games/Strategy
54 Requires:       %{name} = %{version}
55
56 %description tools
57 Map editor and translations tools.
58
59 %description tools -l pl
60 Edytor map i narzêdzia do t³umaczeñ.
61
62 %prep
63 %setup -q
64
65 %build
66 %configure \
67         %{?with_server:--enable-server} \
68         %{?with_tools:--enable-editor} \
69         %{?with_tools:--enable-tools}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_desktopdir}
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc changelog README MANUAL*
87 %attr(755,root,root) %{_bindir}/wesnoth
88 %{_mandir}/man6/wesnoth.6*
89 %{_datadir}/%{name}
90 %{_desktopdir}/%{name}.desktop
91
92 %if %{with server}
93 %files server
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/wesnothd
96 %{_mandir}/man6/wesnothd.6*
97 %endif
98
99 %if %{with tools}
100 %files tools
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/make_translation
103 %attr(755,root,root) %{_bindir}/merge_translations
104 %attr(755,root,root) %{_bindir}/wesnoth_editor
105 %endif
This page took 0.053922 seconds and 4 git commands to generate.