Sisyphus
: 11 2018 | : 18648 | : 12689728
en ru br
ALT
S:15.10-alt6.1
5.1: 9.2-alt0.M51.1
4.1: 8.4.7-alt3.M41.1
4.0: 8.3.1-alt1
3.0: 6.5.3-alt1
www.altlinux.org/Changes

Upstream:8.4.4

:: /
: gcompris

             Sources      Gear   Bugs and FR  Repocop 


Name: gcompris
Version: 14.03
Release: alt1
Summary: Educational suite for kids 2-10 years old
Summary(ru_RU.UTF8): Набор образовательных игр для детей от 2 до 10 лет

License: GPLv3
Group: Games/Educational
URL: http://www.gcompris.net
Source: ftp://gcompris.sourceforge.net/%name-%version.tar
Source2: %name.desktop
Source3: %name-edit.desktop
Source4: %name-16x16.png
Source5: %name-32x32.png
Source6: %name-48x48.png
Source10: voices-%version.tar
Patch: %name-%version-%release.patch

Packager: Andrey Cherepanov <cas at altlinux.org>

Obsoletes: %name-devel %name-gst-plugin

#BuildPreReq: /proc

# Automatically added by buildreq on Thu Jan 07 2010
BuildRequires: chess gnome-common gstreamer-devel intltool libgnet-devel libgnomecanvas-devel librsvg-devel libsqlite3-devel python-module-pycairo-devel python-module-pygtk-devel python-module-pysqlite2 python-modules-encodings tetex-core

Requires: chess sqlite3
# needed for sound support
Requires: gst-plugins-base >= 0.10.14-alt3 gst-plugins-base-audio-filters gst-plugins-vorbis gst-plugins-ogg gst-plugins-alsa
# needed for python support
#Requires: python%__python_version(gnomecanvas) python%__python_version(pygtk) python%__python_version(cairo) python%__python_version(gnome) python%__python_version(pysqlite2)

Provides: python%__python_version(_gcompris) python%__python_version(_gcompris_anim) python%__python_version(_gcompris_bonus)
Provides: python%__python_version(_gcompris_score) python%__python_version(_gcompris_skin) python%__python_version(_gcompris_sound)
Provides: python%__python_version(_gcompris_timer) python%__python_version(_gcompris_utils) python%__python_version(_gcompris_admin)
BuildRequires: desktop-file-utils

%description
GCompris / I Got IT is an educationnal game for children starting at 2.
More than 140 different activities are proposed:
* Click on the animals => learn the mouse/click usage
* Type the falling letters => learn the keyboard usage
* Falling Dices
* Falling words
* Basic algebra
* Time learning with an analog clock
* Puzzle game with famous paintings
* Drive Plane to catch clouds in increasing number
* Balance the scales
* And much more...

Some activities make use of sounds.  For those you'll have to install
the gcompris-voices-XX package for the languages you intend to use.

%description -l ru_RU.UTF8
GCompris - набор образовательных игр и программ для детей от двух лет
Предоставляется более 140 различных обучающих игр:
* Обучение использованию мыши
* Обучение использованию клавиатуры
* Падающие кубики
* Падающие слова
* Основы счёта
* Обучение времени
* Паззл с известными картинами
* На летящем самолёте ловить облака с возрастающими цифрами
* И многое другое...

К играм есть обширное голосовое сопровождение в пакете %name-voices-ru

%package voices-en
Summary: All voices in English for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-en
All voices in English for GCompris

%package voices-ru
Summary: All voices in Russian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-ru
All voices in Russian for GCompris

%package voices-da
Summary: All voices in Danish for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-da
All voices in Danish for GCompris

%package voices-de
Summary: All voices in German for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-de
All voices in German for GCompris

%package voices-es
Summary: All voices in Spanish for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-es
All voices in Spanish for GCompris

%package voices-fr
Summary: All voices in French for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-fr
All voices in Spanish for GCompris

%package voices-it
Summary: All voices in Italian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-it
All voices in Italian for GCompris

%package voices-pt
Summary: All voices in Portuguese for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-pt
All voices in Portuguese for GCompris

%package voices-sv
Summary: All voices in Swedish for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-sv
All voices in Swedish for GCompris

%package voices-eu
Summary: All voices in Basque for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-eu
All voices in Basque for GCompris

%package voices-hu
Summary: All voices in Hungarian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-hu
All voices in Hungarian for GCompris

%package voices-fi
Summary: All voices in Finish for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-fi
All voices in Finish for GCompris

%package voices-nl
Summary: All voices in Dutch for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-nl
All voices in Dutch for GCompris

%package voices-cs
Summary: All voices in Czech for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-cs
All voices in Czech for GCompris

%package voices-mr
Summary: All voices in Indian Marathi for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-mr
All voices in Indian Marathi for GCompris

%package voices-pt_BR
Summary: All voices in Brasilian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-pt_BR
All voices in Brasilian for GCompris

