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: d39b0fc879b8c3689140360e32eed711
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: gstreamer-devel
24 BuildRequires: intltool
25 BuildRequires: libao-devel
26 BuildRequires: libgnomeui-devel >= 2.2.0
27 BuildRequires: libogg-devel
28 BuildRequires: librsvg-devel
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtool
31 BuildRequires: libvorbis-devel
32 BuildRequires: libxml2-devel
33 BuildRequires: pkgconfig
34 BuildRequires: popt-devel >= 1.5
35 BuildRequires: python-devel
36 BuildRequires: python-gnome-devel
37 BuildRequires: python-pycairo-devel
38 BuildRequires: python-sqlite
39 BuildRequires: sqlite3-devel
41 BuildRequires: texi2html
42 BuildRequires: texinfo
43 BuildRequires: xorg-lib-libXxf86vm-devel
44 Requires: gstreamer-audio-formats
45 Requires: gstreamer-audiosink
46 Requires: gstreamer-vorbis
47 Requires: python-gnome-canvas
48 Requires: python-modules
49 Requires: python-sqlite
52 Obsoletes: gcompris-devel
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 GCompris / I Have Understood is an educational game for children
57 starting at 2. Today several Boards are implemented:
58 - Click on the animals => learn the mouse/click usage
59 - Type the falling letters => learn the keyboard usage
63 - Time learning with an analog clock
64 - Puzzle game with famous paintings
65 - Drive Plane to catch clouds in increasing number
69 The game is included in the GNOME desktop under the Game menu.
71 You should install it only if you have children using this computer.
73 %description -l fr.UTF-8
74 GCompris / J'ai Compris est un logiciel éducatif pour les enfants à
77 Aujourd'hui, plusieurs tableaux sont implémentés :
78 - Cliquer sur les animaux => apprentissage du click et de la souris
79 - Entrer les lettres qui tombent => Apprentissage du clavier
81 - Les mots qui tombent
83 - Apprentissage de la lecture de l'heure sur une horloge analogique
84 - Puzzle avec des tableaux célèbres
85 - Pilote un avion pour attraper les nuages dans l'ordre
86 - Equilibre la balance
88 Le jeu est inclus dans le bureau GNOME sous le menu Jeux.
90 À installer si vous avez des enfants utilisant cet ordinateur.
92 %description -l pl.UTF-8
93 GCompris / Zrozumiałem to gra edukacyjna dla dzieci od 2 lat.
94 Aktualnie zaimplementowane jest kilka plansz:
95 - klikanie na zwierzętach - nauka używania myszy/klikania
96 - wpisywanie spadających liter - nauka używania klawiatury
100 - nauka czasu z zegarkiem analogowym
101 - układanka ze słynnymi obrazami
102 - prowadzenie samolotu z łapaniem coraz większej liczby chmur
106 Gra jest włączana do menu Gry na pulpicie GNOME.
108 Warto ją instalować tylko jeśli mamy dzieci używające komputera.
116 cp %{_datadir}/gettext/config.rpath .
125 GNUCHESS="%{_bindir}/gnuchess" \
126 --%{!?with_gnet:dis}%{?with_gnet:en}able-gnet
130 rm -rf $RPM_BUILD_ROOT
133 DESTDIR=$RPM_BUILD_ROOT
135 # replace fr with en one
136 cp -f docs/C/gcompris.info $RPM_BUILD_ROOT%{_infodir}/gcompris.info
138 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
140 # remove unpackaged files
141 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
142 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/menu/%{name}
144 %find_lang %{name} --with-gnome
147 rm -rf $RPM_BUILD_ROOT
149 %post -p /sbin/postshell
150 -/usr/sbin/fix-info-dir -c %{_infodir}
152 %postun -p /sbin/postshell
153 -/usr/sbin/fix-info-dir -c %{_infodir}
155 %files -f %{name}.lang
156 %defattr(644,root,root,755)
157 %doc AUTHORS ChangeLog NEWS README THANKS TODO
158 %attr(755,root,root) %{_bindir}/*
159 %dir %{_libdir}/%{name}
160 %attr(755,root,root) %{_libdir}/%{name}/lib*.so
161 %dir %{_datadir}/gcompris
162 %{_datadir}/gcompris/boards
163 %{_datadir}/gcompris/python
164 %{_desktopdir}/*.desktop
166 # gcompris uses its own goocanvas libraries with some specific changes
167 %attr(755,root,root) %{_libdir}/gcompris/libgoocanvas.so.0
168 %attr(755,root,root) %{_libdir}/gcompris/libgoocanvas.so.0.0.0
169 %{_mandir}/man6/gcompris.*