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