Alexander Larsson 08def5
--- rpm-4.4.2/macros.in.mono	2005-11-15 17:45:13.000000000 -0500
Alexander Larsson 08def5
+++ rpm-4.4.2/macros.in	2005-11-15 17:45:44.000000000 -0500
Alexander Larsson 08def5
@@ -438,6 +438,9 @@
Alexander Larsson 08def5
 %__python_provides	@RPMCONFIGDIR@/pythondeps.sh --provides
Alexander Larsson 08def5
 %__python_requires	@RPMCONFIGDIR@/pythondeps.sh --requires
Alexander Larsson 08def5
 
Alexander Larsson 08def5
+%__mono_provides        @RPMCONFIGDIR@/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
Alexander Larsson 08def5
+%__mono_requires        @RPMCONFIGDIR@/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
Alexander Larsson 08def5
+
Alexander Larsson 08def5
 #
Alexander Larsson 08def5
 # fixowner, fixgroup, and fixperms are run at the end of hardcoded setup
Alexander Larsson 08def5
 # These macros are necessary only for legacy compatibility, and have moved
Alexander Larsson 08def5
--- rpm-4.4.2/build/rpmfc.h.mono	2005-11-15 17:09:26.000000000 -0500
Alexander Larsson 08def5
+++ rpm-4.4.2/build/rpmfc.h	2005-11-15 17:10:04.000000000 -0500
Alexander Larsson 08def5
@@ -77,6 +77,7 @@
Alexander Larsson 08def5
     RPMFC_PYTHON		= (1 << 26),
Alexander Larsson 08def5
     RPMFC_PHP			= (1 << 27),
Alexander Larsson 08def5
     RPMFC_TCL			= (1 << 28),
Alexander Larsson 08def5
+    RPMFC_MONO                  = (1 << 6),
Alexander Larsson 08def5
 
Alexander Larsson 08def5
     RPMFC_WHITE			= (1 << 29),
Alexander Larsson 08def5
     RPMFC_INCLUDE		= (1 << 30),
Alexander Larsson 08def5
--- rpm-4.4.2/build/rpmfc.c.mono	2005-11-15 16:04:46.000000000 -0500
Alexander Larsson 08def5
+++ rpm-4.4.2/build/rpmfc.c	2005-11-15 17:07:20.000000000 -0500
Alexander Larsson 08def5
@@ -458,6 +458,10 @@
Alexander Larsson 08def5
   /* XXX "python 2.3 byte-compiled" */
Alexander Larsson 08def5
   { "python ",			RPMFC_PYTHON|RPMFC_INCLUDE },
Alexander Larsson 08def5
 
Alexander Larsson 08def5
+  /* XXX .NET executables and libraries.  file(1) cannot differ from win32 
Alexander Larsson 08def5
+   * executables unfortunately :( */
Alexander Larsson 08def5
+  { "PE executable",            RPMFC_MONO|RPMFC_INCLUDE },
Alexander Larsson 08def5
+
Alexander Larsson 08def5
   { "current ar archive",	RPMFC_STATIC|RPMFC_LIBRARY|RPMFC_ARCHIVE|RPMFC_INCLUDE },
Alexander Larsson 08def5
 
Alexander Larsson 08def5
   { "Zip archive data",		RPMFC_COMPRESSED|RPMFC_ARCHIVE|RPMFC_INCLUDE },
Alexander Larsson 08def5
@@ -731,6 +735,11 @@
Alexander Larsson 08def5
 #endif
Alexander Larsson 08def5
 	    xx = rpmfcHelper(fc, 'R', "python");
Alexander Larsson 08def5
     }
Alexander Larsson 08def5
+    if (fc->fcolor->vals[fc->ix] & RPMFC_MONO) {
Alexander Larsson 08def5
+        xx = rpmfcHelper(fc, 'P', "mono");
Alexander Larsson 08def5
+        if (is_executable)
Alexander Larsson 08def5
+            xx = rpmfcHelper(fc, 'R', "mono");
Alexander Larsson 08def5
+    }
Alexander Larsson 08def5
 
Alexander Larsson 08def5
     return 0;
Alexander Larsson 08def5
 }
Alexander Larsson 08def5
@@ -1059,6 +1068,7 @@
Alexander Larsson 08def5
     { rpmfcELF,		RPMFC_ELF },
Alexander Larsson 08def5
     { rpmfcSCRIPT,	(RPMFC_SCRIPT|RPMFC_PERL) },
Alexander Larsson 08def5
     { rpmfcSCRIPT,	(RPMFC_SCRIPT|RPMFC_PYTHON) },
Alexander Larsson 08def5
+    { rpmfcSCRIPT,      RPMFC_MONO },
Alexander Larsson 08def5
     { NULL, 0 }
Alexander Larsson 08def5
 };
Alexander Larsson 08def5