diff --git a/mono-core.changes b/mono-core.changes index 8ad51c3..275f25f 100644 --- a/mono-core.changes +++ b/mono-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 29 10:05:31 UTC 2020 - Dominique Leuenberger + +- Add mono.attr and install it to %_rpmconfigdir/fileattrs: enable + the dependency scanner for rpm packages (boo#1152775). + ------------------------------------------------------------------- Thu Mar 19 07:44:57 UTC 2020 - Guillaume GARDET diff --git a/mono-core.spec b/mono-core.spec index ca44d7b..5602557 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -51,6 +51,7 @@ Url: http://www.mono-project.com Source0: http://download.mono-project.com/sources/mono/mono-%{version}.%{version_suffix}.tar.xz Source1: mono-core.rpmlintrc Source2: gmcs +Source3: mono.attr # ppc build segfault so exclude it ExcludeArch: ppc # PATCH-FIX-OPENSUSE remove checks for libmono in mono-find-provides and mono-find-requires scripts @@ -277,6 +278,10 @@ make %install %make_install +# install the rpm file attributes to arm the dependency scanner +mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs +install %{SOURCE3} %{buildroot}%{_rpmconfigdir}/fileattrs/mono.attr + # Remove hardcoded lib directory from the config sed -i 's,\$mono_libdir/,,g' %{buildroot}%{_sysconfdir}/mono/config @@ -1293,6 +1298,7 @@ Mono development tools. %{_bindir}/mono-api-info %{_bindir}/mono-api-html %{_bindir}/mono-cil-strip +%{_rpmconfigdir}/fileattrs/mono.attr %{_bindir}/mono-find-provides %{_bindir}/mono-find-requires %{_bindir}/mono-heapviz diff --git a/mono.attr b/mono.attr new file mode 100644 index 0000000..6ef5541 --- /dev/null +++ b/mono.attr @@ -0,0 +1,3 @@ +%__mono_provides %{_bindir}/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir} +%__mono_requires %{_bindir}/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir} +%__mono_magic Mono/.Net assembly