2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
[mono.git] / scripts / mono-find-requires.in
index 446d9fcfd2da452347b4bf3c8a7340dff66bb6e9..c2b8832f95674a575135d95cc768ae4528ebcacf 100644 (file)
@@ -38,12 +38,16 @@ REQUIRES=$(
                                sub(/Version=/, "", $2);
                                VERSION=$2
                        }
-       
+
                        (START==1) && /^\tName=/ {
                                sub(/Name=/, "", $1);
                                LIBNAME=$1
-       
-                               print "mono(" LIBNAME ") = " VERSION
+                               # Allow rpm deps to be resolved for 1.0 profile version
+                               if (VERSION=="1.0.3300.0")
+                                       OP=">="
+                               else
+                                       OP="="
+                               print "mono(" LIBNAME ") " OP " " VERSION
                                START=0
                        }
                    ') 2> /dev/null
@@ -80,7 +84,7 @@ UNIQ=$(echo "$PROVIDES
 $REQUIRES" | sort | uniq -u)
 
 #
-# Of those, only chose the ones that are in REQUIRES
+# Of those, only choose the ones that are in REQUIRES
 #
 echo "$UNIQ
 $REQUIRES" | sort | uniq -d