%package voices-tr
Summary: All voices in Turk for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-tr
All voices in Turk for GCompris

%package voices-so
Summary: All voices in Somali for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-so
All voices in Somali for GCompris

%package voices-ar
Summary: All voices in Arabic for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-ar
All voices in Arabic for GCompris

%package voices-hi
Summary: All voices in Indian Hindi for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-hi
All voices in Indian Hindi for GCompris

%package voices-id
Summary: All voices in Indonesian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-id
All voices in Indonesian for GCompris

%package voices-nb
Summary: All voices in Norwegian Bokmal for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-nb
All voices in Norwegian Bokmal for GCompris

%package voices-sr
Summary: All voices in Serbian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-sr
All voices in Serbian for GCompris

%package voices-el
Summary: All voices in Greek for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-el
All voices in Greek for GCompris

%package voices-br
Summary: All voices in Breton for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-br
All voices in Breton for GCompris

%package voices-bg
Summary: All voices in Bulgarian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-bg
All voices in Bulgarian for GCompris

%package voices-ur
Summary: All voices in Urdu for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-ur
All voices in Urdu for GCompris

%package voices-he
Summary: All voices in Hebrew for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-he
All voices in Hebrew for GCompris

%package voices-pa
Summary: All voices in Punjabi for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-pa
All voices in Punjabi for GCompris

%package voices-eo
Summary: All voices in Esperanto for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-eo
All voices in Esperanto for GCompris

%package voices-zh_CN
Summary: All voices in Chinese o for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-zh_CN
All voices in Chinese for GCompris

%package voices-ast
Summary: All voices in Asturian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-ast
All voices in Asturian for GCompris

%package voices-sl
Summary: All voices in Slovenian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-sl
All voices in Slovenian for GCompris

%package voices-af
Summary: All voices in Afrikaans for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-af
All voices in Afrikaans for GCompris

%package voices-th
Summary: All voices in Thai for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-th
All voices in Thai for GCompris

%package voices-gd
Summary: All voices in Scottish Gaelic for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-gd
All voices in Scottish Gaelic for GCompris

%package voices-lt
Summary: All voices in Lituanian for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-lt
All voices in Lituanian for GCompris

%package voices-sk
Summary: All voices in Slovak for GCompris
Group: Games/Educational
BuildArch: noarch
Requires: %name = %version-%release
%description voices-sk
All voices in Slovak for GCompris

%prep
%setup -q
%patch -p1

#Fix build on x86_64

sed -i "s|br_cv_valid_prefixes=no|br_cv_valid_prefixes=yes|g" acinclude.m4

%build
#autoreconf
./autogen.sh

sed -i "s|LIBADD =|LIBADD = -lgnomecanvas-2 \$(GCOMPRIS_LIBS) \$(XML_LIBS)|g"  src/boards/Makefile.in
sed -i "s|LIBADD =|LIBADD = -lgnomecanvas-2 \$(GCOMPRIS_LIBS) \$(XML_LIBS)|g"  src/boards/Makefile.in

#add_optflags -UGTK_DISABLE_DEPRECATED -UGDK_DISABLE_DEPRECATED

sed -i 's|\-Werror||g' configure
%configure
# --enable-binreloc

make

%install
make DESTDIR=%buildroot install

mkdir -p %buildroot%_datadir/gcompris/boards/voices
tar -xf %SOURCE10 -C %buildroot%_datadir/gcompris/boards/voices

mkdir -p %buildroot%_miconsdir
mkdir -p %buildroot%_liconsdir
mkdir -p %buildroot%_niconsdir

#install -p -m 644 docs/C/*.info %buildroot%_infodir

install -p -m 644 %SOURCE2 %buildroot%_datadir/applications
install -p -m 644 %SOURCE3 %buildroot%_datadir/applications
install -p -m 644 %SOURCE4 %buildroot%_miconsdir/%name.png
install -p -m 644 %SOURCE5 %buildroot%_niconsdir/%name.png
install -p -m 644 %SOURCE6 %buildroot%_liconsdir/%name.png

%find_lang --with-gnome %name
desktop-file-install --dir %buildroot%_desktopdir \
--remove-category=Utility \
--add-category=Game \
--add-category=KidsGame \
%buildroot%_desktopdir/gcompris-edit.desktop

%files -f %name.lang
%doc AUTHORS COPYING ChangeLog NEWS README

# bin

