SHA256
1
0
forked from pool/mono-core

Accepting request 798897 from home:dimstar:Factory

- Add mono.attr and install it to %_rpmconfigdir/fileattrs: enable
  the dependency scanner for rpm packages (boo#1152775).

OBS-URL: https://build.opensuse.org/request/show/798897
OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/mono-core?expand=0&rev=207
This commit is contained in:
Dominique Leuenberger 2020-05-01 09:11:58 +00:00 committed by Git OBS Bridge
parent 17384be9e1
commit 3e264b8f69
3 changed files with 15 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,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

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