Группа :: Игры/Стратегия
Пакет: wesnoth
Главная Изменения Спек Патчи Загрузить Bugs and FR
# vim:set ft=spec:
Name: wesnoth
Version: 1.0
Release: alt0.M24.1
Group: Games/Strategy
Summary: 2D fantasy turn-based strategy
Summary(ru_RU.UTF-8): п╢п╡я┐п╪п╣я─п╫п╟я▐ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦п╩п╣ я└я█п╫я┌п╣п╥п╦
Summary(uk_UA.UTF-8): п╢п╡п╬п╡п╦п╪я√я─п╫п╟ п©п╬п╨я─п╬п╨п╬п╡п╟ я│я┌я─п╟я┌п╣пЁя√я▐ я┐ я│я┌п╦п╩я√ я└п╣п╫я┌п╣п╥я√
License: GPL
Url: http://www.wesnoth.org
Packager: Michael Shigorin <mike at altlinux.org>
#Source0: %name_%version.orig.tar.gz
Source0: %name-%version.tar.gz
Source1: wesnoth.16.png
Source2: wesnoth.32.png
Source3: wesnoth.48.png
Source4: wesnothd
Patch01: wesnoth-chown.patch
BuildRequires: gcc-c++ XFree86-devel libpng-devel freetype2-devel
BuildRequires: libSDL-devel libSDL_mixer-devel libSDL_image-devel libSDL_ttf-devel libSDL_net-devel
%description
Battle for Wesnoth is a fantasy turn-based strategy game.
Battle for control of villages, using variety of units which have
advantages and disadvantages in different types of terrains and against
different types of attacks. Units gain experience and advance levels,
and are carried over from one scenario to the next campaign.
Build a Hero, and lead your army. Different races, with distinctive
abilities, weapons and spells.
%description -l ru_RU.UTF-8
'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌' - я█я┌п╬ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦я┌п╣ я└я█п╫я┌п╣п╥п╦.
п║я─п╟п╤п╟п╧я│я▐ п╥п╟ п╨п╬п╫я┌я─п╬п╩я▄ п╫п╟п╢ п╢п╣я─п╣п╡п╫я▐п╪п╦, п╦я│п©п╬п╩я▄п╥я┐я▐ я─п╟п╥п╩п╦я┤п╫я▀п╣ п╡п╬п╧я│п╨п╟, п╨п╬я┌п╬я─я▀п╣
п╦п╪п╣я▌я┌ я│п╡п╬п╦ п©я─п╣п╦п╪я┐я┴п╣я│я┌п╡п╟ п╦ п╫п╣п╢п╬я│я┌п╟я┌п╨п╦ п╫п╟ я─п╟п╥п╫я▀я┘ я┌п╦п©п╟я┘ я┌п╣я─я─п╦я┌п╬я─п╦п╧ п╦ п©я─п╬я┌п╦п╡
я─п╟п╥п╫я▀я┘ я┌п╦п©п╬п╡ п╟я┌п╟п╨. п▓п╬п╧я│п╨п╟ п©п╬п╩я┐я┤п╟я▌я┌ п╬п©я▀я┌ п╦ п©п╬п╡я▀я┬п╟я▌я┌ я┐я─п╬п╡п╫п╦, я┌п╟п╨п╤п╣ п╬п╫п╦ п╪п╬пЁя┐я┌
п©п╣я─п╣я┘п╬п╢п╦я┌я▄ я│п╬ я│я├п╣п╫п╟я─п╦я▐ п╫п╟ я│п╩п╣п╢я┐я▌я┴п╦п╧ я│я├п╣п╫п╟я─п╦п╧ п╡ п╨п╟п╪п©п╟п╫п╦п╦.
п║п╬п╥п╢п╟п╧ п⌠п╣я─п╬я▐ п╦ п©п╬п╡п╣п╢п╦ п╡п©п╣я─я▒п╢ я│п╡п╬я▌ п╟я─п╪п╦я▌. п═п╟п╥п╩п╦я┤п╫я▀п╣ я─п╟я│я▀ я│ я─п╟п╥п╩п╦я┤п╫я▀п╪п╦
я│п©п╬я│п╬п╠п╫п╬я│я┌я▐п╪п╦, п╬я─я┐п╤п╦п╣п╪ п╦ п╥п╟п╨п╩я▐я┌п╦я▐п╪п╦.
%description -l uk_UA.UTF-8
п▒п╦я┌п╡п╟ п╥п╟ п▓п╣я│п╫п╬я┌ - п╢я┐п╤п╣ я├я√п╨п╟п╡п╟ п©п╬п╨я─п╬п╨п╬п╡п╟ я│я┌я─п╟я┌п╣пЁя√я▐ я┐ я│я┌п╦п╩я√ я└п╣п╫я┌п╣п╥я√.
%package server
Group: Games/Strategy
Summary: %name server for multiplayer games
Summary(ru_RU.UTF-8): п╡я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─
%description server
Battle for Wesnoth multiplayer network server.
%description server -l ru_RU.UTF-8
п▓я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─ 'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌'.
#%package cserver
#Group: Games/Strategy
#Summary: %name campaign server
#Summary(ru_RU.UTF-8): п╡я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─
#%description cserver
#Battle for Wesnoth campaign network daemon.
#%description cserver -l ru_RU.UTF-8
#п▓я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─ 'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌'.
%prep
%setup -q -n %name-%version
%patch01 -p1
%build
%__aclocal
%__automake
%__autoconf
%configure --datadir=%_gamesdatadir --bindir=%_gamesbindir --with-datadir-name="%name" \
--enable-server --enable-editor --enable-campaign-server --enable-tools \
--with-kde --with-gnome --disable-gnome1
%make_build
%install
%make_install install DESTDIR=%buildroot
#./utils/splittree %buildroot%_gamesdatadir/%name --zip
%__mkdir_p %buildroot%_datadir/applications
%__mv %buildroot%_gamesdatadir/applications/%name.desktop %buildroot%_datadir/applications/
#__subst "s/Categories=Application;Game;StrategyGame;/Amusement;Strategy/g" %buildroot%_datadir/applications/%name.desktop
%__mkdir_p %buildroot%_menudir
cat > %buildroot%_menudir/%name <<EOF
?package(%name): \
title="Wesnoth" \
section="Amusement/Strategy" \
command="soundwrapper %_gamesbindir/%name" \
needs="x11" \
icon="%name.png" \
longtitle="%summary"
EOF
cat > %buildroot%_menudir/%{name}_editor <<EOF
?package(%name): \
title="Wesnoth Editor" \
section="Amusement/Strategy" \
command="soundwrapper %_gamesbindir/%{name}_editor" \
needs="x11" \
icon="%name.png" \
longtitle="Battle for Wesnoth Level editor"
EOF
%__mkdir_p %buildroot/{%_miconsdir,%_liconsdir}
%__mkdir_p %buildroot%_initdir
%__install -p -m 644 %SOURCE1 %buildroot%_miconsdir/%name.png
%__install -p -m 644 %SOURCE2 %buildroot%_iconsdir/%name.png
%__install -p -m 644 %SOURCE3 %buildroot%_liconsdir/%name.png
%__install -p -m 755 %SOURCE4 %buildroot%_initdir/wesnothd
%preun server
%preun_service wesnothd
%post
%update_menus
%postun
%clean_menus
%post server
%post_service wesnothd
%postun server
[ -x %_initdir/wesnothd ] && %_initdir/wesnothd condrestart
%files
%doc README MANUAL* copyright changelog COPYING
%_datadir/applications/*
%_gamesbindir/%name
%_gamesbindir/%{name}_editor
%_menudir/*
%_miconsdir/*.png
%_iconsdir/*.png
%_liconsdir/*.png
%_gamesdatadir/icons/*.png
%_gamesdatadir/%name
%_man6dir/%name.*
%_man6dir/%{name}_editor*
#/usr/games/cutter
#/usr/games/exploder
#/usr/games/wmlxgettext
%files server
%doc README copyright COPYING
%_gamesbindir/%{name}d
%_man6dir/%{name}d.*
%config %_initdir/wesnothd
#%files cserver
#%_gamesbindir/campaignd
#%doc README copyright COPYING
%changelog
…
Полный changelog можно просмотреть здесь
Name: wesnoth
Version: 1.0
Release: alt0.M24.1
Group: Games/Strategy
Summary: 2D fantasy turn-based strategy
Summary(ru_RU.UTF-8): п╢п╡я┐п╪п╣я─п╫п╟я▐ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦п╩п╣ я└я█п╫я┌п╣п╥п╦
Summary(uk_UA.UTF-8): п╢п╡п╬п╡п╦п╪я√я─п╫п╟ п©п╬п╨я─п╬п╨п╬п╡п╟ я│я┌я─п╟я┌п╣пЁя√я▐ я┐ я│я┌п╦п╩я√ я└п╣п╫я┌п╣п╥я√
License: GPL
Url: http://www.wesnoth.org
Packager: Michael Shigorin <mike at altlinux.org>
#Source0: %name_%version.orig.tar.gz
Source0: %name-%version.tar.gz
Source1: wesnoth.16.png
Source2: wesnoth.32.png
Source3: wesnoth.48.png
Source4: wesnothd
Patch01: wesnoth-chown.patch
BuildRequires: gcc-c++ XFree86-devel libpng-devel freetype2-devel
BuildRequires: libSDL-devel libSDL_mixer-devel libSDL_image-devel libSDL_ttf-devel libSDL_net-devel
%description
Battle for Wesnoth is a fantasy turn-based strategy game.
Battle for control of villages, using variety of units which have
advantages and disadvantages in different types of terrains and against
different types of attacks. Units gain experience and advance levels,
and are carried over from one scenario to the next campaign.
Build a Hero, and lead your army. Different races, with distinctive
abilities, weapons and spells.
%description -l ru_RU.UTF-8
'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌' - я█я┌п╬ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦я┌п╣ я└я█п╫я┌п╣п╥п╦.
п║я─п╟п╤п╟п╧я│я▐ п╥п╟ п╨п╬п╫я┌я─п╬п╩я▄ п╫п╟п╢ п╢п╣я─п╣п╡п╫я▐п╪п╦, п╦я│п©п╬п╩я▄п╥я┐я▐ я─п╟п╥п╩п╦я┤п╫я▀п╣ п╡п╬п╧я│п╨п╟, п╨п╬я┌п╬я─я▀п╣
п╦п╪п╣я▌я┌ я│п╡п╬п╦ п©я─п╣п╦п╪я┐я┴п╣я│я┌п╡п╟ п╦ п╫п╣п╢п╬я│я┌п╟я┌п╨п╦ п╫п╟ я─п╟п╥п╫я▀я┘ я┌п╦п©п╟я┘ я┌п╣я─я─п╦я┌п╬я─п╦п╧ п╦ п©я─п╬я┌п╦п╡
я─п╟п╥п╫я▀я┘ я┌п╦п©п╬п╡ п╟я┌п╟п╨. п▓п╬п╧я│п╨п╟ п©п╬п╩я┐я┤п╟я▌я┌ п╬п©я▀я┌ п╦ п©п╬п╡я▀я┬п╟я▌я┌ я┐я─п╬п╡п╫п╦, я┌п╟п╨п╤п╣ п╬п╫п╦ п╪п╬пЁя┐я┌
п©п╣я─п╣я┘п╬п╢п╦я┌я▄ я│п╬ я│я├п╣п╫п╟я─п╦я▐ п╫п╟ я│п╩п╣п╢я┐я▌я┴п╦п╧ я│я├п╣п╫п╟я─п╦п╧ п╡ п╨п╟п╪п©п╟п╫п╦п╦.
п║п╬п╥п╢п╟п╧ п⌠п╣я─п╬я▐ п╦ п©п╬п╡п╣п╢п╦ п╡п©п╣я─я▒п╢ я│п╡п╬я▌ п╟я─п╪п╦я▌. п═п╟п╥п╩п╦я┤п╫я▀п╣ я─п╟я│я▀ я│ я─п╟п╥п╩п╦я┤п╫я▀п╪п╦
я│п©п╬я│п╬п╠п╫п╬я│я┌я▐п╪п╦, п╬я─я┐п╤п╦п╣п╪ п╦ п╥п╟п╨п╩я▐я┌п╦я▐п╪п╦.
%description -l uk_UA.UTF-8
п▒п╦я┌п╡п╟ п╥п╟ п▓п╣я│п╫п╬я┌ - п╢я┐п╤п╣ я├я√п╨п╟п╡п╟ п©п╬п╨я─п╬п╨п╬п╡п╟ я│я┌я─п╟я┌п╣пЁя√я▐ я┐ я│я┌п╦п╩я√ я└п╣п╫я┌п╣п╥я√.
%package server
Group: Games/Strategy
Summary: %name server for multiplayer games
Summary(ru_RU.UTF-8): п╡я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─
%description server
Battle for Wesnoth multiplayer network server.
%description server -l ru_RU.UTF-8
п▓я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─ 'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌'.
#%package cserver
#Group: Games/Strategy
#Summary: %name campaign server
#Summary(ru_RU.UTF-8): п╡я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─
#%description cserver
#Battle for Wesnoth campaign network daemon.
#%description cserver -l ru_RU.UTF-8
#п▓я▀п╢п╣п╩п╣п╫п╫я▀п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─ 'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌'.
%prep
%setup -q -n %name-%version
%patch01 -p1
%build
%__aclocal
%__automake
%__autoconf
%configure --datadir=%_gamesdatadir --bindir=%_gamesbindir --with-datadir-name="%name" \
--enable-server --enable-editor --enable-campaign-server --enable-tools \
--with-kde --with-gnome --disable-gnome1
%make_build
%install
%make_install install DESTDIR=%buildroot
#./utils/splittree %buildroot%_gamesdatadir/%name --zip
%__mkdir_p %buildroot%_datadir/applications
%__mv %buildroot%_gamesdatadir/applications/%name.desktop %buildroot%_datadir/applications/
#__subst "s/Categories=Application;Game;StrategyGame;/Amusement;Strategy/g" %buildroot%_datadir/applications/%name.desktop
%__mkdir_p %buildroot%_menudir
cat > %buildroot%_menudir/%name <<EOF
?package(%name): \
title="Wesnoth" \
section="Amusement/Strategy" \
command="soundwrapper %_gamesbindir/%name" \
needs="x11" \
icon="%name.png" \
longtitle="%summary"
EOF
cat > %buildroot%_menudir/%{name}_editor <<EOF
?package(%name): \
title="Wesnoth Editor" \
section="Amusement/Strategy" \
command="soundwrapper %_gamesbindir/%{name}_editor" \
needs="x11" \
icon="%name.png" \
longtitle="Battle for Wesnoth Level editor"
EOF
%__mkdir_p %buildroot/{%_miconsdir,%_liconsdir}
%__mkdir_p %buildroot%_initdir
%__install -p -m 644 %SOURCE1 %buildroot%_miconsdir/%name.png
%__install -p -m 644 %SOURCE2 %buildroot%_iconsdir/%name.png
%__install -p -m 644 %SOURCE3 %buildroot%_liconsdir/%name.png
%__install -p -m 755 %SOURCE4 %buildroot%_initdir/wesnothd
%preun server
%preun_service wesnothd
%post
%update_menus
%postun
%clean_menus
%post server
%post_service wesnothd
%postun server
[ -x %_initdir/wesnothd ] && %_initdir/wesnothd condrestart
%files
%doc README MANUAL* copyright changelog COPYING
%_datadir/applications/*
%_gamesbindir/%name
%_gamesbindir/%{name}_editor
%_menudir/*
%_miconsdir/*.png
%_iconsdir/*.png
%_liconsdir/*.png
%_gamesdatadir/icons/*.png
%_gamesdatadir/%name
%_man6dir/%name.*
%_man6dir/%{name}_editor*
#/usr/games/cutter
#/usr/games/exploder
#/usr/games/wmlxgettext
%files server
%doc README copyright COPYING
%_gamesbindir/%{name}d
%_man6dir/%{name}d.*
%config %_initdir/wesnothd
#%files cserver
#%_gamesbindir/campaignd
#%doc README copyright COPYING
%changelog
…
Полный changelog можно просмотреть здесь