Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37718633
en ru br
Репозитории ALT
5.1: 2.26.3-alt2
4.1: 2.22.3-alt0.M41.1
4.0: 2.18.2.1-alt1
www.altlinux.org/Changes

Группа :: Графические оболочки/GNOME
Пакет: gnome-games

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

%define _oldname gnome2-games
%define ver_major 2.18
%define extradata_ver_major 2.18
%define extradata_ver %extradata_ver_major.0
%def_disable static

Name: gnome-games
Version: %ver_major.2.1
Release: alt1

Summary: GNOME games
License: %gpl2plus
Group: Graphical desktop/GNOME
URL: http://www.gnome.org/

Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Source1: ftp://ftp.gnome.org/pub/gnome/sources/%name-extra-data/%extradata_ver_major/%name-extra-data-%extradata_ver.tar.bz2
#Patch: %name-2.6.1-alt-sol.patch
#Patch1: %name-2.6.1-alt-gtali_schemas.patch
#Patch2: %name-2.10.0-alt-server_name.patch
#Patch3: gnome-games-2.16.3-alt-libxml2.patch
Patch4: %name-2.18.2.1-alt-desktop-fixes.patch

Obsoletes: %_oldname < 2.14
Provides: %_oldname = %version-%release

%define scrollkeeper_ver 0.3.8
%define gtk_ver 2.8.0
%define gnome_common_ver 2.8.0

PreReq: GConf scrollkeeper >= %scrollkeeper_ver

Requires: %name-glines = %version-%release
Requires: %name-gnect = %version-%release
Requires: %name-gnibbles = %version-%release
Requires: %name-gnobots = %version-%release
Requires: %name-gnometris = %version-%release
Requires: %name-gnomine = %version-%release
Requires: %name-gnotravex = %version-%release
Requires: %name-gnotski = %version-%release
Requires: %name-gtali = %version-%release
Requires: %name-iagno = %version-%release
Requires: %name-mahjongg = %version-%release
Requires: %name-same = %version-%release
Requires: %name-sol = %version-%release
Requires: %name-blackjack = %version-%release
Requires: %name-sudoku = %version-%release
Requires: %name-glchess = %version-%release

BuildPreReq: rpm-build-licenses

# From configure.in

BuildPreReq: intltool >= 0.35.0
BuildPreReq: libstdc++-devel gcc-c++ guile16-devel gob2
BuildPreReq: scrollkeeper >= %scrollkeeper_ver
BuildPreReq: libgnomeui-devel
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libGConf-devel >= 2.0
BuildPreReq: librsvg-devel >= 2.0
BuildPreReq: libcairo-devel >= 1.0
BuildPreReq: libavahi-glib-devel >= 0.6.6
BuildPreReq: esound-devel

# Automatically added by buildreq on Tue Sep 18 2007

BuildRequires: gcc-c++ GConf gnome-doc-utils-xslt guile16-devel libavahi-glib libdbus-glib libexpat-devel libgnomeui-devel librsvg-devel libSM-devel scrollkeeper

BuildRequires: gnome-common >= %gnome_common_ver
BuildRequires: perl-XML-Parser
BuildRequires: gnome-doc-utils python-module-pygtk-devel python-module-pygnome-desktop-devel

%description
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System.  GNOME is similar in purpose and scope
to CDE and KDE, but GNOME is based completely on free software.
The gnome-games package containes a collection of simple games for your
amusement.

AisleRiot: also known as Solitaire or sol is a collection of card
games which are easy to play with the aid of a mouse.
Blackjack: multiple deck, casino rules blackjack game
Glines:         color lines game, aka fiveormore
Gnect:          four in a row game
Gnibbles:       snake game up to four players
Gnobots:        old bsd robots game improved
GNOME Klotski:  game based on the not so popular Klotski
GNOME Mine:     popular logic puzzle minesweeper
GNOME Tali:     sort of poker with dice and less money
Gnometris:      GNOME version of the popular russian game Tetris
Iagno:          GNOME version of the popular Othello
Mahjongg:       GNOME version of the classic Eastern tile game, Mahjongg
Same GNOME:     game which goal is to remove as many balls in as few moves as
possible
GNOME Sudoku:   a logic game with a Japanese name
GlChess: a chess game which supports several chess engines.

