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