Группа :: Игры/Головоломки
Пакет: einstein
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# this is not a relocatable package.
Name: einstein
Version: 2.0
Release: alt8
Summary: Open source remake of old DOS game Sherlock which was inspired by Albert Einstein's puzzle.
License: GPL
Group: Games/Puzzles
Url: http://www.babichev.info/ru/projects/einstein/
Source: http://www.babichev.info/files/einstein/%name-%version-src.tar.gz
Source1: %name-1.0-html-pages.tgz
Source2: %name-wrapper
Source3: icon.bmp
Source4: einstein.desktop
Source5: einstein.png
# how to get Source1
# wget -r -l1 -np -nH http://www.babichev.info/en/projects/einstein/index.html --cut-dirs=2
# wget http://www.babichev.info/ru/projects/einstein/index.html -O einstein/index.ru.html
# Ugh-ogh, upstream is dead (was moved here and vanished):
# http://games.flowix.com
#Patch: einstein-optimize.patch
Patch1: einstein-math_h.patch
Patch2: einstein-Makefile.patch
Patch3: einstein-formatter_cpp.patch
Patch4: einstein-2.0-deb-icon_change.patch
Patch5: einstein-2.0-deb-font_change.patch
Patch6: einstein-2.0-deb-random_init.patch
Patch7: einstein-2.0-alt-rules_clarification.patch
Patch8: einstein-2.0-alt-fix_mkres_link.patch
Patch9: einstein-2.0-alt-translation_fix.patch
Patch10: einstein-2.0-gcc43.patch
Packager: Fr. Br. George <george at altlinux.ru>
Summary(ru_RU.UTF-8): п⌡п╬пЁп╦я┤п╣я│п╨п╟я▐ пЁп╬п╩п╬п╡п╬п╩п╬п╪п╨п╟, п╫п╟п©п╦я│п╟п╫п╫п╟я▐ п©п╬ п╪п╬я┌п╦п╡п╟п╪ я│я┌п╟я─п╬п╧ п╦пЁя─я▀ Sherlock, п╨п╬я┌п╬я─п╟я▐ п╡ я│п╡п╬я▌ п╬я┤п╣я─п╣п╢я▄ п╠я▀п╩п╟ п╫п╟п©п╦я│п╟п╫п╟ п©п╬ п╪п╬я┌п╦п╡п╟п╪ п╥п╟п╢п╟я┤п╦ п╜п╧п╫я┬я┌п╣п╧п╫п╟
# Automatically added by buildreq on Tue Apr 05 2011
# optimized out: libSDL-devel libstdc++-devel
BuildRequires: fonts-ttf-dejavu gcc-c++ libSDL_mixer-devel libSDL_ttf-devel libfreetype-devel makedepend zlib-devel
%description
Einstein puzzle is cross-platform open source remake of old DOS game Sherlock
which was inspired by Albert Einstein's puzzle. Einstein said that only those
with an intelligence quotient of 97 percentile and higher should be able to
solve it.
The game goal is to open all cards in square of 6x6 cards.
Every row of square contains cards of one type only. For example, first row
contains arabic digits, second - letters, third - rome digits, fouths - dices,
fifth - geometric figures, sixs - mathematic symbols.
%description -l ru_RU.UTF-8
Einstein - я█я┌п╬ п╩п╬пЁп╦я┤п╣я│п╨п╟я▐ пЁп╬п╩п╬п╡п╬п╩п╬п╪п╨п╟, п╫п╟п©п╦я│п╟п╫п╫п╟я▐ п©п╬ п╪п╬я┌п╦п╡п╟п╪ я│я┌п╟я─п╬п╧ п╦пЁя─я▀
Sherlock, п╨п╬я┌п╬я─п╟я▐ п╡ я│п╡п╬я▌ п╬я┤п╣я─п╣п╢я▄ п╠я▀п╩п╟ п╫п╟п©п╦я│п╟п╫п╟ п©п╬ п╪п╬я┌п╦п╡п╟п╪ п╥п╟п╢п╟я┤п╦ п╜п╧п╫я┬я┌п╣п╧п╫п╟.
п╜п╧п╫я┬я┌п╣п╧п╫ я┐я┌п╡п╣я─п╤п╢п╟п╩, я┤я┌п╬ п╢п╩я▐ п╣я▒ я─п╣я┬п╣п╫п╦я▐ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╬п╠п╩п╟п╢п╟я┌я▄ IQ п╫п╣ п╪п╣п╫п╣п╣ 97
п©я─п╬я├п╣п╫я┌п╬п╡.
п÷я─п╟п╡п╦п╩п╟ п╦пЁя─я▀ п╬я┤п╣п╫я▄ п©я─п╬я│я┌я▀п╣: п╫п╟п╢п╬ п╬я┌п╨я─я▀я┌я▄ п╡я│п╣ я└п╦я┬п╨п╦ п╡ п╨п╡п╟п╢я─п╟я┌п╣ 6x6 я└п╦я┬п╣п╨.
п▓ п╨п╟п╤п╢п╬п╧ я│я┌я─п╬п╨п╣ п╨п╡п╟п╢я─п╟я┌п╟ п╫п╟я┘п╬п╢я▐я┌я│я▐ я└п╦я┬п╨п╦ п╬п╢п╫п╬пЁп╬ я┌п╦п©п╟. п²п╟п©я─п╦п╪п╣я─, п╡ п©п╣я─п╡п╬п╧ я│я┌я─п╬п╨п╣
п╨п╡п╟п╢я─п╟я┌п╟ п╫п╟я┘п╬п╢я▐я┌я│я▐ п╟я─п╟п╠я│п╨п╦п╣ я├п╦я└я─я▀, п╡п╬ п╡я┌п╬я─п╬п╧ - п╩п╟я┌п╦п╫я│п╨п╦п╣ п╠я┐п╨п╡я▀, п╡ я┌я─п╣я┌я▄п╣п╧ -
я─п╦п╪я│п╨п╦п╣ я├п╦я└я─я▀, п╡ я┤п╣я┌п╡п╣я─я┌п╬п╧ - п╦пЁя─п╟п╩я▄п╫я▀п╣ п╨п╬я│я┌п╦, п╡ п©я▐я┌п╬п╧ - пЁп╣п╬п╪п╣я┌я─п╦я┤п╣я│п╨п╦п╣ я└п╦пЁя┐я─я▀,
п╡ я┬п╣я│я┌п╬п╧ - п╪п╟я┌п╣п╪п╟я┌п╦я┤п╣я│п╨п╦п╣ я│п╦п╪п╡п╬п╩я▀.
%prep
%setup
%setup -T -D -a 1
install %SOURCE3 res/
mv %name doc
#patch
%patch1
%patch2
%patch3 -p2
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
cp -a /usr/share/fonts/ttf/dejavu/DejaVuSans.ttf res/
%ifarch %e2k
sed -i 's,-O6,-O%_optlevel,' mkres/Makefile
%endif
%build
%make depend
%make_build -C mkres
pushd res &&
../mkres/mkres --source resources.descr --output ../einstein.res &&
popd
%make_build PREFIX=/usr
%install
mkdir -p %buildroot%_bindir
mkdir -p %buildroot/%_datadir/%name/res
%makeinstall PREFIX=%buildroot%_usr
mv %buildroot%_bindir/%name %buildroot%_bindir/%name.bin
install -p %SOURCE2 %buildroot%_bindir/%name
chmod 755 %buildroot%_bindir/%name
mkdir -p %buildroot/%_defaultdocdir/%name-%version
#install doc/* %%buildroot/%_defaultdocdir/%name-%version
install -pDm644 %SOURCE4 %buildroot%_desktopdir/%name.desktop
install -pDm644 %SOURCE5 %buildroot%_niconsdir/%name.png
%files
%_bindir/*
%doc doc/*
%_datadir/%name/
%_desktopdir/*
%_niconsdir/*
%changelog
…
Полный changelog можно просмотреть здесь
Name: einstein
Version: 2.0
Release: alt8
Summary: Open source remake of old DOS game Sherlock which was inspired by Albert Einstein's puzzle.
License: GPL
Group: Games/Puzzles
Url: http://www.babichev.info/ru/projects/einstein/
Source: http://www.babichev.info/files/einstein/%name-%version-src.tar.gz
Source1: %name-1.0-html-pages.tgz
Source2: %name-wrapper
Source3: icon.bmp
Source4: einstein.desktop
Source5: einstein.png
# how to get Source1
# wget -r -l1 -np -nH http://www.babichev.info/en/projects/einstein/index.html --cut-dirs=2
# wget http://www.babichev.info/ru/projects/einstein/index.html -O einstein/index.ru.html
# Ugh-ogh, upstream is dead (was moved here and vanished):
# http://games.flowix.com
#Patch: einstein-optimize.patch
Patch1: einstein-math_h.patch
Patch2: einstein-Makefile.patch
Patch3: einstein-formatter_cpp.patch
Patch4: einstein-2.0-deb-icon_change.patch
Patch5: einstein-2.0-deb-font_change.patch
Patch6: einstein-2.0-deb-random_init.patch
Patch7: einstein-2.0-alt-rules_clarification.patch
Patch8: einstein-2.0-alt-fix_mkres_link.patch
Patch9: einstein-2.0-alt-translation_fix.patch
Patch10: einstein-2.0-gcc43.patch
Packager: Fr. Br. George <george at altlinux.ru>
Summary(ru_RU.UTF-8): п⌡п╬пЁп╦я┤п╣я│п╨п╟я▐ пЁп╬п╩п╬п╡п╬п╩п╬п╪п╨п╟, п╫п╟п©п╦я│п╟п╫п╫п╟я▐ п©п╬ п╪п╬я┌п╦п╡п╟п╪ я│я┌п╟я─п╬п╧ п╦пЁя─я▀ Sherlock, п╨п╬я┌п╬я─п╟я▐ п╡ я│п╡п╬я▌ п╬я┤п╣я─п╣п╢я▄ п╠я▀п╩п╟ п╫п╟п©п╦я│п╟п╫п╟ п©п╬ п╪п╬я┌п╦п╡п╟п╪ п╥п╟п╢п╟я┤п╦ п╜п╧п╫я┬я┌п╣п╧п╫п╟
# Automatically added by buildreq on Tue Apr 05 2011
# optimized out: libSDL-devel libstdc++-devel
BuildRequires: fonts-ttf-dejavu gcc-c++ libSDL_mixer-devel libSDL_ttf-devel libfreetype-devel makedepend zlib-devel
%description
Einstein puzzle is cross-platform open source remake of old DOS game Sherlock
which was inspired by Albert Einstein's puzzle. Einstein said that only those
with an intelligence quotient of 97 percentile and higher should be able to
solve it.
The game goal is to open all cards in square of 6x6 cards.
Every row of square contains cards of one type only. For example, first row
contains arabic digits, second - letters, third - rome digits, fouths - dices,
fifth - geometric figures, sixs - mathematic symbols.
%description -l ru_RU.UTF-8
Einstein - я█я┌п╬ п╩п╬пЁп╦я┤п╣я│п╨п╟я▐ пЁп╬п╩п╬п╡п╬п╩п╬п╪п╨п╟, п╫п╟п©п╦я│п╟п╫п╫п╟я▐ п©п╬ п╪п╬я┌п╦п╡п╟п╪ я│я┌п╟я─п╬п╧ п╦пЁя─я▀
Sherlock, п╨п╬я┌п╬я─п╟я▐ п╡ я│п╡п╬я▌ п╬я┤п╣я─п╣п╢я▄ п╠я▀п╩п╟ п╫п╟п©п╦я│п╟п╫п╟ п©п╬ п╪п╬я┌п╦п╡п╟п╪ п╥п╟п╢п╟я┤п╦ п╜п╧п╫я┬я┌п╣п╧п╫п╟.
п╜п╧п╫я┬я┌п╣п╧п╫ я┐я┌п╡п╣я─п╤п╢п╟п╩, я┤я┌п╬ п╢п╩я▐ п╣я▒ я─п╣я┬п╣п╫п╦я▐ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╬п╠п╩п╟п╢п╟я┌я▄ IQ п╫п╣ п╪п╣п╫п╣п╣ 97
п©я─п╬я├п╣п╫я┌п╬п╡.
п÷я─п╟п╡п╦п╩п╟ п╦пЁя─я▀ п╬я┤п╣п╫я▄ п©я─п╬я│я┌я▀п╣: п╫п╟п╢п╬ п╬я┌п╨я─я▀я┌я▄ п╡я│п╣ я└п╦я┬п╨п╦ п╡ п╨п╡п╟п╢я─п╟я┌п╣ 6x6 я└п╦я┬п╣п╨.
п▓ п╨п╟п╤п╢п╬п╧ я│я┌я─п╬п╨п╣ п╨п╡п╟п╢я─п╟я┌п╟ п╫п╟я┘п╬п╢я▐я┌я│я▐ я└п╦я┬п╨п╦ п╬п╢п╫п╬пЁп╬ я┌п╦п©п╟. п²п╟п©я─п╦п╪п╣я─, п╡ п©п╣я─п╡п╬п╧ я│я┌я─п╬п╨п╣
п╨п╡п╟п╢я─п╟я┌п╟ п╫п╟я┘п╬п╢я▐я┌я│я▐ п╟я─п╟п╠я│п╨п╦п╣ я├п╦я└я─я▀, п╡п╬ п╡я┌п╬я─п╬п╧ - п╩п╟я┌п╦п╫я│п╨п╦п╣ п╠я┐п╨п╡я▀, п╡ я┌я─п╣я┌я▄п╣п╧ -
я─п╦п╪я│п╨п╦п╣ я├п╦я└я─я▀, п╡ я┤п╣я┌п╡п╣я─я┌п╬п╧ - п╦пЁя─п╟п╩я▄п╫я▀п╣ п╨п╬я│я┌п╦, п╡ п©я▐я┌п╬п╧ - пЁп╣п╬п╪п╣я┌я─п╦я┤п╣я│п╨п╦п╣ я└п╦пЁя┐я─я▀,
п╡ я┬п╣я│я┌п╬п╧ - п╪п╟я┌п╣п╪п╟я┌п╦я┤п╣я│п╨п╦п╣ я│п╦п╪п╡п╬п╩я▀.
%prep
%setup
%setup -T -D -a 1
install %SOURCE3 res/
mv %name doc
#patch
%patch1
%patch2
%patch3 -p2
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
cp -a /usr/share/fonts/ttf/dejavu/DejaVuSans.ttf res/
%ifarch %e2k
sed -i 's,-O6,-O%_optlevel,' mkres/Makefile
%endif
%build
%make depend
%make_build -C mkres
pushd res &&
../mkres/mkres --source resources.descr --output ../einstein.res &&
popd
%make_build PREFIX=/usr
%install
mkdir -p %buildroot%_bindir
mkdir -p %buildroot/%_datadir/%name/res
%makeinstall PREFIX=%buildroot%_usr
mv %buildroot%_bindir/%name %buildroot%_bindir/%name.bin
install -p %SOURCE2 %buildroot%_bindir/%name
chmod 755 %buildroot%_bindir/%name
mkdir -p %buildroot/%_defaultdocdir/%name-%version
#install doc/* %%buildroot/%_defaultdocdir/%name-%version
install -pDm644 %SOURCE4 %buildroot%_desktopdir/%name.desktop
install -pDm644 %SOURCE5 %buildroot%_niconsdir/%name.png
%files
%_bindir/*
%doc doc/*
%_datadir/%name/
%_desktopdir/*
%_niconsdir/*
%changelog
…
Полный changelog можно просмотреть здесь