%package common
Summary: Common files for GNOME games
Group: Graphical desktop/GNOME
Obsoletes: %_oldname-common < 2.14
Provides: %_oldname-common = %version-%release
Obsoletes: %name-xbill
Obsoletes: %name-freecell
Obsoletes: %name-gataxx
Obsoletes: libgdkcardimage
PreReq: GConf
PreReq: scrollkeeper >= %scrollkeeper_ver
Requires: gnome-vfs libgnome libgnomeui libbonoboui

%description common
This package contains common files needed to run GNOME games.

%package blackjack
Summary: A Blackjack game for GNOME.
Group: Games/Boards
Obsoletes: %_oldname-blackjack < 2.14
PreReq: %name-common = %version-%release

%description blackjack
Blackjack is a multiple deck, casino rules blackjack game. The object of
the game is to hold cards having a higher count than those of the dealer
without going over 21

%package glines
Summary: A version of the color lines program
Group: Games/Boards
Obsoletes: %_oldname-glines < 2.14
PreReq: %name-common = %version-%release

%description glines
Glines, is the Gnome port of the once popular Windows game called Color
Lines. The game's objective is to align as often as possible five balls
or more of the same color causing them to disappear, play as long as
possible, and be #1 in the High Scores.

%package gnect
Summary: Four in a row game
Group: Games/Boards
Obsoletes: %_oldname-gnect < 2.14
PreReq: %name-common = %version-%release

%description gnect
Gnect is a four-in-a-row game for the GNOME Project. The object of the
game is to build a line of four of your marbles while trying to stop
your opponent (human or computer) building a line of his or her own. A
line can be horizontal, vertical or diagonal.

%package gnibbles
Summary: A cute little game that has no description
Group: Games/Boards
Obsoletes: %_oldname-gnibbles < 2.14
PreReq: %name-common = %version-%release

%description  gnibbles
Gnibbles is a game where the user controls a snake. The snake moves
around the board, eating diamonds while avoiding the walls placed around
it.

%package gnobots
Summary: Second Gnome version of robots game for BSD games collection
Group: Games/Boards
Obsoletes: %_oldname-gnobots < 2.14
Obsoletes: %name-gnobots2 < 2.15
Provides: %name-gnobots2 = %version-%release
PreReq: %name-common = %version-%release

%description gnobots
GNOME Robots II is a development of the original Gnome Robots game which
was itself based on the text based robots game which can be found on a
number of UNIX systems, and comes with the BSD games package on Linux
systems.

%package gnometris
Summary: A tetris clone.
Group: Games/Boards
Obsoletes: %_oldname-gnometris < 2.14
PreReq: %name-common = %version-%release

%description gnometris
GNOME version of the popular russian game Tetris.

%package gnomine
Summary: Classic find the mines in the minefield game
Group: Games/Boards
Obsoletes: %_oldname-gnomine < 2.14
PreReq: %name-common = %version-%release

%description gnomine
GNOME Mines is a variation of the popular logic puzzle minesweeper.

%package gnotravex
Summary: A game based on Tetravex.
Group: Games/Boards
Obsoletes: %_oldname-gnotravex < 2.14
PreReq: %name-common = %version-%release

%description gnotravex
GNOME Tetravex is a simple puzzle where pieces must be positioned so
that the same numbers are touching each other. Your game is timed, these
times are stored in a system-wide scoreboard.

%package gnotski
Summary: Derivative game from Klotski.
Group: Games/Boards
Obsoletes: %_oldname-gnotski < 2.14
PreReq: %name-common = %version-%release

%description gnotski
Gnome Klotski is a small game for GNOME. The idea is originally
from a game called "Klotski".

%package gtali
Summary: Gnome version of Yahtzee Dice Game
Group: Games/Boards
Obsoletes: %_oldname-gtali < 2.14
PreReq: %name-common = %version-%release

%description gtali
Gnome Tali is a sort of poker with dice and less money. You roll five
dice three times and try to create the best hand. Your two rerolls may
include any or all of your dice.

%package iagno
Summary: Gnome version of Othello (Reversi) board game
Group: Games/Boards
Obsoletes: %_oldname-iagno < 2.14
PreReq: %name-common = %version-%release

%description iagno
Iagno is a computer version of the game Reversi, more popularly called
Othello.

%package mahjongg
Summary: Classic Chinese Tile Game
Group: Games/Boards
Obsoletes: %_oldname-mahjongg < 2.14
PreReq: %name-common = %version-%release

%description mahjongg
Gnome Mahjongg, or Mahjongg for short, is a solitaire (one player)
version of the classic Eastern tile game, Mahjongg.