%_bindir/*

# lib

%_libdir/%name

# menu

##%_menudir/*
%_datadir/applications/*

# data

%_datadir/%name

#icons

%_datadir/pixmaps/*
%_miconsdir/*
%_liconsdir/*
%_niconsdir/*
##%dir %_datadir/assetml
##%_datadir/assetml/gcompris_flags.assetml

# exclude sounds

%exclude %_datadir/gcompris/boards/voices/ar
%exclude %_datadir/gcompris/boards/voices/br
%exclude %_datadir/gcompris/boards/voices/cs
%exclude %_datadir/gcompris/boards/voices/da
%exclude %_datadir/gcompris/boards/voices/de
%exclude %_datadir/gcompris/boards/voices/el
%exclude %_datadir/gcompris/boards/voices/en
%exclude %_datadir/gcompris/boards/voices/es
%exclude %_datadir/gcompris/boards/voices/eu
%exclude %_datadir/gcompris/boards/voices/fi
%exclude %_datadir/gcompris/boards/voices/fr
%exclude %_datadir/gcompris/boards/voices/hi
%exclude %_datadir/gcompris/boards/voices/hu
%exclude %_datadir/gcompris/boards/voices/id
%exclude %_datadir/gcompris/boards/voices/it
%exclude %_datadir/gcompris/boards/voices/mr
%exclude %_datadir/gcompris/boards/voices/nb
%exclude %_datadir/gcompris/boards/voices/nl
%exclude %_datadir/gcompris/boards/voices/pt
%exclude %_datadir/gcompris/boards/voices/pt_BR
%exclude %_datadir/gcompris/boards/voices/ru
%exclude %_datadir/gcompris/boards/voices/so
%exclude %_datadir/gcompris/boards/voices/sr
%exclude %_datadir/gcompris/boards/voices/sv
%exclude %_datadir/gcompris/boards/voices/tr
%exclude %_datadir/gcompris/boards/voices/bg
%exclude %_datadir/gcompris/boards/voices/ur
%exclude %_datadir/gcompris/boards/voices/nn
%exclude %_datadir/gcompris/boards/voices/he
%exclude %_datadir/gcompris/boards/voices/pa
%exclude %_datadir/gcompris/boards/voices/eo
%exclude %_datadir/gcompris/boards/voices/zh_CN
%exclude %_datadir/gcompris/boards/voices/ast
%exclude %_datadir/gcompris/boards/voices/sl
%exclude %_datadir/gcompris/boards/voices/af
%exclude %_datadir/gcompris/boards/voices/th
%exclude %_datadir/gcompris/boards/voices/gd
%exclude %_datadir/gcompris/boards/voices/lt
%exclude %_datadir/gcompris/boards/voices/sk

%files voices-en
%_datadir/gcompris/boards/voices/en

%files voices-ru
%_datadir/gcompris/boards/voices/ru

%files voices-da
%_datadir/gcompris/boards/voices/da

%files voices-de
%_datadir/gcompris/boards/voices/de

%files voices-es
%_datadir/gcompris/boards/voices/es

%files voices-fr
%_datadir/gcompris/boards/voices/fr

%files voices-it
%_datadir/gcompris/boards/voices/it

%files voices-pt
%_datadir/gcompris/boards/voices/pt

%files voices-sv
%_datadir/gcompris/boards/voices/sv

%files voices-eu
%_datadir/gcompris/boards/voices/eu

%files voices-hu
%_datadir/gcompris/boards/voices/hu

%files voices-fi
%_datadir/gcompris/boards/voices/fi

%files voices-nl
%_datadir/gcompris/boards/voices/nl

%files voices-cs
%_datadir/gcompris/boards/voices/cs

%files voices-mr
%_datadir/gcompris/boards/voices/mr

%files voices-pt_BR
%_datadir/gcompris/boards/voices/pt_BR

%files voices-tr
%_datadir/gcompris/boards/voices/tr

%files voices-so
%_datadir/gcompris/boards/voices/so

%files voices-ar
%_datadir/gcompris/boards/voices/ar

%files voices-hi
%_datadir/gcompris/boards/voices/hi

%files voices-id
%_datadir/gcompris/boards/voices/id

%files voices-nb
%_datadir/gcompris/boards/voices/nb
%_datadir/gcompris/boards/voices/nn

%files voices-sr
%_datadir/gcompris/boards/voices/sr

%files voices-el
%_datadir/gcompris/boards/voices/el

%files voices-br
%_datadir/gcompris/boards/voices/br

%files voices-bg
%_datadir/gcompris/boards/voices/bg

%files voices-ur
%_datadir/gcompris/boards/voices/ur

%files voices-he
%_datadir/gcompris/boards/voices/he

%files voices-pa
%_datadir/gcompris/boards/voices/pa

%files voices-eo
%_datadir/gcompris/boards/voices/eo

%files voices-zh_CN
%_datadir/gcompris/boards/voices/zh_CN

%files voices-ast
%_datadir/gcompris/boards/voices/ast

%files voices-sl
%_datadir/gcompris/boards/voices/sl

%files voices-af
%_datadir/gcompris/boards/voices/af

%files voices-th
%_datadir/gcompris/boards/voices/th

%files voices-gd
%_datadir/gcompris/boards/voices/gd

%files voices-lt
%_datadir/gcompris/boards/voices/lt

%files voices-sk
%_datadir/gcompris/boards/voices/sk

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin