rpm/mono-find-requires.diff
Dirk Mueller dd2aa6fb95 Accepting request 78828 from home:oertel:branches:openSUSE:Factory
- workaround in mono-find-requires: use >= as operator when finding
  .NET 1.0 dependencies, the .NET 1.5 libraries are compatible
  (note mono-find-requires and mono-find-provides as used by the
   internal dependency generator are really outdated)

OBS-URL: https://build.opensuse.org/request/show/78828
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=140
2011-08-15 19:21:00 +00:00

18 lines
419 B
Diff

--- scripts/mono-find-requires
+++ scripts/mono-find-requires
@@ -42,8 +42,12 @@
(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