SHA256
1
0
forked from pool/mono-core

Accepting request 805905 from Mono:Factory

OBS-URL: https://build.opensuse.org/request/show/805905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mono-core?expand=0&rev=125
This commit is contained in:
Dominique Leuenberger 2020-05-16 20:24:47 +00:00 committed by Git OBS Bridge
commit 954bd29c74
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 29 10:05:31 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
- 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 <guillaume.gardet@opensuse.org>

View File

@ -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,12 @@ make
%install
%make_install
%if 0%{?suse_version} > 1500
# install the rpm file attributes to arm the dependency scanner
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install %{SOURCE3} %{buildroot}%{_rpmconfigdir}/fileattrs/mono.attr
%endif
# Remove hardcoded lib directory from the config
sed -i 's,\$mono_libdir/,,g' %{buildroot}%{_sysconfdir}/mono/config
@ -1293,6 +1300,11 @@ Mono development tools.
%{_bindir}/mono-api-info
%{_bindir}/mono-api-html
%{_bindir}/mono-cil-strip
%if 0%{?suse_version} > 1500
%{_rpmconfigdir}/fileattrs/mono.attr
%endif
%{_bindir}/mono-find-provides
%{_bindir}/mono-find-requires
%{_bindir}/mono-heapviz

3
mono.attr Normal file
View File

@ -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