Группа :: Игры/Прочее
Пакет: krank
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: krank
Version: 07
Release: alt1
License: GPL
Source: %name-%version.tar.bz2
Source1: %name.png
Source2: %name.desktop.in
Summary: Mouse magnet manipulation game with nifty graphics
Group: Games/Other
Buildarch: noarch
Packager: Fr. Br. George <george at altlinux.ru>
# Automatically added by buildreq on Mon Jan 05 2009
BuildRequires: ImageMagick-tools
%description
the snake follows your mouse or the analog stick of your joypad.
the balls move if you touch them with the snake or another ball.
the links are like balls, but they bond together if they touch each other.
the stones never move and do nothing else.
the magnets, unmovable themselves, attract everything that moves. the number of circles rotating around them indicates how many items may get captured in them.
the anchors never move, but bond together with links. the number of circles rotating around them indicates how many links may bond with them.
the aim of each level is to remove all anchors and magnets.
%prep
%setup
%build
rm src/*.pyc
sed -i '/KRANKPATH=/s at =.* at =%_gamesdatadir/%name at ' %name
sed -i '/^python/i\
export APPDATA="$HOME/.krank"\
mkdir -p "$APPDATA"\
cd $KRANKPATH
' %name
sed -i 's/ at Summary at /%summary/g' %SOURCE2 |
sed -i 's/ at Name at /%name/g' %SOURCE2 > %name.desktop
for N in 16 24 32 64 128; do convert %SOURCE1 -resize ${N}x${N} $N.png; done
%install
mkdir -p %buildroot/%_gamesdatadir/%name
for D in fonts html levels sounds src; do cp -a $D %buildroot/%_gamesdatadir/%name/; done
install -D %name %buildroot/%_gamesbindir/%name
install -D %name.desktop %buildroot/%_desktopdir/%name.desktop
install -D 16.png %buildroot%_miconsdir/%name.png
install -D 24.png %buildroot%_niconsdir/%name.png
install -D 32.png %buildroot%_liconsdir/%name.png
install -D 64.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png
install -D 128.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png
%files
%doc CHANGELOG.txt Info.plist README
%dir %_gamesdatadir/%name
%_gamesdatadir/%name/*
%_gamesbindir/%name
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name.png
%changelog
…
Полный changelog можно просмотреть здесь
Version: 07
Release: alt1
License: GPL
Source: %name-%version.tar.bz2
Source1: %name.png
Source2: %name.desktop.in
Summary: Mouse magnet manipulation game with nifty graphics
Group: Games/Other
Buildarch: noarch
Packager: Fr. Br. George <george at altlinux.ru>
# Automatically added by buildreq on Mon Jan 05 2009
BuildRequires: ImageMagick-tools
%description
the snake follows your mouse or the analog stick of your joypad.
the balls move if you touch them with the snake or another ball.
the links are like balls, but they bond together if they touch each other.
the stones never move and do nothing else.
the magnets, unmovable themselves, attract everything that moves. the number of circles rotating around them indicates how many items may get captured in them.
the anchors never move, but bond together with links. the number of circles rotating around them indicates how many links may bond with them.
the aim of each level is to remove all anchors and magnets.
%prep
%setup
%build
rm src/*.pyc
sed -i '/KRANKPATH=/s at =.* at =%_gamesdatadir/%name at ' %name
sed -i '/^python/i\
export APPDATA="$HOME/.krank"\
mkdir -p "$APPDATA"\
cd $KRANKPATH
' %name
sed -i 's/ at Summary at /%summary/g' %SOURCE2 |
sed -i 's/ at Name at /%name/g' %SOURCE2 > %name.desktop
for N in 16 24 32 64 128; do convert %SOURCE1 -resize ${N}x${N} $N.png; done
%install
mkdir -p %buildroot/%_gamesdatadir/%name
for D in fonts html levels sounds src; do cp -a $D %buildroot/%_gamesdatadir/%name/; done
install -D %name %buildroot/%_gamesbindir/%name
install -D %name.desktop %buildroot/%_desktopdir/%name.desktop
install -D 16.png %buildroot%_miconsdir/%name.png
install -D 24.png %buildroot%_niconsdir/%name.png
install -D 32.png %buildroot%_liconsdir/%name.png
install -D 64.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png
install -D 128.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png
%files
%doc CHANGELOG.txt Info.plist README
%dir %_gamesdatadir/%name
%_gamesdatadir/%name/*
%_gamesbindir/%name
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name.png
%changelog
…
Полный changelog можно просмотреть здесь