]> git.pld-linux.org Git - packages/gcompris.git/blame - gcompris.spec
disable info file build, gives errors
[packages/gcompris.git] / gcompris.spec
CommitLineData
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 6Summary: Educational suite for kids 2-10 years old
f35d4735 7Summary(pl.UTF-8): Zestaw edukacyjny dla dzieci w wieku 2-10 lat
9fa4c457 8Name: gcompris
ebde20b5 9Version: 11.09
c912e56e 10Release: 1
68a9327d 11License: GPL v3+
9fa4c457 12Group: X11/Applications/Games
01ef02b5 13Source0: http://downloads.sourceforge.net/gcompris/%{name}-%{version}.tar.gz
ebde20b5 14# Source0-md5: b0066d5e0bb4e2fbb7380f723b51c598
27ad1f74 15Patch0: %{name}-info.patch
f430e675 16Patch1: %{name}-desktop.patch
486822a2 17URL: http://gcompris.net/
a4a857f2
JK
18BuildRequires: autoconf
19BuildRequires: automake
4772ceac 20BuildRequires: gettext-tools
776cb178 21BuildRequires: gnet-devel
75eaddf6 22BuildRequires: gnome-common
68a9327d 23BuildRequires: gstreamer-devel
a4a857f2 24BuildRequires: intltool
27ad1f74 25BuildRequires: libao-devel
27ad1f74 26BuildRequires: libogg-devel
ebde20b5 27BuildRequires: librsvg-devel >= 1:2.34.1
4145b06c 28BuildRequires: libstdc++-devel
a4a857f2 29BuildRequires: libtool
9fa4c457 30BuildRequires: libvorbis-devel
27ad1f74 31BuildRequires: libxml2-devel
4145b06c 32BuildRequires: pkgconfig
27ad1f74 33BuildRequires: popt-devel >= 1.5
9fa4c457 34BuildRequires: python-devel
55930104 35BuildRequires: python-pycairo-devel
139599a0 36BuildRequires: python-pygtk-devel
f430e675
JK
37BuildRequires: python-sqlite
38BuildRequires: sqlite3-devel
57d06fdb 39BuildRequires: texi2html
c89eb246 40BuildRequires: texinfo
34c323c5 41Requires: gstreamer-audio-formats
42Requires: gstreamer-audiosink
43Requires: gstreamer-vorbis
48dac87a 44Requires: python-gnome-canvas
45Requires: python-modules
9453e8d8 46Requires: python-sqlite
776cb178 47Suggests: gnuchess
34c323c5 48Suggests: tuxpaint
dcf4c2a6 49Obsoletes: gcompris-devel
2e89556e 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9fa4c457 51
52%description
2e89556e 53GCompris / I Have Understood is an educational game for children
5e727704 54starting 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 66The game is included in the GNOME desktop under the Game menu.
9fa4c457 67
68You should install it only if you have children using this computer.
69
20990158
JR
70%description -l fr.UTF-8
71GCompris / J'ai Compris est un logiciel éducatif pour les enfants à
5e727704 72partir de 2 ans.
9fa4c457 73
20990158 74Aujourd'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 85Le 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
90GCompris / Zrozumiałem to gra edukacyjna dla dzieci od 2 lat.
2e89556e 91Aktualnie 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 103Gra jest włączana do menu Gry na pulpicie GNOME.
2e89556e 104
20990158 105Warto 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 116cp %{_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
132rm -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}
140cp -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
151rm -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
This page took 0.321161 seconds and 4 git commands to generate.