%package same
Summary: The "Same Game" puzzle
Group: Games/Boards
Obsoletes: %_oldname-same < 2.14
PreReq: %name-common = %version-%release

%description same
The objective of same-gnome is to remove as many balls from the playing
area in as few moves as possible.

%package sol
Summary: Collection of card games
Group: Games/Boards
Obsoletes: %_oldname-sol < 2.14
PreReq: %name-common = %version-%release

%description sol
AisleRiot also known as Solitaire or sol is a collection of card games
which are easy to play with the aid of a mouse.

%package sudoku
Summary: GNOME Sudoku game
Group: Games/Boards
PreReq: %name-common = %version-%release
Requires: bug-buddy python-module-pygtk-libglade
%add_python_req_skip gtk_goodies

%description sudoku
Sudoku is a logic game with a Japanese name that has recently exploded
in popularity.

%package glchess
Summary: A chess game for GNOME
Group: Games/Boards
PreReq: %name-common = %version-%release
# Add chess to requirements to be sure it is possible to play with computer
Requires: bug-buddy chess

%description glchess
A chess game which supports several chess engines, with 2D and optionally
3D support if OpenGL is present.

%define _sklocalstatedir %_localstatedir/scrollkeeper

%prep
%setup -q -a1
#patch -p1
#patch1 -p1
#patch2 -p1
#patch3 -p1
%patch4 -p1

%build
intltoolize --copy --force
%__autoreconf

%configure \
   --disable-scrollkeeper \
   --disable-schemas-install \
   --enable-avahi \
   --enable-setgid \
   --with-scores-group=games \
   --with-scores-user=games \
   %{subst_enable static}

%make_build

# build gnome-games-extra-data

pushd %name-extra-data-%extradata_ver
%configure
%make_build
popd

%install
%makeinstall _sklocalstatedir=%buildroot%_sklocalstatedir

# install gnome-games-extra-data

pushd %name-extra-data-%extradata_ver
%makeinstall _sklocalstatedir=%buildroot%_sklocalstatedir
popd

## put games-server.py in proper location

#__install -d %buildroot%_libdir/%name
#__mv %buildroot%_bindir/games-server.py %buildroot%_libdir/%name/
#__ln_s -f %_libdir/%name/games-server.py %buildroot%_bindir/gnome-games-server

%define games aisleriot blackjack gnometris gnect gnomine same-gnome mahjongg gtali gnotravex gnotski glines iagno gnobots2 gnibbles gnome-sudoku glchess

%find_lang --with-gnome %name %games

for omf in %games; do
   grep "$omf" %name.lang >> $omf.lang || :
done

grep -v '\.omf' %name.lang > _%name.lang

%post common
if [ $1 = 0 ]; then
%gconf2_install libgnomegames
fi

%preun common
%gconf2_uninstall libgnomegames

%post blackjack
%update_scrollkeeper
%gconf2_install blackjack

%preun blackjack
%gconf2_uninstall blackjack

%postun blackjack
%clean_scrollkeeper

%post glines
%update_scrollkeeper

%preun glines
if [ $1 = 0 ]; then
%gconf2_uninstall glines
fi

%postun glines
%clean_scrollkeeper

%post gnect
%update_scrollkeeper
%gconf2_install gnect

%preun gnect
if [ $1 = 0 ]; then
%gconf2_uninstall gnect
fi

%postun gnect
%clean_scrollkeeper

%post gnibbles
%update_scrollkeeper
%gconf2_install gnibbles

%preun gnibbles
if [ $1 = 0 ]; then
%gconf2_uninstall gnibbles
fi

%postun gnibbles
%clean_scrollkeeper

%post gnobots
%update_scrollkeeper
%gconf2_install gnobots2

%preun gnobots
if [ $1 = 0 ]; then
%gconf2_uninstall gnobots2
fi

%postun gnobots
%clean_scrollkeeper

%post gnometris
%update_scrollkeeper
%gconf2_install gnometris

%preun gnometris
if [ $1 = 0 ]; then
%gconf2_uninstall gnometris
fi

%postun gnometris
%clean_scrollkeeper

%post gnomine
%update_scrollkeeper
%gconf2_install gnomine

%preun gnomine
if [ $1 = 0 ]; then
%gconf2_uninstall gnomine
fi

%postun gnomine
%clean_scrollkeeper

%post gnotravex
%update_scrollkeeper
%gconf2_install gnotravex

%preun gnotravex
if [ $1 = 0 ]; then
%gconf2_uninstall gnotravex
fi

