]>
Commit | Line | Data |
---|---|---|
776cb178 | 1 | # |
55930104 | 2 | # TODO: gcompris uses its own goocanvas libraries with some specific changes, but do we need to include them into /usr/lib? |
3 | # | |
776cb178 | 4 | # Conditional build: |
5 | %bcond_without gnet # build without gnet support (disallow GCompris fetch content from a web server) | |
6 | # | |
5e727704 | 7 | Summary: Educational suite for kids 2-10 years old |
f35d4735 | 8 | Summary(pl.UTF-8): Zestaw edukacyjny dla dzieci w wieku 2-10 lat |
9fa4c457 | 9 | Name: gcompris |
55930104 | 10 | Version: 9.0 |
c89eb246 | 11 | Release: 0.1 |
68a9327d | 12 | License: GPL v3+ |
9fa4c457 | 13 | Group: X11/Applications/Games |
55930104 | 14 | Source0: http://downloads.sourceforge.net/gcompris/%{name}-%{version}.tar.gz |
15 | # Source0-md5: d39b0fc879b8c3689140360e32eed711 | |
27ad1f74 | 16 | Patch0: %{name}-info.patch |
f430e675 | 17 | Patch1: %{name}-desktop.patch |
486822a2 | 18 | URL: http://gcompris.net/ |
a4a857f2 JK |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
21 | BuildRequires: gettext-devel | |
776cb178 | 22 | BuildRequires: gnet-devel |
75eaddf6 | 23 | BuildRequires: gnome-common |
68a9327d | 24 | BuildRequires: gstreamer-devel |
a4a857f2 | 25 | BuildRequires: intltool |
27ad1f74 | 26 | BuildRequires: libao-devel |
9fa4c457 | 27 | BuildRequires: libgnomeui-devel >= 2.2.0 |
27ad1f74 | 28 | BuildRequires: libogg-devel |
55930104 | 29 | BuildRequires: librsvg-devel |
4145b06c | 30 | BuildRequires: libstdc++-devel |
a4a857f2 | 31 | BuildRequires: libtool |
9fa4c457 | 32 | BuildRequires: libvorbis-devel |
27ad1f74 | 33 | BuildRequires: libxml2-devel |
4145b06c | 34 | BuildRequires: pkgconfig |
27ad1f74 | 35 | BuildRequires: popt-devel >= 1.5 |
9fa4c457 | 36 | BuildRequires: python-devel |
36ee287d | 37 | BuildRequires: python-gnome-devel |
55930104 | 38 | BuildRequires: python-pycairo-devel |
f430e675 JK |
39 | BuildRequires: python-sqlite |
40 | BuildRequires: sqlite3-devel | |
55930104 | 41 | BuildRequires: tetex |
57d06fdb | 42 | BuildRequires: texi2html |
c89eb246 | 43 | BuildRequires: texinfo |
776cb178 | 44 | BuildRequires: xorg-lib-libXxf86vm-devel |
34c323c5 | 45 | Requires: gstreamer-audio-formats |
46 | Requires: gstreamer-audiosink | |
47 | Requires: gstreamer-vorbis | |
48dac87a | 48 | Requires: python-gnome-canvas |
49 | Requires: python-modules | |
9453e8d8 | 50 | Requires: python-sqlite |
776cb178 | 51 | Suggests: gnuchess |
34c323c5 | 52 | Suggests: tuxpaint |
dcf4c2a6 | 53 | Obsoletes: gcompris-devel |
2e89556e | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9fa4c457 | 55 | |
56 | %description | |
2e89556e | 57 | GCompris / I Have Understood is an educational game for children |
5e727704 | 58 | starting at 2. Today several Boards are implemented: |
9fa4c457 | 59 | - Click on the animals => learn the mouse/click usage |
60 | - Type the falling letters => learn the keyboard usage | |
61 | - Falling Dices | |
62 | - Falling words | |
63 | - Basic algebra | |
64 | - Time learning with an analog clock | |
65 | - Puzzle game with famous paintings | |
66 | - Drive Plane to catch clouds in increasing number | |
67 | - Balance the scales | |
68 | - And much more ... | |
69 | ||
78406971 | 70 | The game is included in the GNOME desktop under the Game menu. |
9fa4c457 | 71 | |
72 | You should install it only if you have children using this computer. | |
73 | ||
20990158 JR |
74 | %description -l fr.UTF-8 |
75 | GCompris / J'ai Compris est un logiciel éducatif pour les enfants à | |
5e727704 | 76 | partir de 2 ans. |
9fa4c457 | 77 | |
20990158 | 78 | Aujourd'hui, plusieurs tableaux sont implémentés : |
9fa4c457 | 79 | - Cliquer sur les animaux => apprentissage du click et de la souris |
80 | - Entrer les lettres qui tombent => Apprentissage du clavier | |
20990158 | 81 | - Les dés qui tombent |
9fa4c457 | 82 | - Les mots qui tombent |
20990158 | 83 | - Algèbre simple |
9fa4c457 | 84 | - Apprentissage de la lecture de l'heure sur une horloge analogique |
20990158 | 85 | - Puzzle avec des tableaux célèbres |
9fa4c457 | 86 | - Pilote un avion pour attraper les nuages dans l'ordre |
87 | - Equilibre la balance | |
88 | ||
78406971 | 89 | Le jeu est inclus dans le bureau GNOME sous le menu Jeux. |
9fa4c457 | 90 | |
20990158 | 91 | À installer si vous avez des enfants utilisant cet ordinateur. |
9fa4c457 | 92 | |
20990158 JR |
93 | %description -l pl.UTF-8 |
94 | GCompris / Zrozumiałem to gra edukacyjna dla dzieci od 2 lat. | |
2e89556e | 95 | Aktualnie zaimplementowane jest kilka plansz: |
20990158 JR |
96 | - klikanie na zwierzętach - nauka używania myszy/klikania |
97 | - wpisywanie spadających liter - nauka używania klawiatury | |
98 | - spadające kostki | |
99 | - spadające słowa | |
2e89556e JB |
100 | - podstawowa algebra |
101 | - nauka czasu z zegarkiem analogowym | |
20990158 JR |
102 | - układanka ze słynnymi obrazami |
103 | - prowadzenie samolotu z łapaniem coraz większej liczby chmur | |
104 | - równoważenie wagi | |
105 | - i wiele więcej... | |
2e89556e | 106 | |
20990158 | 107 | Gra jest włączana do menu Gry na pulpicie GNOME. |
2e89556e | 108 | |
20990158 | 109 | Warto ją instalować tylko jeśli mamy dzieci używające komputera. |
2e89556e | 110 | |
9fa4c457 | 111 | %prep |
e8949cf9 | 112 | %setup -q |
27ad1f74 | 113 | %patch0 -p1 |
a4a857f2 | 114 | %patch1 -p1 |
a2494871 | 115 | |
9fa4c457 | 116 | %build |
776cb178 | 117 | cp %{_datadir}/gettext/config.rpath . |
118 | %{__glib_gettextize} | |
119 | %{__intltoolize} | |
3280a88b | 120 | %{__libtoolize} |
a4a857f2 JK |
121 | %{__aclocal} |
122 | %{__autoconf} | |
123 | %{__autoheader} | |
124 | %{__automake} | |
27ad1f74 | 125 | %configure \ |
776cb178 | 126 | GNUCHESS="%{_bindir}/gnuchess" \ |
127 | --%{!?with_gnet:dis}%{?with_gnet:en}able-gnet | |
9fa4c457 | 128 | %{__make} |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
486822a2 | 134 | DESTDIR=$RPM_BUILD_ROOT |
9fa4c457 | 135 | |
27ad1f74 JB |
136 | # replace fr with en one |
137 | cp -f docs/C/gcompris.info $RPM_BUILD_ROOT%{_infodir}/gcompris.info | |
138 | ||
139 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
140 | ||
776cb178 | 141 | # remove unpackaged files |
142 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir | |
143 | rm -f $RPM_BUILD_ROOT%{_prefix}/lib/menu/%{name} | |
144 | ||
9fa4c457 | 145 | %find_lang %{name} --with-gnome |
146 | ||
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
f79383d3 ER |
150 | %post -p /sbin/postshell |
151 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
27ad1f74 | 152 | |
f79383d3 ER |
153 | %postun -p /sbin/postshell |
154 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
27ad1f74 | 155 | |
9fa4c457 | 156 | %files -f %{name}.lang |
157 | %defattr(644,root,root,755) | |
fcd357e8 | 158 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
9fa4c457 | 159 | %attr(755,root,root) %{_bindir}/* |
9fa4c457 | 160 | %dir %{_libdir}/%{name} |
3280a88b | 161 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so |
9fa4c457 | 162 | %dir %{_datadir}/gcompris |
776cb178 | 163 | %{_datadir}/gcompris/boards |
3280a88b | 164 | %{_datadir}/gcompris/python |
f6903810 | 165 | %{_desktopdir}/*.desktop |
27ad1f74 | 166 | %{_infodir}/*.info* |
55930104 | 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 | |
8e11f886 | 170 | %{_mandir}/man6/gcompris.* |
9fa4c457 | 171 | %{_pixmapsdir}/*.png |