]> git.pld-linux.org Git - packages/gcompris.git/blob - gcompris.spec
058d473fe30c37b5a8151a1af139b681fbf435b6
[packages/gcompris.git] / gcompris.spec
1 #
2 # TODO: gcompris uses its own goocanvas libraries with some specific changes, but do we need to include them into /usr/lib?
3 #
4 # Conditional build:
5 %bcond_without  gnet    # build without gnet support (disallow GCompris fetch content from a web server)
6 #
7 Summary:        Educational suite for kids 2-10 years old
8 Summary(pl.UTF-8):      Zestaw edukacyjny dla dzieci w wieku 2-10 lat
9 Name:           gcompris
10 Version:        9.1
11 Release:        0.1
12 License:        GPL v3+
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
48 Suggests:       gnuchess
49 Suggests:       tuxpaint
50 Obsoletes:      gcompris-devel
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %description
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
58 - Falling Dices
59 - Falling words
60 - Basic algebra
61 - Time learning with an analog clock
62 - Puzzle game with famous paintings
63 - Drive Plane to catch clouds in increasing number
64 - Balance the scales
65 - And much more ...
66
67 The game is included in the GNOME desktop under the Game menu.
68
69 You should install it only if you have children using this computer.
70
71 %description -l fr.UTF-8
72 GCompris / J'ai Compris est un logiciel éducatif pour les enfants à
73 partir de 2 ans.
74
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
78 - Les dés qui tombent
79 - Les mots qui tombent
80 - Algèbre simple
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
85
86 Le jeu est inclus dans le bureau GNOME sous le menu Jeux.
87
88 À installer si vous avez des enfants utilisant cet ordinateur.
89
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
95 - spadające kostki
96 - spadające słowa
97 - podstawowa algebra
98 - nauka czasu z zegarkiem analogowym
99 - układanka ze słynnymi obrazami
100 - prowadzenie samolotu z łapaniem coraz większej liczby chmur
101 - równoważenie wagi
102 - i wiele więcej...
103
104 Gra jest włączana do menu Gry na pulpicie GNOME.
105
106 Warto ją instalować tylko jeśli mamy dzieci używające komputera.
107
108 %prep
109 %setup -q
110 %patch0 -p1
111 %patch1 -p1
112
113 %build
114 cp %{_datadir}/gettext/config.rpath .
115 %{__glib_gettextize}
116 %{__intltoolize}
117 %{__libtoolize}
118 %{__aclocal}
119 %{__autoconf}
120 %{__autoheader}
121 %{__automake}
122 %configure \
123         GNUCHESS="%{_bindir}/gnuchess" \
124         --%{!?with_gnet:dis}%{?with_gnet:en}able-gnet
125 %{__make}
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129
130 %{__make} install \
131         DESTDIR=$RPM_BUILD_ROOT
132
133 # replace fr with en one
134 cp -f docs/C/gcompris.info $RPM_BUILD_ROOT%{_infodir}/gcompris.info
135
136 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
137
138 # remove unpackaged files
139 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
140 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/menu/%{name}
141
142 %find_lang %{name} --with-gnome
143
144 %clean
145 rm -rf $RPM_BUILD_ROOT
146
147 %post   -p      /sbin/postshell
148 -/usr/sbin/fix-info-dir -c %{_infodir}
149
150 %postun -p      /sbin/postshell
151 -/usr/sbin/fix-info-dir -c %{_infodir}
152
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
163 %{_infodir}/*.info*
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.*
168 %{_pixmapsdir}/*.png
This page took 0.081897 seconds and 3 git commands to generate.