%postun gnotravex
%clean_scrollkeeper

%post gnotski
%gconf2_install gnotski
%update_scrollkeeper

%preun gnotski
if [ $1 = 0 ]; then
%gconf2_uninstall gnotski
fi

%postun gnotski
%clean_scrollkeeper

%post gtali
%update_scrollkeeper
%gconf2_install gtali

%preun gtali
if [ $1 = 0 ]; then
%gconf2_uninstall gtali
fi

%postun gtali
%clean_scrollkeeper

%post iagno
%update_scrollkeeper
%gconf2_install iagno

%preun iagno
if [ $1 = 0 ]; then
%gconf2_uninstall iagno
fi

%postun iagno
%clean_scrollkeeper

%post mahjongg
%update_scrollkeeper
%gconf2_install mahjongg

%preun mahjongg
if [ $1 = 0 ]; then
%gconf2_uninstall mahjongg
fi

%postun mahjongg
%clean_scrollkeeper

%post same
%update_scrollkeeper
%gconf2_install same-gnome

%preun same
if [ $1 = 0 ]; then
%gconf2_uninstall same-gnome
fi

%postun same
%clean_scrollkeeper

%post sol
%update_scrollkeeper
%gconf2_install aisleriot

%preun sol
if [ $1 = 0 ]; then
%gconf2_uninstall aisleriot
fi

%postun sol
%clean_scrollkeeper

%post sudoku
%update_scrollkeeper
#gconf2_install sudoku

#preun sudoku

#if [ $1 = 0 ]; then
#gconf2_uninstall sudoku
#fi

%postun sudoku
%clean_scrollkeeper

%post glchess
%update_scrollkeeper
%gconf2_install glchess

%preun glchess
if [ $1 = 0 ]; then
%gconf2_uninstall glchess
fi

%postun glchess
%clean_scrollkeeper

%files

%files common -f _%name.lang
#attr(2711,root,games) %%_bindir/gnome-games-server
#dir %%_libdir/%name
#_libdir/%name/games-server.py
%dir %_datadir/pixmaps/%name-common
%_datadir/pixmaps/%name-common/cards
%dir %_datadir/pixmaps/%name-common/icons
%_datadir/pixmaps/%name-common/icons/*.png
%_datadir/pixmaps/cards
%config %_sysconfdir/gconf/schemas/libgnomegames.schemas
%doc AUTHORS ChangeLog TODO

%files blackjack -f blackjack.lang
%attr(-,root,games) %_bindir/blackjack
%_datadir/applications/blackjack*
%_datadir/blackjack
%_datadir/pixmaps/*blackjack*
%_iconsdir/hicolor/*x*/apps/gnome-blackjack.png
%config %_sysconfdir/gconf/schemas/blackjack*

%files glines -f glines.lang
%attr(2711,root,games) %_bindir/glines
%_datadir/applications/glines*
%_datadir/pixmaps/glines*
%_iconsdir/hicolor/*x*/apps/gnome-five-or-more.png
%config %_sysconfdir/gconf/schemas/glines*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/glines*

%files gnect -f gnect.lang
%attr(-,root,games) %_bindir/gnect
%_datadir/applications/gnect*
%_datadir/gnect
%_datadir/pixmaps/gnect*
%_iconsdir/hicolor/*x*/apps/gnome-four-in-a-row.png
%config %_sysconfdir/gconf/schemas/gnect*

%files gnibbles -f gnibbles.lang
%attr(2711,root,games) %_bindir/gnibbles
%_datadir/applications/gnibbles*
%_datadir/gnibbles
%_datadir/pixmaps/*nibbles*
%_iconsdir/hicolor/*x*/apps/gnome-nibbles.png
%_iconsdir/hicolor/scalable/apps/gnome-nibbles.svg
%_datadir/sounds/gnibbles
%config %_sysconfdir/sound/*/gnibbles*
%config %_sysconfdir/gconf/schemas/gnibbles*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gnibbles*

%files gnobots -f gnobots2.lang
%attr(2711,root,games) %_bindir/gnobots2
%_datadir/applications/gnobots2*
%_datadir/gnobots2
%_datadir/pixmaps/gnobots2*
%_iconsdir/hicolor/*x*/apps/gnome-robots.png
%_iconsdir/hicolor/scalable/apps/gnome-robots.*
%_datadir/sounds/gnobots2
%config %_sysconfdir/sound/*/gnobots2*
%config %_sysconfdir/gconf/schemas/gnobots2.schemas
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gnobots2*

%files gnometris -f gnometris.lang
%attr(2711,root,games) %_bindir/gnometris
%_datadir/applications/gnometris*
%_datadir/pixmaps/gnometris
%_iconsdir/hicolor/*x*/apps/gnome-gnometris.png
%_datadir/sounds/gnometris
%config %_sysconfdir/gconf/schemas/gnometris*
%config(noreplace) %attr(0664,root,games) %_localstatedir/games/gnometris*

