2 # TODO: gcompris uses its own goocanvas libraries with some specific changes, but do we need to include them into /usr/lib?
5 %bcond_without gnet # build without gnet support (disallow GCompris fetch content from a web server)
7 Summary: Educational suite for kids 2-10 years old
8 Summary(pl.UTF-8): Zestaw edukacyjny dla dzieci w wieku 2-10 lat
13 Group: X11/Applications/Games
14 Source0: http://downloads.sourceforge.net/gcompris/%{name}-%{version}.tar.gz
15 # Source0-md5: 490cc6ee81847e4441a878dc6e16f301
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-desktop.patch
18 URL: http://gcompris.net/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: gettext-devel
22 BuildRequires: gnet-devel
23 BuildRequires: gnome-common
24 BuildRequires: gstreamer-devel
25 BuildRequires: intltool
26 BuildRequires: libao-devel
27 BuildRequires: libgnomeui-devel >= 2.2.0
28 BuildRequires: libogg-devel
29 BuildRequires: librsvg-devel
30 BuildRequires: libstdc++-devel
31 BuildRequires: libtool
32 BuildRequires: libvorbis-devel
33 BuildRequires: libxml2-devel
34 BuildRequires: pkgconfig
35 BuildRequires: popt-devel >= 1.5
36 BuildRequires: python-devel
37 BuildRequires: python-gnome-devel
38 BuildRequires: python-pycairo-devel
39 BuildRequires: python-sqlite
40 BuildRequires: sqlite3-devel
42 BuildRequires: texi2html
43 BuildRequires: texinfo
44 BuildRequires: xorg-lib-libXxf86vm-devel
45 Requires: gstreamer-audio-formats
46 Requires: gstreamer-audiosink
47 Requires: gstreamer-vorbis
48 Requires: python-gnome-canvas
49 Requires: python-modules
50 Requires: python-sqlite
53 Obsoletes: gcompris-devel
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 GCompris / I Have Understood is an educational game for children
58 starting at 2. Today several Boards are implemented:
59 - Click on the animals => learn the mouse/click usage
60 - Type the falling letters => learn the keyboard usage
64 - Time learning with an analog clock
65 - Puzzle game with famous paintings
66 - Drive Plane to catch clouds in increasing number
70 The game is included in the GNOME desktop under the Game menu.
72 You should install it only if you have children using this computer.
74 %description -l fr.UTF-8
75 GCompris / J'ai Compris est un logiciel éducatif pour les enfants à
78 Aujourd'hui, plusieurs tableaux sont implémentés :
79 - Cliquer sur les animaux => apprentissage du click et de la souris
80 - Entrer les lettres qui tombent => Apprentissage du clavier
82 - Les mots qui tombent
84 - Apprentissage de la lecture de l'heure sur une horloge analogique
85 - Puzzle avec des tableaux célèbres
86 - Pilote un avion pour attraper les nuages dans l'ordre
87 - Equilibre la balance
89 Le jeu est inclus dans le bureau GNOME sous le menu Jeux.
91 À installer si vous avez des enfants utilisant cet ordinateur.
93 %description -l pl.UTF-8
94 GCompris / Zrozumiałem to gra edukacyjna dla dzieci od 2 lat.
95 Aktualnie zaimplementowane jest kilka plansz:
96 - klikanie na zwierzętach - nauka używania myszy/klikania
97 - wpisywanie spadających liter - nauka używania klawiatury
101 - nauka czasu z zegarkiem analogowym
102 - układanka ze słynnymi obrazami
103 - prowadzenie samolotu z łapaniem coraz większej liczby chmur
107 Gra jest włączana do menu Gry na pulpicie GNOME.
109 Warto ją instalować tylko jeśli mamy dzieci używające komputera.
117 cp %{_datadir}/gettext/config.rpath .
126 GNUCHESS="%{_bindir}/gnuchess" \
127 --%{!?with_gnet:dis}%{?with_gnet:en}able-gnet
131 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 # replace fr with en one
137 cp -f docs/C/gcompris.info $RPM_BUILD_ROOT%{_infodir}/gcompris.info
139 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
141 # remove unpackaged files
142 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
143 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/menu/%{name}
145 %find_lang %{name} --with-gnome
148 rm -rf $RPM_BUILD_ROOT
150 %post -p /sbin/postshell
151 -/usr/sbin/fix-info-dir -c %{_infodir}
153 %postun -p /sbin/postshell
154 -/usr/sbin/fix-info-dir -c %{_infodir}
156 %files -f %{name}.lang
157 %defattr(644,root,root,755)
158 %doc AUTHORS ChangeLog NEWS README THANKS TODO
159 %attr(755,root,root) %{_bindir}/*
160 %dir %{_libdir}/%{name}
161 %attr(755,root,root) %{_libdir}/%{name}/lib*.so
162 %dir %{_datadir}/gcompris
163 %{_datadir}/gcompris/boards
164 %{_datadir}/gcompris/python
165 %{_desktopdir}/*.desktop
167 # gcompris uses its own goocanvas libraries with some specific changes
168 %attr(755,root,root) %{_libdir}/gcompris/libgoocanvas.so.0
169 %attr(755,root,root) %{_libdir}/gcompris/libgoocanvas.so.0.0.0
170 %{_mandir}/man6/gcompris.*