From: Igor Kulaychuk Date: Mon, 15 Oct 2018 08:52:42 +0000 (+0300) Subject: Improve nuget handling in spec file X-Git-Tag: submit/tizen/20181205.102314~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b71f9462b7b2667f221e997239716bcaaecfb58e;p=sdk%2Ftools%2Fnetcoredbg.git Improve nuget handling in spec file --- diff --git a/packaging/netcoredbg.spec b/packaging/netcoredbg.spec index c5326f8..4d2ea6c 100644 --- a/packaging/netcoredbg.spec +++ b/packaging/netcoredbg.spec @@ -57,13 +57,13 @@ This is a CoreCLR debugger for Tizen. gzip -dc %{SOURCE0} | tar -xvf - cd netcoredbg cp %{SOURCE1001} .. -mkdir -p packaging/pkgs/nuget -cp -r /nuget/* packaging/pkgs/nuget/ +mkdir packaging/pkgs +ln -s /nuget packaging/pkgs/nuget export CSVER=$(ls /nuget/microsoft.codeanalysis.common.*.nupkg | sort -n | tail -1 | cut -d "." -f4-6) -cp packaging/microsoft.codeanalysis.scripting.common.$CSVER.nupkg packaging/pkgs/nuget/ -cp packaging/microsoft.codeanalysis.csharp.scripting.$CSVER.nupkg packaging/pkgs/nuget/ +cp packaging/microsoft.codeanalysis.scripting.common.$CSVER.nupkg packaging/pkgs/ +cp packaging/microsoft.codeanalysis.csharp.scripting.$CSVER.nupkg packaging/pkgs/ %build export CFLAGS=" --target=%{_host}" @@ -90,7 +90,7 @@ cmake ../netcoredbg \ -DBUILD_MANAGED=OFF make %{?jobs:-j%jobs} -%dotnet_build -s / -s ../netcoredbg/packaging/pkgs ../netcoredbg/src/debug/netcoredbg +%dotnet_build -s ../netcoredbg/packaging/pkgs ../netcoredbg/src/debug/netcoredbg %install cd build