[gcompris-devel] Red Hat RPM for gcompris?

Christian Rose menthos at menthos.com
Thu Dec 27 02:53:02 UTC 2001


Thanks a lot. I made a patch to gcompris.spec.in that will let it get
the correct dependency both when built on Mandrake and when built on Red
Hat systems. The patch is attached. I also removed the references to the
dependencies in the descriptions, these don't differ too much from
dependencies for most gnome apps and should be easy to query by doing a
rpm -qp --requires query.


Christian



tor 2001-12-27 klockan 10.34 skrev Bruno Coudoin:
> I added the notice to the gcompris homepage, it should appear within
> 24h.
> 
> Thanks for your help on gcompris.
> 
> Bruno.
> 
> 
> le jeu 27-12-2001 à 02:43, Christian Rose a écrit :
> > Thanks for the answer. I will ask Red Hat for official packages included
> > with the distribution.
> > 
> > In the mean time, would it be possible to change the home page to inform
> > about the packages provided being Mandrake packages, to avoid confusion?
> > 
> > Christian

-------------- next part --------------
--- /home/menthos/temp/gcompris-0.9.6/gcompris.spec.in	Mon Oct 29 17:49:35 2001
+++ /home/menthos/temp/gcompris/gcompris-0.9.6/gcompris.spec.in	Thu Dec 27 11:30:16 2001
@@ -2,6 +2,7 @@
 %define RELEASE 	1
 %define rel     	%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
 %define prefix		/usr
+%define canvaspackage	%(if rpm -q redhat-release &> /dev/null; then echo gdk-pixbuf-gnome; elif rpm -q mandrake-release &> /dev/null; then echo gdk-pixbuf-gnomecanvas; else echo; fi)
 
 Summary: GCompris / I Have Inderstood.
 Name: 		gcompris
@@ -13,7 +14,7 @@
 BuildRoot: 	/var/tmp/gcompris-%{PACKAGE_VERSION}-root
 URL: 		http://savannah.gnu.org
 Docdir: 	%{prefix}/share/doc/gcompris-%{PACKAGE_VERSION}
-Requires:	gnome-libs libxml2 gdk-pixbuf-gnomecanvas gdk-pixbuf
+Requires:	gnome-libs libxml2 gdk-pixbuf %canvaspackage
 Packager:       Bruno Coudoin <bcoudoin.coudoin at free.fr>
 
 %description
@@ -32,8 +33,6 @@
 The Game is included in the Gnome Desktop under the Game menu.
 
 You should install it only if you have children using this computer.
-You will also need to install the gnome-libs package,  gdk-pixbuf-gnomecanvas,
-xml-i18n-tools, gdk-pixbuf and the libxml.
 
 %description -l fr
 GCompris / J'ai Compris est un logiciel éducatif pour les enfants 
@@ -53,10 +52,13 @@
 Le jeux est inclus dans le bureau Gnome sous le menu Jeux.
 
 A installer si vous avez des enfants utilisant cet ordinateur.
-Les packetages gnome-libs, libxml, gdk-pixbuf-gnomecanvas,
-xml-i18n-tools, gdk-pixbuf doivent être installés.
 
 %changelog
+* Thu Dec 27 2001  Christian Rose  <menthos at menthos.com>
+- gcompris.spec.in: Added fix for the different namings of
+-                   the gnomecanvas packages on Mandrake
+-                   and Red Hat systems. Also removed references
+-                   to dependencies in the descriptions.
 * Sun Sep 30 2001  Bruno Coudoin  <bruno.coudoin at free.fr>
 - GCompris: Release 0.7.5
 - TRANSLATION IS FIXED


More information about the Gcompris-devel mailing list