From fb7d55fa724ad9570c0a6921ef24d9586d8fe65c Mon Sep 17 00:00:00 2001 From: Etienne CHAMPETIER Date: Mon, 26 Jan 2015 17:20:17 +0100 Subject: [PATCH] specfile: don't assume %_prefix is 1 directory in depth when building scl rpm, %_prefix is /opt/vendor/... Signed-off-by: Etienne CHAMPETIER --- mono-core.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mono-core.spec b/mono-core.spec index ab47917ae7..53c090139b 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -178,9 +178,9 @@ 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} +ln -s . %{buildroot}%{_prefix}/symlink-for-brp-compress RPM_BUILD_ROOT=%{buildroot}%{_prefix} /usr/lib/rpm/brp-compress -rm %{buildroot}%{_prefix}%{_prefix} +rm %{buildroot}%{_prefix}/symlink-for-brp-compress # Fix non-executable-in-bin chmod +x %{buildroot}%{_bindir}/mono-gdb.py