]> git.pld-linux.org Git - packages/wesnoth.git/blob - wesnoth.spec
- updated to 0.7.8
[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.7.8
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:  cf3d1d963b26c79306a46247ee7a10a8
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 >= 2.0
23 Requires:       SDL_image >= 1.2
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Battle for Wesnoth is a fantasy strategy game. Battle for control of
28 villages, using variety of units which have advantages and
29 disadvantages in different types of terrains and against different
30 types of attacks. Units gain experience and advance levels, and are
31 carried over from one scenario to the next campaign.
32
33 %description -l pl
34 Battle for Wesnoth jest strategiczn± gr± fantasy. Batalia o
35 kontrolê nad wsiami przy pomocy ró¿nego rodzaju oddzia³ów, które maj±
36 przewagê lub jej brak w odmiennym ukszta³towaniu terenu i przeciwko
37 ró¿nym sposobom ataku. Oddzia³y zdobywaj± do¶wiadczenie i poziomy
38 zaawansowania i s± przenoszene z jednej scenerii do nastêpnej kampani.
39
40 %package server
41 Summary:        Network server for Wesnoth
42 Summary(pl):    Sieciowy serwer dla Wesnoth
43 Group:          X11/Applications/Games/Strategy
44
45 %description server
46 Server for playing networked games of Wesnoth.
47
48 %description server -l pl
49 Serwer do prowadzenia sieciowych gier Wesnoth.
50
51 %package tools
52 Summary:        Tools for Wesnoth
53 Summary(pl):    Narzêdzia dla Wesnoth
54 Group:          X11/Applications/Games/Strategy
55 Requires:       %{name} = %{version}
56
57 %description tools
58 Map editor and translations tools.
59
60 %description tools -l pl
61 Edytor map i narzêdzia do t³umaczeñ.
62
63 %prep
64 %setup -q
65
66 %build
67 %configure \
68         %{?with_server:--enable-server} \
69         %{?with_tools:--enable-editor} \
70         %{?with_tools:--enable-tools}
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 install images/wesnoth-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}
81 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc changelog README MANUAL*
89 %attr(755,root,root) %{_bindir}/wesnoth
90 %{_mandir}/man6/wesnoth.6*
91 %{_datadir}/%{name}
92 %{_desktopdir}/%{name}.desktop
93 %{_pixmapsdir}/*
94
95 %if %{with server}
96 %files server
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/wesnothd
99 %{_mandir}/man6/wesnothd.6*
100 %endif
101
102 %if %{with tools}
103 %files tools
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/make_translation
106 %attr(755,root,root) %{_bindir}/merge_translations
107 %attr(755,root,root) %{_bindir}/wesnoth_editor
108 %{_mandir}/man6/wesnoth_editor.6*
109 %endif
This page took 0.074962 seconds and 4 git commands to generate.