This patch adds the Suggests: tag to yume.spec. This tag is used only if rpm 
>=4.6, otherwise it is ignored.
In fact, this is usefull to suggest repoquery as yume prefers repoquery to its 
own provided repoquery commands.

-- 
        Olivier LAHAYE
        CEA Saclay
        DRT-LIST-DETECS-SSTM
--- yume.spec.orig	2009-11-19 11:42:23.000000000 +0100
+++ yume.spec	2009-11-19 11:44:29.000000000 +0100
@@ -1,4 +1,6 @@
 # $Id$
+# Check if Suggests: tag can be sused.
+%define has_rpm_suggests %(echo "$(rpm --version |grep -E -o '[0-9]+(\.[0-9]+){0,1}'|head -1) >= 4.6"|bc)
 Summary: Wrapper to yum for clusters
 Name: yume
 Version: 2.8.11
@@ -17,6 +19,10 @@
 # actually "createrepo" is also needed, but only on the master node,
 # so don't add it to the requires.
 AutoReqProv: no
+# If rpm version >= 4.6, then Suggests repoquery
+%if %has_rpm_suggests
+Suggests: repoquery
+%endif
 
 %description 
 
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to