%files gnomine -f gnomine.lang
%attr(2711,root,games) %_bindir/gnomine
%_datadir/applications/gnomine*
%_datadir/pixmaps/gnomine
%_iconsdir/hicolor/*x*/apps/gnome-gnomine.png
%_iconsdir/hicolor/scalable/apps/gnome-gnomine.svg
%config %_sysconfdir/gconf/schemas/gnomine*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gnomine*

%files gnotravex -f gnotravex.lang
%attr(2711,root,games) %_bindir/gnotravex
%_datadir/applications/gnotravex*
%_datadir/pixmaps/gnotravex
%_iconsdir/hicolor/*x*/apps/gnome-tetravex.png
%config %_sysconfdir/gconf/schemas/gnotravex*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gnotravex*

%files gnotski -f gnotski.lang
%attr(2711,root,games) %_bindir/gnotski
%_datadir/applications/gnotski*
%_datadir/pixmaps/gnotski*
%_iconsdir/hicolor/*x*/apps/gnome-klotski.png
%config %_sysconfdir/gconf/schemas/gnotski.schemas
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gnotski*

%files gtali -f gtali.lang
%attr(2711,root,games) %_bindir/gtali
%_datadir/applications/gtali*
%_datadir/pixmaps/gtali
%_iconsdir/hicolor/*x*/apps/gnome-tali.png
%_iconsdir/hicolor/scalable/apps/gnome-tali.svg
%config %_sysconfdir/gconf/schemas/gtali*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/gtali*

%files iagno -f iagno.lang
%attr(-,root,games) %_bindir/iagno
%_datadir/applications/iagno*
%_datadir/pixmaps/iagno
%_iconsdir/hicolor/*x*/apps/gnome-iagno.png
%_iconsdir/hicolor/scalable/apps/gnome-iagno.svg
%_datadir/sounds/iagno
%config %_sysconfdir/sound/*/iagno*
%config %_sysconfdir/gconf/schemas/iagno*

%files mahjongg -f mahjongg.lang
%attr(2711,root,games) %_bindir/mahjongg
%_datadir/applications/mahjongg*
%_datadir/pixmaps/*mahjongg*
%_iconsdir/hicolor/*x*/apps/gnome-mahjongg.png
%_datadir/%name/mahjongg
%config %_sysconfdir/gconf/schemas/mahjongg*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/mahjongg*

%files same -f same-gnome.lang
%attr(2711,root,games) %_bindir/same-gnome
%_datadir/applications/same-gnome*
%_iconsdir/hicolor/*x*/apps/gnome-same-gnome.png
%_datadir/%name/same-gnome
%config %_sysconfdir/gconf/schemas/same-gnome*
%config(noreplace) %attr(0664,games,games) %_localstatedir/games/same-gnome*

%files sol -f aisleriot.lang
%attr(-,root,games) %_bindir/sol
%_datadir/applications/sol*
%_datadir/applications/freecell*
%_datadir/sol-games
%_iconsdir/hicolor/*x*/apps/gnome-aisleriot.png
%_iconsdir/hicolor/*x*/apps/gnome-freecell.png
%config %_sysconfdir/gconf/schemas/aisleriot*

%files sudoku -f gnome-sudoku.lang
%attr(-,root,games) %_bindir/gnome-sudoku
%_datadir/applications/gnome-sudoku*
%_datadir/gnome-sudoku
%_datadir/pixmaps/sudoku*
%_datadir/pixmaps/gnome-sudoku
%python_sitelibdir/gnome_sudoku

%files glchess -f glchess.lang
%attr(-,root,games) %_bindir/glchess
%_datadir/applications/glchess*
%_datadir/glchess
%_datadir/pixmaps/glchess.*
%_datadir/pixmaps/glchess
%python_sitelibdir/glchess
%config %_sysconfdir/gconf/schemas/glchess*

%exclude %_sklocalstatedir
%exclude %_iconsdir/hicolor/icon-theme.cache

%changelog

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

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