# TODO
-# - use desktop file included with project (consider which one are better)
# - unpackaged language files
-# - fix lacales (seems broken)
# Conditional build
%bcond_without server # without server
%bcond_without tools # without tools
Summary(hu.UTF-8): Fantasy környezetben játszódó stratégiai játék
Summary(pl.UTF-8): Strategiczna gra z motywem fantasy
Name: wesnoth
-Version: 1.8
-Release: 0.1
+Version: 1.8.4
+Release: 0.9
Epoch: 1
License: GPL v2+
Group: X11/Applications/Games/Strategy
Source0: http://downloads.sourceforge.net/wesnoth/%{name}-%{version}.tar.bz2
-# Source0-md5: 07e4b97512e307c54dcfd86659a61e41
+# Source0-md5: 2dce83f835ecce1d505ea60e46b7356f
Source1: %{name}d.init
Patch0: %{name}-libpng.patch
Patch1: %{name}-desktop.patch
+Patch2: %{name}-locale_dir.patch
URL: http://www.wesnoth.org/
BuildRequires: SDL-devel >= 1.2.7
BuildRequires: SDL_image-devel >= 1.2
BuildRequires: asciidoc
BuildRequires: boost-devel >= 1.33
BuildRequires: cmake >= 2.4
+BuildRequires: dbus-devel
%{?with_fribidi:BuildRequires: fribidi-devel}
BuildRequires: gettext-devel
BuildRequires: libpng-devel
BuildRequires: lua51-devel
BuildRequires: pango-devel
BuildRequires: pkgconfig
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
BuildRequires: zlib-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# don't install locales in %{_datadir}/%{name}
%{__sed} -i 's,${DATADIR}/${LOCALEDIR},${LOCALEDIR},' CMakeLists.txt
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/racv
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en@shaw
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/sr@ijekavian
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/sr@ijekavianlatin
rm -rf $RPM_BUILD_ROOT%{_mandir}/ca_ES@valencia
# the same as manuals from %{_mandir}/man?
%lang(et) %{_mandir}/et/man6/wesnothd.6*
%lang(fi) %{_mandir}/fi/man6/wesnothd.6*
%lang(fr) %{_mandir}/fr/man6/wesnothd.6*
+%lang(gl) %{_mandir}/gl/man6/wesnothd.6*
%lang(hu) %{_mandir}/hu/man6/wesnothd.6*
%lang(it) %{_mandir}/it/man6/wesnothd.6*
%lang(ja) %{_mandir}/ja/man6/wesnothd.6*
%lang(sr@latin) %{_mandir}/sr@latin/man6/wesnothd.6*
%lang(tr) %{_mandir}/tr/man6/wesnothd.6*
%lang(zh_CN) %{_mandir}/zh_CN/man6/wesnothd.6*
+%lang(zh_TW) %{_mandir}/zh_TW/man6/wesnothd.6*
%attr(770,wesnothd,wesnothd) %dir /var/run/wesnothd
%endif