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