From 13890efb43c6bd25e4403993f9f15451fe3ee6b3d527de77ce501f993e01fcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 6 Mar 2013 14:19:56 +0000 Subject: [PATCH] - OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/mono-core?expand=0&rev=107 --- mono-core.changes | 6 ++++++ mono-core.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/mono-core.changes b/mono-core.changes index a391ae0..42c96de 100644 --- a/mono-core.changes +++ b/mono-core.changes @@ -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 diff --git a/mono-core.spec b/mono-core.spec index a79d3ec..48692b7 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -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