Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37884748
en ru br
Репозитории ALT
S:1.16.7-alt2.1
5.1: 1.8.0-alt0.M51.1
4.1: 1.4.0-alt1
4.0: 1.4.5-alt0.M40.1
3.0: 1.0.1-alt1
www.altlinux.org/Changes

Группа :: Игры/Стратегия
Пакет: wesnoth

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable nls
%def_enable rpath
%def_disable debug
%def_disable profile
%def_disable tests
%def_disable static
%def_enable python
%def_enable python_install
%def_disable lite
%def_disable tinygui
%def_disable smallgui
%def_enable optipng
%def_disable lowmem
%def_enable game
%def_enable server
%def_enable compaign_server
%def_enable editor
%def_enable tools
%def_disable dummy_locales
%def_enable display_revision
%def_disable raw_sockets
%def_enable bandwidth_monitor
%def_enable desktop_entry
%def_enable sdltest
%def_with fribidi
%def_with x
#----------------------------------------------------------------------
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}

Name: wesnoth
Version: 1.8.0
Release: alt0.M51.1
Group: Games/Strategy
Summary: 2D fantasy turn-based strategy
Summary(ru_RU.UTF-8): п╢п╡я┐я┘п╪п╣я─п╫п╟я▐ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦п╩п╣ я└я█п╫я┌п╣п╥п╦
License: %gpl2plus
Url: http://www.%name.org
Source0: %name-%version.tar
Source1: %name.init
Patch1: wesnoth-1.6.5-fullscreen-alt.patch

Requires: %name-data = %version-%release
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

BuildRequires(pre): rpm-build-licenses

# Automatically added by buildreq on Thu Sep 24 2009

BuildRequires: ImageMagick-tools asciidoc boost-devel fribidi gcc-c++ hd2u imake libICE-devel libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libSDL_ttf-devel libfribidi-devel libpango-devel po4a subversion xorg-cf-files xsltproc liblua5-devel

