3 %bcond_without gnet # build without gnet support (disallow GCompris fetch content from a web server)
5 Summary: Educational suite for kids 2-10 years old
6 Summary(pl.UTF-8): Zestaw edukacyjny dla dzieci w wieku 2-10 lat
11 Group: X11/Applications/Games
12 Source0: http://dl.sourceforge.net/gcompris/%{name}-%{version}.tar.gz
13 # Source0-md5: fc8d8364b8faf77be8281d90af66a481
14 Patch0: %{name}-info.patch
15 Patch1: %{name}-desktop.patch
16 URL: http://gcompris.net/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: gettext-devel
20 BuildRequires: gnet-devel
21 BuildRequires: gstreamer-devel
22 BuildRequires: intltool
23 BuildRequires: libao-devel
24 BuildRequires: libgnomeui-devel >= 2.2.0
25 BuildRequires: libogg-devel
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool
28 BuildRequires: libvorbis-devel
29 BuildRequires: libxml2-devel
30 BuildRequires: pkgconfig
31 BuildRequires: popt-devel >= 1.5
32 BuildRequires: python-devel
33 BuildRequires: python-gnome-devel
34 BuildRequires: python-sqlite
35 BuildRequires: sqlite3-devel
37 BuildRequires: texinfo
38 BuildRequires: xorg-lib-libXxf86vm-devel
39 Requires: python-gnome-canvas
40 Requires: python-modules
41 Requires: python-sqlite
43 Obsoletes: gcompris-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 GCompris / I Have Understood is an educational game for children
48 starting at 2. Today several Boards are implemented:
49 - Click on the animals => learn the mouse/click usage
50 - Type the falling letters => learn the keyboard usage
54 - Time learning with an analog clock
55 - Puzzle game with famous paintings
56 - Drive Plane to catch clouds in increasing number
60 The game is included in the GNOME desktop under the Game menu.
62 You should install it only if you have children using this computer.
64 %description -l fr.UTF-8
65 GCompris / J'ai Compris est un logiciel éducatif pour les enfants à
68 Aujourd'hui, plusieurs tableaux sont implémentés :
69 - Cliquer sur les animaux => apprentissage du click et de la souris
70 - Entrer les lettres qui tombent => Apprentissage du clavier
72 - Les mots qui tombent
74 - Apprentissage de la lecture de l'heure sur une horloge analogique
75 - Puzzle avec des tableaux célèbres
76 - Pilote un avion pour attraper les nuages dans l'ordre
77 - Equilibre la balance
79 Le jeu est inclus dans le bureau GNOME sous le menu Jeux.
81 À installer si vous avez des enfants utilisant cet ordinateur.
83 %description -l pl.UTF-8
84 GCompris / Zrozumiałem to gra edukacyjna dla dzieci od 2 lat.
85 Aktualnie zaimplementowane jest kilka plansz:
86 - klikanie na zwierzętach - nauka używania myszy/klikania
87 - wpisywanie spadających liter - nauka używania klawiatury
91 - nauka czasu z zegarkiem analogowym
92 - układanka ze słynnymi obrazami
93 - prowadzenie samolotu z łapaniem coraz większej liczby chmur
97 Gra jest włączana do menu Gry na pulpicie GNOME.
99 Warto ją instalować tylko jeśli mamy dzieci używające komputera.
107 cp %{_datadir}/gettext/config.rpath .
116 GNUCHESS="%{_bindir}/gnuchess" \
117 --%{!?with_gnet:dis}%{?with_gnet:en}able-gnet
121 rm -rf $RPM_BUILD_ROOT
124 DESTDIR=$RPM_BUILD_ROOT
126 # replace fr with en one
127 cp -f docs/C/gcompris.info $RPM_BUILD_ROOT%{_infodir}/gcompris.info
129 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
131 # remove unpackaged files
132 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
133 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/menu/%{name}
135 %find_lang %{name} --with-gnome
138 rm -rf $RPM_BUILD_ROOT
140 %post -p /sbin/postshell
141 -/usr/sbin/fix-info-dir -c %{_infodir}
143 %postun -p /sbin/postshell
144 -/usr/sbin/fix-info-dir -c %{_infodir}
146 %files -f %{name}.lang
147 %defattr(644,root,root,755)
148 %doc AUTHORS ChangeLog NEWS README THANKS TODO
149 %attr(755,root,root) %{_bindir}/*
150 %dir %{_libdir}/%{name}
151 %attr(755,root,root) %{_libdir}/%{name}/lib*.so
152 %dir %{_datadir}/gcompris
153 %{_datadir}/gcompris/boards
154 %{_datadir}/gcompris/python
155 %{_desktopdir}/*.desktop