]> git.pld-linux.org Git - packages/wesnoth.git/blame - wesnoth.spec
- up to 1.3.9
[packages/wesnoth.git] / wesnoth.spec
CommitLineData
4f6ef9bb 1# TODO
2# - package rest of developement tools
47e2d7c5 3# - rename language files sr@latin to sr@Latn and include them
4# - use desktop file included with project
dad9a32e 5#
6# Conditional build
7%bcond_without server # without server
b18d78c0 8%bcond_without tools # without tools
dad9a32e 9#
10Summary: Strategy game with a fantasy theme
157e8e1f 11Summary(pl.UTF-8): Strategiczna gra z motywem fantasy
dad9a32e 12Name: wesnoth
47e2d7c5 13Version: 1.3.9
46ecb3d5 14Release: 1
482a922c 15License: GPL v2+
dad9a32e 16Group: X11/Applications/Games/Strategy
01b16924 17Source0: http://www.wesnoth.org/files/%{name}-%{version}.tar.bz2
47e2d7c5 18# Source0-md5: 7d49c0aeb396c567a3c09c7dd8904f06
dad9a32e 19Source1: %{name}.desktop
3fdd0ea2 20Source2: %{name}d.init
6734084f 21Patch0: %{name}-Makefile.patch
1c7a318b 22Patch1: %{name}-locale_dir.patch
4d5620e7 23URL: http://www.wesnoth.org/
ae1834b0 24BuildRequires: SDL-devel >= 1.2.7
dad9a32e 25BuildRequires: SDL_image-devel >= 1.2
26BuildRequires: SDL_mixer-devel >= 1.2
dad9a32e 27BuildRequires: SDL_net-devel >= 1.2
8418f9f0 28BuildRequires: SDL_ttf-devel >= 2.0
126856ae 29BuildRequires: autoconf >= 2.59
9d16f83e
JB
30BuildRequires: automake >= 1:1.9
31BuildRequires: gettext-devel
6ac5e90b 32BuildRequires: libstdc++-devel
9d16f83e 33BuildRequires: libtool >= 2:1.5
56da1b20 34BuildRequires: python-devel
c12ea96c 35BuildRequires: rpmbuild(macros) >= 1.268
56da1b20 36BuildRequires: rpm-pythonprov
516c4760 37BuildRequires: zipios++-devel
dad9a32e 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41Battle for Wesnoth is a fantasy strategy game. Battle for control of
42villages, using variety of units which have advantages and
43disadvantages in different types of terrains and against different
44types of attacks. Units gain experience and advance levels, and are
45carried over from one scenario to the next campaign.
46
7840b0fd
JR
47%description -l pl.UTF-8
48Battle for Wesnoth jest strategiczną grą fantasy. Batalia o kontrolę
49nad wsiami przy pomocy różnego rodzaju oddziałów, które mają przewagę
50lub jej brak w odmiennym ukształtowaniu terenu i przeciwko różnym
51sposobom ataku. Oddziały zdobywają doświadczenie i poziomy
52zaawansowania i są przenoszone z jednej scenerii do następnej
24e1b6fa 53kampanii.
dad9a32e 54
dad9a32e 55%package server
56Summary: Network server for Wesnoth
157e8e1f 57Summary(pl.UTF-8): Sieciowy serwer dla Wesnoth
dad9a32e 58Group: X11/Applications/Games/Strategy
68dfe0cd 59Requires: rc-scripts >= 0.4.0.17
392ee82f 60Requires(post,preun): /sbin/chkconfig
40b36f90
JK
61Requires(postun): /usr/sbin/groupdel
62Requires(postun): /usr/sbin/userdel
63Requires(pre): /usr/sbin/groupadd
64Requires(pre): /usr/sbin/useradd
dad9a32e 65
66%description server
67Server for playing networked games of Wesnoth.
68
7840b0fd 69%description server -l pl.UTF-8
dad9a32e 70Serwer do prowadzenia sieciowych gier Wesnoth.
dad9a32e 71
dad9a32e 72%package tools
73Summary: Tools for Wesnoth
157e8e1f 74Summary(pl.UTF-8): Narzędzia dla Wesnoth
dad9a32e 75Group: X11/Applications/Games/Strategy
6ac5e90b 76Requires: %{name} = %{version}-%{release}
dad9a32e 77
78%description tools
79Map editor and translations tools.
80
7840b0fd
JR
81%description tools -l pl.UTF-8
82Edytor map i narzędzia do tłumaczeń.
dad9a32e 83
84%prep
126856ae 85%setup -q
6734084f 86%patch0 -p1
1c7a318b 87%patch1 -p1
dad9a32e 88
89%build
629473ee 90%{__gettextize}
629473ee 91%{__aclocal}
92%{__autoconf}
93%{__autoheader}
94%{__automake}
dad9a32e 95%configure \
96 %{?with_server:--enable-server} \
97 %{?with_tools:--enable-editor} \
c12ea96c
MB
98 %{?with_tools:--enable-tools} \
99 --with-zipios
dad9a32e 100%{__make}
101
102%install
103rm -rf $RPM_BUILD_ROOT
1e98d246 104install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/var/run/wesnothd,/etc/rc.d/init.d}
dad9a32e 105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
108
0a0b6608 109install images/wesnoth-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}
dad9a32e 110install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
3fdd0ea2 111install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/wesnothd
dad9a32e 112
c12ea96c
MB
113mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{gl_ES,gl}
114mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{nb_NO,nb}
115
116rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ca_ES@valencia
117
118# unsupported(?)
119rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/la
120
121# the same as manuals from %{_mandir}/man?
122rm -rf $RPM_BUILD_ROOT%{_mandir}/en_GB
123
5105ea28 124%find_lang %{name} --all-name
125
dad9a32e 126%clean
127rm -rf $RPM_BUILD_ROOT
128
40b36f90
JK
129%pre server
130%groupadd -P %{name}-server -g 178 wesnothd
131%useradd -P %{name}-server -u 178 -d /var/run/wesnothd -c "Wesnothd User" -g wesnothd wesnothd
132
3fdd0ea2 133%post server
134/sbin/chkconfig --add wesnothd
c12ea96c 135%service wesnothd restart
3fdd0ea2 136
137%preun server
138if [ "$1" = "0" ]; then
c12ea96c 139 %service wesnothd stop
24e1b6fa 140 /sbin/chkconfig --del wesnothd
40b36f90
JK
141 %userremove wesnothd
142 %groupremove wesnothd
3fdd0ea2 143fi
144
5105ea28 145%files -f %{name}.lang
dad9a32e 146%defattr(644,root,root,755)
47e2d7c5 147%doc changelog README doc/manual/manual.txt
dad9a32e 148%attr(755,root,root) %{_bindir}/wesnoth
0c6dc98e 149%{_mandir}/man6/wesnoth.6*
126856ae 150%lang(bg) %{_mandir}/bg/man6/wesnoth.6*
47e2d7c5 151%lang(cs) %{_mandir}/cs/man6/wesnoth.6*
126856ae 152%lang(da) %{_mandir}/da/man6/wesnoth.6*
1acfd818 153%lang(de) %{_mandir}/de/man6/wesnoth.6*
47e2d7c5 154%lang(es) %{_mandir}/es/man6/wesnoth.6*
5105ea28 155%lang(fr) %{_mandir}/fr/man6/wesnoth.6*
126856ae 156%lang(hu) %{_mandir}/hu/man6/wesnoth.6*
157%lang(it) %{_mandir}/it/man6/wesnoth.6*
5105ea28 158%lang(ja) %{_mandir}/ja/man6/wesnoth.6*
a6412a7b 159%lang(nl) %{_mandir}/nl/man6/wesnoth.6*
126856ae 160%lang(pl) %{_mandir}/pl/man6/wesnoth.6*
5105ea28 161%lang(pt_BR) %{_mandir}/pt_BR/man6/wesnoth.6*
126856ae 162%lang(ru) %{_mandir}/ru/man6/wesnoth.6*
5105ea28 163%lang(sk) %{_mandir}/sk/man6/wesnoth.6*
126856ae 164%lang(sr) %{_mandir}/sr/man6/wesnoth.6*
6734084f 165%lang(sv) %{_mandir}/sv/man6/wesnoth.6*
0c6dc98e 166%{_datadir}/%{name}
dad9a32e 167%{_desktopdir}/%{name}.desktop
0a0b6608 168%{_pixmapsdir}/*
dad9a32e 169
170%if %{with server}
171%files server
172%defattr(644,root,root,755)
173%attr(755,root,root) %{_bindir}/wesnothd
3fdd0ea2 174%attr(754,root,root) /etc/rc.d/init.d/wesnothd
0c6dc98e 175%{_mandir}/man6/wesnothd.6*
126856ae 176%lang(bg) %{_mandir}/bg/man6/wesnothd.6*
5105ea28 177%lang(cs) %{_mandir}/cs/man6/wesnothd.6*
126856ae 178%lang(da) %{_mandir}/da/man6/wesnothd.6*
1acfd818 179%lang(de) %{_mandir}/de/man6/wesnothd.6*
47e2d7c5 180%lang(es) %{_mandir}/es/man6/wesnothd.6*
5105ea28 181%lang(fr) %{_mandir}/fr/man6/wesnothd.6*
126856ae 182%lang(hu) %{_mandir}/hu/man6/wesnothd.6*
183%lang(it) %{_mandir}/it/man6/wesnothd.6*
5105ea28 184%lang(ja) %{_mandir}/ja/man6/wesnothd.6*
a6412a7b 185%lang(nl) %{_mandir}/nl/man6/wesnothd.6*
126856ae 186%lang(pl) %{_mandir}/pl/man6/wesnothd.6*
5105ea28 187%lang(pt_BR) %{_mandir}/pt_BR/man6/wesnothd.6*
126856ae 188%lang(ru) %{_mandir}/ru/man6/wesnothd.6*
5105ea28 189%lang(sk) %{_mandir}/sk/man6/wesnothd.6*
126856ae 190%lang(sr) %{_mandir}/sr/man6/wesnothd.6*
6734084f 191%lang(sv) %{_mandir}/sv/man6/wesnothd.6*
40b36f90 192%attr(770,wesnothd,wesnothd) %dir /var/run/wesnothd
dad9a32e 193%endif
194
195%if %{with tools}
196%files tools
197%defattr(644,root,root,755)
027c8016 198%attr(755,root,root) %{_bindir}/cutter
199%attr(755,root,root) %{_bindir}/exploder
dad9a32e 200%attr(755,root,root) %{_bindir}/wesnoth_editor
4ff8d7ea 201%{_mandir}/man6/wesnoth_editor.6*
126856ae 202%lang(bg) %{_mandir}/bg/man6/wesnoth_editor.6*
5105ea28 203%lang(cs) %{_mandir}/cs/man6/wesnoth_editor.6*
126856ae 204%lang(da) %{_mandir}/da/man6/wesnoth_editor.6*
1acfd818 205%lang(de) %{_mandir}/de/man6/wesnoth_editor.6*
47e2d7c5 206%lang(es) %{_mandir}/es/man6/wesnoth_editor.6*
5105ea28 207%lang(fr) %{_mandir}/fr/man6/wesnoth_editor.6*
126856ae 208%lang(hu) %{_mandir}/hu/man6/wesnoth_editor.6*
5105ea28 209%lang(it) %{_mandir}/it/man6/wesnoth_editor.6*
210%lang(ja) %{_mandir}/ja/man6/wesnoth_editor.6*
a6412a7b 211%lang(nl) %{_mandir}/nl/man6/wesnoth_editor.6*
126856ae 212%lang(pl) %{_mandir}/pl/man6/wesnoth_editor.6*
5105ea28 213%lang(pt_BR) %{_mandir}/pt_BR/man6/wesnoth_editor.6*
126856ae 214%lang(ru) %{_mandir}/ru/man6/wesnoth_editor.6*
5105ea28 215%lang(sk) %{_mandir}/sk/man6/wesnoth_editor.6*
126856ae 216%lang(sr) %{_mandir}/sr/man6/wesnoth_editor.6*
6734084f 217%lang(sv) %{_mandir}/sv/man6/wesnoth_editor.6*
dad9a32e 218%endif
This page took 0.78969 seconds and 4 git commands to generate.