BuildRequires: fonts-ttf-dejavu
%{?_enable_tools:BuildRequires: perl(Tie/File.pm)}
%{?_enable_optipng:BuildRequires: optipng}
%{?_enable_python:BuildRequires: python-devel}
%{?_enable_display_revision:BuildRequires: subversion}
%{?_with_fribidi:BuildRequires: fribidi libfribidi-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
'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌' я█я┌п╬ п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ п╡ я│я┌п╦я┌п╣ я└я█п╫я┌п╣п╥п╦.
п║я─п╟п╤п╟п╧я│я▐ п╥п╟ п╨п╬п╫я┌я─п╬п╩я▄ п╫п╟п╢ п╢п╣я─п╣п╡п╫я▐п╪п╦, п╦я│п©п╬п╩я▄п╥я┐я▐ я─п╟п╥п╩п╦я┤п╫я▀п╣ п╡п╬п╧я│п╨п╟,
п╨п╬я┌п╬я─я▀п╣ п╦п╪п╣я▌я┌ я│п╡п╬п╦ п©я─п╣п╦п╪я┐я┴п╣я│я┌п╡п╟ п╦ п╫п╣п╢п╬я│я┌п╟я┌п╨п╦ п╫п╟ я─п╟п╥п╫я▀я┘ я┌п╦п©п╟я┘
я┌п╣я─я─п╦я┌п╬я─п╦п╧ п╦ п©я─п╬я┌п╦п╡ я─п╟п╥п╫я▀я┘ я┌п╦п©п╬п╡ п╟я┌п╟п╨. п▓п╬п╧я│п╨п╟ п©п╬п╩я┐я┤п╟я▌я┌ п╬п©я▀я┌ п╦ п©п╬п╡я▀я┬п╟я▌я┌
я┐я─п╬п╡п╫п╦, п©п╣я─п╣п╫п╬я│п╦п╪я▀п╣ п╫п╟ я│п╩п╣п╢я┐я▌я┴п╦п╧ я│я├п╣п╫п╟я─п╦п╧ п╡ п╨п╟п╪п©п╟п╫п╦п╦.
п║п╬п╥п╢п╟п╧ п⌠п╣я─п╬я▐ п╦ п╡п╬п╥пЁп╩п╟п╡я▄ я│п╡п╬я▌ п╟я─п╪п╦я▌. п═п╟п╥п╩п╦я┤п╫я▀п╣ я─п╟я│я▀ я│ я─п╟п╥п╩п╦я┤п╫я▀п╪п╦
я│п©п╬я│п╬п╠п╫п╬я│я┌я▐п╪п╦, п╬я─я┐п╤п╦п╣п╪ п╦ п╥п╟п╨п╩п╦п╫п╟п╫п╦я▐п╪п╦.


%package data
Group: Games/Strategy
Summary: Data files to Battle for Wesnoth
BuildArch: noarch
Conflicts: %name < 1.6.5-alt1

%description data
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.
This package contains data files to Battle for Wesnoth.


%package doc
Group: Documentation
Summary: Manual to Battle for Wesnoth
Provides: %name-manual = %version-%release
BuildArch: noarch

%description doc
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.
This package contains manual to Battle for Wesnoth.


%if_enabled editor
%package editor
Group: Games/Strategy
Summary: Battle for Wesnoth map editor
#
%description editor
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.
This package contains Battle for Wesnoth map editor.
%endif


%if_enabled tools
%package tools
Group: Games/Strategy
Summary: Battle for Wesnoth tools

%description tools
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.
This package contains Battle for Wesnoth tools.
%endif


%if_enabled server
%package server
Group: Games/Strategy
Summary: %name server for multiplayer games
Summary(ru_RU.UTF-8): %name я│п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─

%description server
Battle for Wesnoth multiplayer network daemon.

%description server -l ru_RU.UTF-8
п║п╣я─п╡п╣я─ п╢п╩я▐ п╪п╫п╬пЁп╬п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▄я│п╨п╦я┘ п╦пЁя─ 'п▒п╦я┌п╡п╟ п╥п╟ п▓я█я│п╫п╬я┌'.
%endif


%if_enabled python
%package -n python-module-%name
%py_provides %name
Group: Development/Python
Summary: Python interface to Battle for Wesnoth
BuildArch: noarch

%description -n python-module-%name
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.
This package contains python interface to Battle for Wesnoth.
%endif

%prep
%setup
%patch1 -p2
%autoreconf

%build
%define _optlevel 3

export PYTHON_PREFIX=/usr
export PYTHON_VERSION=%__python_version
%configure \
   --disable-option-checking \
   --with-gnu-ld \
   %{subst_enable nls} \
   %{subst_enable rpath} \
   %{subst_enable debug} \
   %{subst_enable profile} \
   %{subst_enable tests} \
   %{subst_enable static} \
   %{subst_enable python} \
   %{subst_enable_to python_install python-install} \
   %{subst_enable lite} \
   %{subst_enable tinygui} \
   %{subst_enable smallgui} \
   %{subst_enable optipng} \
   %{subst_enable lowmem} \
   %{subst_enable game} \
   %{subst_enable server} \
   %{subst_enable_to compaign_server compaign-server} \
   %{subst_enable editor} \
   %{subst_enable tools} \
   %{subst_enable_to dummy_locales dummy-locales} \
   %{subst_enable_to display_revision display-revision} \
   %{subst_enable_to raw_sockets raw-sockets} \
   %{subst_enable_to bandwidth_monitor bandwidth-monitor} \
   %{subst_enable_to desktop_entry desktop-entry} \
   %{subst_enable sdltest} \
   %{subst_with fribidi} \
   %{subst_with x}
%make_build
for s in 96 72 48 36 32 24 22 16; do
   convert -depth 8 -resize ${s}x$s icons/%name-{icon-Mac,$s}.png
   convert -depth 8 -resize ${s}x$s icons/{map-editor-icon-Mac,%{name}_editor-$s}.png
done
bzip2 --keep --best --force changelog



%install
%make_install \
   DESTDIR=%buildroot \
   docdir=%_docdir/%name-%version \
   appentrydir=%_desktopdir \
   install
install -d -m 0755 %buildroot%_sbindir
mv %buildroot{%_bindir,%_sbindir}/%{name}d
%if_enabled tests
mv %buildroot%_bindir/{,%name-}test
%endif
install -m 0644 README copyright changelog.* %buildroot%_docdir/%name-%version/
install -d -m 0755 %buildroot%_iconsdir/hicolor/64x64/apps
mv %buildroot{%_datadir/icons/%name-icon,%_iconsdir/hicolor/64x64/apps/%name}.png
mv %buildroot{%_datadir/icons/%{name}_editor-icon,%_iconsdir/hicolor/64x64/apps/%{name}_editor}.png
install -D -m 0644 {icons/%name-icon-Mac,%buildroot%_iconsdir/hicolor/128x128/apps/%name}.png
install -D -m 0644 {icons/map-editor-icon-Mac,%buildroot%_iconsdir/hicolor/128x128/apps/%{name}_editor}.png
for s in 96 72 48 36 32 24 22 16; do
   install -D -m 0644 {icons/%name-$s,%buildroot%_iconsdir/hicolor/${s}x$s/apps/%name}.png
   install -D -m 0644 {icons/%name-$s,%buildroot%_iconsdir/hicolor/${s}x$s/apps/%{name}_editor}.png
done
install -D -m 0755 %SOURCE1 %buildroot%_initdir/%{name}d

%find_lang --with-man %name
%find_lang --with-man %{name}_editor
%find_lang --with-man %{name}d

for d in %buildroot%_datadir/%name/translations/*; do
   l=$(basename "$d")
   c=${l:0:2}
   echo "%%lang($c) %%dir %_datadir/%name/translations/$l" >> %name.lang
   echo "%%lang($c) %%dir %_datadir/%name/translations/$l/LC_MESSAGES" >> %name.lang
   [ -f $d/LC_MESSAGES/%name.mo ] && echo "%%lang($c) %_datadir/%name/translations/$l/LC_MESSAGES/%name.mo" >> %name.lang
   for i in anl aoi did dm ei httt l lib low multiplayer nr sof sotbe tb test thot trow tsg tutorial units utbs; do
[ -f $d/LC_MESSAGES/%name-$i.mo ] && echo "%%lang($c) %_datadir/%name/translations/$l/LC_MESSAGES/%name-$i.mo" >> %name.lang
   done
   if [ -f $d/LC_MESSAGES/%name-editor.mo ]; then
echo "%%lang($c) %%dir %_datadir/%name/translations/$l" >> %{name}_editor.lang
echo "%%lang($c) %%dir %_datadir/%name/translations/$l/LC_MESSAGES" >> %{name}_editor.lang
echo "%%lang($c) %_datadir/%name/translations/$l/LC_MESSAGES/%name-editor.mo" >> %{name}_editor.lang
   fi
done
for f in %buildroot%_datadir/%name/data/languages/*_*.cfg; do
   l=$(basename "$f")
   echo "%%lang(${l:0:2}) %_datadir/%name/data/languages/$l" >> %name.lang
done

rm -rf %buildroot%_datadir/%name/icons
rm -f %buildroot%_datadir/%name/{{,data/}COPYING.txt,fonts/DejaVuSans.ttf}
ln -s %_datadir/fonts/ttf/dejavu/DejaVuSans.ttf %buildroot%_datadir/%name/fonts/


%if_enabled server
%preun server
%preun_service %{name}d

%post server
%post_service %{name}d
%endif

%files
%_bindir/%name
%_bindir/wesnoth_addon_manager

%files data -f %name.lang
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name.png
%dir %_docdir/%name-%version
%doc %_docdir/%name-%version/README
%doc %_docdir/%name-%version/copyright
%doc %_docdir/%name-%version/changelog.*
%dir %_datadir/%name
%_datadir/%name/fonts
%_datadir/%name/images
%_datadir/%name/sounds
%dir %_datadir/%name/translations
%dir %_datadir/%name/data
%_datadir/%name/data/_main.cfg
%_datadir/%name/data/ai/
%_datadir/%name/data/campaigns
%_datadir/%name/data/core
%_datadir/%name/data/gui/
%_datadir/%name/data/hardwired
%_datadir/%name/data/multiplayer
%_datadir/%name/data/themes
%_datadir/%name/data/lua
%_datadir/%name/data/test
%_datadir/%name/data/*.cfg
%dir %_datadir/%name/data/languages
%_datadir/%name/data/languages/C.cfg

%files doc
%dir %_docdir/%name-%version
%doc %_docdir/%name-%version/manual


%if_enabled editor
%files editor -f %{name}_editor.lang
%_desktopdir/%{name}_editor.desktop
%_iconsdir/hicolor/*/apps/%{name}_editor.png
%endif


%if_enabled tools
%files tools
%_bindir/cutter
%_bindir/exploder
%dir %_datadir/%name
%dir %_datadir/%name/data
%_datadir/%name/data/tools
%{?_enable_tests:%_bindir/%name-test}
%{?_enable_python:%_bindir/wml*}
%endif


%if_enabled server
%files server -f %{name}d.lang
%_sbindir/*
%_initdir/*
%endif


%if_enabled python
%files -n python-module-%name
%_libexecdir/python%__python_version/site-packages/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin