Пакет tatham-puzzles: Specfile

Name:		tatham-puzzles
Version:	8690
Release:	alt1
License:	MIT
Group:		Games/Puzzles
URL:		http://www.chiark.greenend.org.uk/~sgtatham/puzzles/
Source:		http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r%version.tar.gz
Source1:	%name.patchmakefile.sed
# See Makefile for obtaining wget command
Source2:	www.chiark.greenend.org.uk.tar
Source3:	%name.sh
Packager:	Fr. Br. George <george@altlinux.ru>

Summary:	A collection of small one-player puzzle games
Summary(ru_RU.KOI8-R): \xeb\xcf\xcc\xcc\xc5\xcb\xc3\xc9\xd1 \xce\xc5\xc2\xcf\xcc\xd8\xdb\xc9\xc8 \xcc\xcf\xc7\xc9\xde\xc5\xd3\xcb\xc9\xc8 \xc7\xcf\xcc\xcf\xd7\xcf\xcc\xcf\xcd\xcf\xcb

# Automatically added by buildreq on Sun Oct 11 2009
BuildRequires: ImageMagick-tools fonts-type1-urw libgtk+2-devel tightvnc-server xauth

%description
A collection of 23 little puzzle games you can pop up in a window and play for two or three minutes while you take a break from whatever else you were doing.
Their names: Black Box, Bridges, Cube, Dominosa, Fifteen, Flip, Guess, Inertia, Light Up, Loopy, Map, Mines, Net, Netslide, Pattern, Pegs, Rectangles, Same Game, Sixteen, Slant, Solo, Tents, Twiddle, Untangle. Rules, descriptions and tips can be found in documentation.

%description -l ru_RU.KOI8-R
\xeb\xcf\xcc\xcc\xc5\xcb\xc3\xc9\xd1 \xc9\xda 23 \xce\xc5\xc2\xcf\xcc\xd8\xdb\xc9\xc8 \xcc\xcf\xc7\xc9\xde\xc5\xd3\xcb\xc9\xc8 \xc7\xcf\xcc\xcf\xd7\xcf\xcc\xcf\xcd\xcf\xcb \xcb\xcc\xc1\xd3\xd3\xc1 "\xcf\xd4\xcb\xd2\xcf\xca \xd7 \xcf\xcb\xcf\xdb\xcb\xc5, \xd0\xcf\xd4\xd9\xcb\xc1\xca \xd0\xd1\xd4\xd8 \xcd\xc9\xce\xd5\xd4 -- \xcf\xd4\xc4\xcf\xc8\xce\xc9"; \xd3\xcc\xcf\xd6\xce\xcf\xd3\xd4\xd8 \xcd\xcf\xd6\xce\xcf \xce\xc1\xd3\xd4\xd2\xcf\xc9\xd4\xd8.
\xee\xc1\xda\xd7\xc1\xce\xc9\xd1 \xc7\xcf\xcc\xcf\xd7\xcf\xcc\xcf\xcd\xcf\xcb: Black Box, Bridges, Cube, Dominosa, Fifteen, Flip, Guess, Inertia, Light Up, Loopy, Map, Mines, Net, Netslide, Pattern, Pegs, Rectangles, Same Game, Sixteen, Slant, Solo, Tents, Twiddle, Untangle. \xef\xd0\xc9\xd3\xc1\xce\xc9\xd1, \xd0\xd2\xc1\xd7\xc9\xcc\xc1 \xc9 \xd0\xcf\xc4\xd3\xcb\xc1\xda\xcb\xc9 -- \xd7 \xc4\xcf\xcb\xd5\xcd\xc5\xd4\xc1\xc3\xc9\xc9.

%package -n %name-solvers
Summary: Stand-alone solvers for some of the %name puzzles
Summary(ru_RU.KOI8-R): \xee\xc1\xc2\xcf\xd2 "\xd2\xc5\xdb\xc1\xcc\xcf\xcb" \xcb \xce\xc5\xcb\xcf\xd4\xcf\xd2\xd9\xcd \xc7\xcf\xcc\xcf\xd7\xcf\xcc\xcf\xcd\xcb\xc1\xcd \xc9\xda %name
Group:		Games/Puzzles

%description -n %name-solvers
Stand-alone solvers for some of the %name puzzles.

%description -l ru_RU.KOI8-R -n %name-solvers
\xee\xc1\xc2\xcf\xd2 "\xd2\xc5\xdb\xc1\xcc\xcf\xcb" \xcb \xce\xc5\xcb\xcf\xd4\xcf\xd2\xd9\xcd \xc7\xcf\xcc\xcf\xd7\xcf\xcc\xcf\xcd\xcb\xc1\xcd \xc9\xda %name.

%prep
%setup -n puzzles-r%version
./mkfiles.pl
sed -f %SOURCE1 < Makefile > Makefile.linux
tar xf %SOURCE2
sed '/^IN=/s@.*@IN="%_defaultdocdir/%name-%version/index.html"@
/^GBD=/s@.*@GBD="%_gamesbindir"@' < %SOURCE3 > %name

%build
%make_build -f Makefile.linux

{ echo qwerty; echo qwerty; } | vncpasswd
export DISPLAY=`vncserver 2>&1 | sed -n "/^New/s/.*\(:[0-9]*\).*/\1/p"`
( cd icons
make
%make_build web pngicons
)
vncserver -kill "$DISPLAY"
sh %SOURCE3 desktop

%install
mkdir -p %buildroot/%_gamesbindir %buildroot%_desktopdir %buildroot%_miconsdir %buildroot%_liconsdir %buildroot%_niconsdir %buildroot%_pixmapsdir/%name
%makeinstall -f Makefile.linux
install -s *solver %buildroot/%_gamesbindir/
install -m 755 %name %buildroot/%_gamesbindir/
install *.desktop %buildroot%_desktopdir/
install icons/*16d24.png %buildroot%_miconsdir/
install icons/*32d24.png %buildroot%_niconsdir/
install icons/*48d24.png %buildroot%_liconsdir/
install icons/*-*e*.png %buildroot%_pixmapsdir/%name/

%files -n %name-solvers
%_gamesbindir/*solver

%files
%doc README *.txt www.chiark.greenend.org.uk/~sgtatham/puzzles/*
%exclude %_gamesbindir/*solver
%_gamesbindir/*
%_desktopdir/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%dir %_pixmapsdir/%name
%_pixmapsdir/%name/*

%changelog
* Mon Oct 12 2009 Fr. Br. George <george@altlinux.ru> 8690-alt1
- Version up
+ Desktop files

* Sun Oct 11 2009 Fr. Br. George <george@altlinux.ru> 8686-alt2
- Documentation added
- Simple start script provided

* Fri Oct 09 2009 Fr. Br. George <george@altlinux.ru> 8686-alt1
- Version up

* Sat Nov 18 2006 Fr. Br. George <george@altlinux.ru> 6907-alt1
- Initial ALT build