Репозиторий Sisyphus
Последнее обновление: 16 апреля 2021 | Пакетов: 17844 | Посещений: 20735028
en ru br
Репозитории ALT
S:14.7-alt1.svn9619
5.1: 13.6-alt1.svn7713
4.1: 12.4-alt1.svn6075
4.0: 11.0-alt1.svn3836
www.altlinux.org/Changes

Группа :: Игры/Приключения
Пакет: KoLmafia

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

Name: KoLmafia
Version: 14.7
Release: alt1.svn9619
Url: http://kolmafia.sf.net
Group: Games/Adventure
License: BSD
Source: http://puzzle.dl.sourceforge.net/sourceforge/kolmafia/%name-%version.tar.gz
Source1: %name.desktop
Source2: %{name}_32.png

Packager: Damir Shayhutdinov <damir at altlinux.ru>
BuildPreReq: ant
BuildRequires(pre): java-devel-default rpm-build-java

Patch0: KoLmafia-11.9-alt-launch-browser.patch
Patch1: KoLmafia-%version-alt-equipment-fixes.patch
Patch2: KoLmafia-%version-alt-pvp-fixes.patch
Patch4: KoLmafia-%version-alt-monsters-info.patch
Patch5: KoLmafia-%version-alt-badmoon-fixes.patch
Patch7: KoLmafia-%version-alt-ui-fixes.patch
Patch8: KoLmafia-%version-alt-llama-gong.patch

Requires: java java-common

Summary: KoL online game client
BuildArch: noarch
%description
KoLmafia is a cross-platform desktop tool, written in Java (J2SE 1.4 compliant),
which interfaces with the online adventure game, Kingdom of Loathing.
See http://www.kingdomofloathing.com and http://kolmafia.sf.net for details.

%prep
%setup -c
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%patch7 -p1
%patch8 -p1

REVISION=`echo "%release" | sed 's at alt.*svn at  at '`
sed -i "s at name=\"revision\" value=\"0\" at name=\"revision\" value=\"$REVISION\" at " build.xml

%build
mkdir dist
ant

%install
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_javadir
mkdir -p %buildroot%_desktopdir
mkdir -p %buildroot%_niconsdir

cp dist/%name-%version.jar %buildroot%_javadir/%name-%version.jar
ln -sf %name-%version.jar %buildroot%_javadir/%name.jar
cat > %buildroot%_bindir/%name <<EOF
#!/bin/sh
mkdir -p \$HOME/.KoLmafia
pushd \$HOME/.KoLmafia >/dev/null 2>&1
java "-DBROWSER=\$BROWSER" -jar %_javadir/KoLmafia.jar "\$ at "
popd >/dev/null 2>&1
EOF
chmod +x %buildroot%_bindir/%name
cp %SOURCE1 %buildroot%_desktopdir/%name.desktop
cp %SOURCE2 %buildroot%_niconsdir/%name.png

%files
%_bindir/%name
%_javadir/%name.jar
%_javadir/%name-%version.jar
%_desktopdir/%name.desktop
%_niconsdir/%name.png


%changelog

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

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