Accepting request 157509 from Mono:Factory

- Remove hardcoded lib directory from the config, this unbreaks
 running GDI+ programs on 64bit.

OBS-URL: https://build.opensuse.org/request/show/157509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mono-core?expand=0&rev=69
This commit is contained in:
Stephan Kulow 2013-03-08 09:54:32 +00:00 committed by Git OBS Bridge
commit 72b81eec55
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 6 14:10:35 UTC 2013 - idonmez@suse.com
- Remove hardcoded lib directory from the config, this unbreaks
running GDI+ programs on 64bit.
-------------------------------------------------------------------
Sun Feb 24 21:12:42 UTC 2013 - mailaender@opensuse.org

View File

@ -155,28 +155,38 @@ make %{?_smp_mflags}
%install
%make_install
# Remove hardcoded lib directory from the config
sed -i s,%{_prefix}/lib/,,g %{buildroot}%{_sysconfdir}/mono/config
# remove .la files (they are generally bad news)
rm -f %{buildroot}%{_libdir}/*.la
# remove Windows-only stuff
rm -rf %{buildroot}%{_prefix}/lib/mono/*/Mono.Security.Win32*
rm -f %{buildroot}%{_libdir}/libMonoSupportW.*
# remove .a files for libraries that are really only for us
rm -f %{buildroot}%{_libdir}/libMonoPosixHelper.a
rm -f %{buildroot}%{_libdir}/libikvm-native.a
rm -f %{buildroot}%{_libdir}/libmono-llvm.a
# remove libgc cruft
rm -rf %{buildroot}%{_datadir}/libgc-mono
# remove stuff that we don't package
rm -f %{buildroot}%{_bindir}/cilc
rm -f %{buildroot}%{_mandir}/man1/cilc.1*
rm -f %{buildroot}%{_prefix}/lib/mono/*/browsercaps-updater.exe*
rm -f %{buildroot}%{_prefix}/lib/mono/*/culevel.exe*
rm -f %{buildroot}%{_prefix}/lib/mono/2.0/cilc.exe*
# brp-compress doesn't search _mandir
# so we cheat it
ln -s . %{buildroot}%{_prefix}%{_prefix}
RPM_BUILD_ROOT=%{buildroot}%{_prefix} /usr/lib/rpm/brp-compress
rm %{buildroot}%{_prefix}%{_prefix}
%fdupes %{buildroot}%{_prefix}
%find_lang mcs
%if %sgen == no