Use host libraries when host arch is x86_64
authorWonyoung Choi <wy80.choi@samsung.com>
Fri, 17 Jan 2020 01:32:32 +0000 (10:32 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Fri, 17 Jan 2020 01:32:32 +0000 (10:32 +0900)
Change-Id: I3fc8d280626880906812321fcabd15d9f583a8fe

packaging/dotnet-build-tools.spec

index 6fa9eff..a45722a 100644 (file)
@@ -18,10 +18,10 @@ AutoReqProv: no
 BuildRequires: patchelf
 
 Requires: corefx-managed-ref
+Requires: libicu
 
 %description
-Build target files (.Targets) and Tools (including NuGet.exe) for building
-C# Deivce API with xbuild in GBS environment.
+Provides dotnet-sdk for GBS environment
 
 %define TOOLS_PATH /usr/share/dotnet-build-tools
 %define CLI_PATH %{TOOLS_PATH}/cli
@@ -35,6 +35,7 @@ tar xvfz %{SOURCE22} -C dotnet/deps
 
 %build
 # Prepare dotnet-cli
+%ifnarch x86_64
 for file in $( find ./dotnet -name "dotnet" -type f )
 do
     patchelf --set-interpreter %{CLI_PATH}/deps/ld-linux-x86-64.so.2 ${file}
@@ -44,6 +45,7 @@ for file in $( find ./dotnet -type f \( -name "*.so" -or -name "*.so.*" \) -not
 do
     patchelf --set-rpath %{CLI_PATH}/deps/ ${file}
 done
+%endif
 
 # overrides
 cp -f overrides/Microsoft.Build.Tasks.Core.dll dotnet/sdk/*/Microsoft.Build.Tasks.Core.dll