Репозитории ALT
5.1: | 4.82-alt10.M51.1 |
4.1: | 4.82-alt8.1 |
4.0: | 4.82-alt7 |
3.0: | 4.82-alt6 |
Группа :: Игры/Карты
Пакет: pysol
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# -*- coding: utf-8; mode: rpm-spec -*-
# $Id: pysol.spec,v 1.6 2006/02/25 20:04:16 eugene Exp $
Name: pysol
Version: 4.82
Release: alt8.1
Summary: PySol provides several solitaire card games
Summary(ru_RU.UTF-8): PySol п©я─п╣п╢п╩п╟пЁп╟п╣я┌ п╨п╬п╩п╩п╣п╨я├п╦я▌ п╨п╟я─я┌п╬я┤п╫я▀я┘ п©п╟я│я▄я▐п╫я│п╬п╡
License: GPL
Group: Games/Cards
URL: http://www.oberhumer.com/opensource/pysol/
Source0: %name-%version.tar.bz2
Source1: %name-%version-src.tar.bz2
Source2: icons-%name.tar.bz2
Source3: pysol.desktop
Patch0: %name-fix.patch
Patch1: %name-nosplash.patch
Patch2: %name-nosound.patch
Patch3: %name-colorchooser.patch
BuildArchitectures: noarch
%add_python_req_skip acard actions gamedb help mfxtools mfxutil stats util pysolaudio
%add_python_req_skip pysolsoundserver
%add_python_compile_include %_gamesbindir/%name
# Automatically added by buildreq on Wed Mar 30 2005 (-bi)
BuildRequires: python-base python-modules-compiler python-modules-encodings
%description
PySol has several solitaire card games, written in 100%% pure
Python. It has many features: unlimited undo and redo, load & save
games, player statistics, hint system, game plug-ins, and more!
Contains: klondike, freecel, spider, golf, etc.
%description -l ru_RU.UTF-8
PySol - п╨п╬п╩п╩п╣п╨я├п╦я▐ я│п╡я▀я┬п╣ 200 п©п╟я│я▄я▐п╫я│п╬п╡, п╫п╟ 100%% п╫п╟п©п╦я│п╟п╫п╫я▀я┘ п╫п╟ Python.
п≤пЁя─п╟ п╦п╪п╣п╣я┌ п╠п╬п╩я▄я┬п╬п╣ п╨п╬п╩п╦я┤п╣я│я┌п╡п╬ п╡п╬п╥п╪п╬п╤п╫п╬я│я┌п╣п╧: п╫п╣п╬пЁя─п╟п╫п╦я┤п╣п╫п╫я┐я▌ п╬я┌п╪п╣п╫я┐ п╦ п©п╬п╡я┌п╬я─
я┘п╬п╢п╟, п╥п╟пЁя─я┐п╥п╨я┐ п╦ я│п╬я┘я─п╟п╫п╣п╫п╦п╣ п╦пЁя─, я│я┌п╟я┌п╦я│я┌п╦п╨я┐ п╦пЁя─п╬п╨п╟, я│п╦я│я┌п╣п╪я┐ п©п╬п╢я│п╨п╟п╥п╬п╨,
п©п╬п╢п╨п╩я▌я┤п╟п╣п╪я▀п╣ п╦пЁя─я▀ п╦ я┌п╟п╨ п╢п╟п╩п╣п╣. п║п╬п╢п╣я─п╤п╦я┌ п╦пЁя─я▀ klondike (п╨п╬я│я▀п╫п╨п╟),
freecell, spider, golf п╦ п╪п╫п╬пЁп╦п╣ п╢я─я┐пЁп╦п╣.
%prep
%setup -q -a 1
%patch0
%patch1
%patch2
%patch3
%install
%make_install \
prefix=%buildroot%prefix \
mandir=%buildroot%_mandir \
pkgdatadir=%buildroot%_gamesbindir/%name \
install-bin install-data install-man
find %buildroot -type f -print0 |
xargs -r0 fgrep -l "%buildroot" |
xargs -r perl -pi -e "s|%buildroot||g"
cp -rf %name-%version/src/* %buildroot%_gamesbindir/%name
cat >%buildroot%_gamesbindir/%name.sh <<EOF
#!/bin/sh -e
cd %_gamesbindir/%name
PYTHON=python
\$PYTHON ./pysol.py
EOF
chmod 755 %buildroot%_gamesbindir/%name.sh
# Menu support - used desktop file
# mkdir -p %buildroot{%_menudir,%_iconsdir,%_liconsdir,%_miconsdir}
# cat >%buildroot%_menudir/%name <<EOF
# ?package(%name): \
# needs=x11 \
# section=Amusement/Cards \
# title=PySOL \
# command="soundwrapper %_gamesbindir/%name.sh" \
# icon=%name.xpm \
# longtitle="All solitaire cards games"
# EOF
install -d %buildroot%_desktopdir
install -m 644 %SOURCE3 %buildroot%_desktopdir/%name.desktop
# icons
install -d %buildroot%_miconsdir
install -d %buildroot%_liconsdir
tar xjf %SOURCE2 -C %buildroot%_iconsdir
mv %buildroot%_iconsdir/large/* %buildroot%_liconsdir
rmdir %buildroot%_iconsdir/large
mv %buildroot%_iconsdir/mini/* %buildroot%_miconsdir
rmdir %buildroot%_iconsdir/mini
(cd %buildroot%_gamesbindir/%name
find . -type f -name 'Makefile' -print0|xargs -r0 rm -rfv
find . -type f -name 'README*' -print0|xargs -r0 rm -rfv
find . -type f -name '*.py?' -print0|xargs -r0 rm -rfv
)
%files
%_gamesbindir/%name
%_gamesbindir/%name.sh
%_mandir/man?/*
# %_menudir/*
%_desktopdir/%name.desktop
%_miconsdir/*.xpm
%_iconsdir/*.xpm
%_liconsdir/*.xpm
%doc README
%exclude %_bindir/%name
%post
%update_menus
%postun
%clean_menus
%changelog
…
Полный changelog можно просмотреть здесь
# $Id: pysol.spec,v 1.6 2006/02/25 20:04:16 eugene Exp $
Name: pysol
Version: 4.82
Release: alt8.1
Summary: PySol provides several solitaire card games
Summary(ru_RU.UTF-8): PySol п©я─п╣п╢п╩п╟пЁп╟п╣я┌ п╨п╬п╩п╩п╣п╨я├п╦я▌ п╨п╟я─я┌п╬я┤п╫я▀я┘ п©п╟я│я▄я▐п╫я│п╬п╡
License: GPL
Group: Games/Cards
URL: http://www.oberhumer.com/opensource/pysol/
Source0: %name-%version.tar.bz2
Source1: %name-%version-src.tar.bz2
Source2: icons-%name.tar.bz2
Source3: pysol.desktop
Patch0: %name-fix.patch
Patch1: %name-nosplash.patch
Patch2: %name-nosound.patch
Patch3: %name-colorchooser.patch
BuildArchitectures: noarch
%add_python_req_skip acard actions gamedb help mfxtools mfxutil stats util pysolaudio
%add_python_req_skip pysolsoundserver
%add_python_compile_include %_gamesbindir/%name
# Automatically added by buildreq on Wed Mar 30 2005 (-bi)
BuildRequires: python-base python-modules-compiler python-modules-encodings
%description
PySol has several solitaire card games, written in 100%% pure
Python. It has many features: unlimited undo and redo, load & save
games, player statistics, hint system, game plug-ins, and more!
Contains: klondike, freecel, spider, golf, etc.
%description -l ru_RU.UTF-8
PySol - п╨п╬п╩п╩п╣п╨я├п╦я▐ я│п╡я▀я┬п╣ 200 п©п╟я│я▄я▐п╫я│п╬п╡, п╫п╟ 100%% п╫п╟п©п╦я│п╟п╫п╫я▀я┘ п╫п╟ Python.
п≤пЁя─п╟ п╦п╪п╣п╣я┌ п╠п╬п╩я▄я┬п╬п╣ п╨п╬п╩п╦я┤п╣я│я┌п╡п╬ п╡п╬п╥п╪п╬п╤п╫п╬я│я┌п╣п╧: п╫п╣п╬пЁя─п╟п╫п╦я┤п╣п╫п╫я┐я▌ п╬я┌п╪п╣п╫я┐ п╦ п©п╬п╡я┌п╬я─
я┘п╬п╢п╟, п╥п╟пЁя─я┐п╥п╨я┐ п╦ я│п╬я┘я─п╟п╫п╣п╫п╦п╣ п╦пЁя─, я│я┌п╟я┌п╦я│я┌п╦п╨я┐ п╦пЁя─п╬п╨п╟, я│п╦я│я┌п╣п╪я┐ п©п╬п╢я│п╨п╟п╥п╬п╨,
п©п╬п╢п╨п╩я▌я┤п╟п╣п╪я▀п╣ п╦пЁя─я▀ п╦ я┌п╟п╨ п╢п╟п╩п╣п╣. п║п╬п╢п╣я─п╤п╦я┌ п╦пЁя─я▀ klondike (п╨п╬я│я▀п╫п╨п╟),
freecell, spider, golf п╦ п╪п╫п╬пЁп╦п╣ п╢я─я┐пЁп╦п╣.
%prep
%setup -q -a 1
%patch0
%patch1
%patch2
%patch3
%install
%make_install \
prefix=%buildroot%prefix \
mandir=%buildroot%_mandir \
pkgdatadir=%buildroot%_gamesbindir/%name \
install-bin install-data install-man
find %buildroot -type f -print0 |
xargs -r0 fgrep -l "%buildroot" |
xargs -r perl -pi -e "s|%buildroot||g"
cp -rf %name-%version/src/* %buildroot%_gamesbindir/%name
cat >%buildroot%_gamesbindir/%name.sh <<EOF
#!/bin/sh -e
cd %_gamesbindir/%name
PYTHON=python
\$PYTHON ./pysol.py
EOF
chmod 755 %buildroot%_gamesbindir/%name.sh
# Menu support - used desktop file
# mkdir -p %buildroot{%_menudir,%_iconsdir,%_liconsdir,%_miconsdir}
# cat >%buildroot%_menudir/%name <<EOF
# ?package(%name): \
# needs=x11 \
# section=Amusement/Cards \
# title=PySOL \
# command="soundwrapper %_gamesbindir/%name.sh" \
# icon=%name.xpm \
# longtitle="All solitaire cards games"
# EOF
install -d %buildroot%_desktopdir
install -m 644 %SOURCE3 %buildroot%_desktopdir/%name.desktop
# icons
install -d %buildroot%_miconsdir
install -d %buildroot%_liconsdir
tar xjf %SOURCE2 -C %buildroot%_iconsdir
mv %buildroot%_iconsdir/large/* %buildroot%_liconsdir
rmdir %buildroot%_iconsdir/large
mv %buildroot%_iconsdir/mini/* %buildroot%_miconsdir
rmdir %buildroot%_iconsdir/mini
(cd %buildroot%_gamesbindir/%name
find . -type f -name 'Makefile' -print0|xargs -r0 rm -rfv
find . -type f -name 'README*' -print0|xargs -r0 rm -rfv
find . -type f -name '*.py?' -print0|xargs -r0 rm -rfv
)
%files
%_gamesbindir/%name
%_gamesbindir/%name.sh
%_mandir/man?/*
# %_menudir/*
%_desktopdir/%name.desktop
%_miconsdir/*.xpm
%_iconsdir/*.xpm
%_liconsdir/*.xpm
%doc README
%exclude %_bindir/%name
%post
%update_menus
%postun
%clean_menus
%changelog
…
Полный changelog можно просмотреть здесь