Репозиторий Sisyphus
Последнее обновление: 23 мая 2019 | Пакетов: 17691 | Посещений: 13580219
en ru br
Репозитории ALT
S:0.11.6-alt1
5.1: 0.7.4-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:0.7.3

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

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

Name: freecol
Version: 0.11.6
Release: alt1
Summary: FreeCol is opensource Colonization clone.
Url: http://freecol.org
Group: Games/Strategy
License: GPL3
BuildArch: noarch

Source: %name-%version-%release.tar
Source1: %name.desktop
Source2: %name.xpm

Patch1: %name-%version-fedora-source-encoding.patch

BuildRequires: rpm-build-java
BuildRequires: ant ant-nodeps
BuildRequires: subversion
BuildRequires: java-devel junit

Requires: java

%description
FreeCol is a turn-based strategy game based on the old game Colonization and similar to Civilization.
The objective of the game is to create an independent nation.


%prep
%setup -q -n %name-%version
%patch1 -p1


%build
export CLASSPATH=$(build-classpath junit)
%ant

%install
mkdir -p %buildroot%_bindir \
%buildroot%_gamesdatadir/%name/jars/ \
%buildroot%_gamesdatadir/%name/data/{audio,fonts,images,maps,strings} \
%buildroot%_gamesdatadir/%name/data/audio/sfx \
%buildroot%_gamesdatadir/%name/data/images/{bonus,colonies,forest,good,indians,misc,monarch,order-buttons,river,terrain,ui,units} \
%buildroot%_gamesdatadir/%name/data/images/order-buttons/{order-buttons00,order-buttons01,order-buttons02,order-buttons03} \
%buildroot%_gamesdatadir/%name/data/images/terrain/{terrain00,terrain01,terrain02,terrain03,terrain04,terrain05,terrain06,terrain07,terrain08,terrain09,terrain10,terrain11,terrain12,terrain13,terrain14,terrain15} \
%buildroot%_desktopdir \
%buildroot%_niconsdir

install -p FreeCol.jar %buildroot%_gamesdatadir/%name/FreeCol.jar
install -p jars/*.jar %buildroot%_gamesdatadir/%name/jars/
cp -pr data/ %buildroot%_gamesdatadir/%name/

cat > %buildroot%_bindir/%name <<EOF
pushd %_gamesdatadir/%name >/dev/null 2>&1
/usr/bin/java -Xmx256M -jar %_gamesdatadir/%name/FreeCol.jar $1 $2 $3 $4 $5 $6 $7 $8 $9
popd >/dev/null 2>&1
EOF


chmod +x %buildroot%_bindir/%name
install -p %SOURCE1 %buildroot%_desktopdir/%name.desktop
install -p %SOURCE2 %buildroot%_niconsdir/%name.xpm


%files
%_bindir/%name
%_gamesdatadir/%{name}*
%_desktopdir/%name.desktop
%_niconsdir/%name.xpm

%changelog

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

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