Summary(pl.UTF-8): Strategiczna gra z motywem fantasy
Name: wesnoth
Version: 1.10
-Release: 0.1
+Release: 4
Epoch: 1
License: GPL v2+
Group: X11/Applications/Games/Strategy
Source0: http://downloads.sourceforge.net/wesnoth/%{name}-%{version}.tar.bz2
# Source0-md5: 707daa13e2f5b3976d9b169aab62dc29
Source1: %{name}d.init
+Source2: %{name}.tmpfiles
Patch0: %{name}-desktop.patch
Patch1: %{name}-locale_dir.patch
URL: http://www.wesnoth.org/
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/var/run/wesnothd,/etc/rc.d/init.d,%{_docdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/var/run/wesnothd,/etc/rc.d/init.d} \
+ $RPM_BUILD_ROOT{/usr/lib/tmpfiles.d,%{_docdir}/%{name}-%{version}}
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%if %{with server}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wesnothd
+install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
%endif
mv -f $RPM_BUILD_ROOT%{_datadir}/locale/nb{_NO,}
%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
+/usr/lib/tmpfiles.d/%{name}.conf
%endif
%if %{with tools}