From: Wonyoung Choi Date: Wed, 6 Sep 2017 02:23:33 +0000 (+0900) Subject: Fix build-break for project.json style project X-Git-Tag: submit/tizen/20170906.022504^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=324282149b0dd4b8f03e822c2cfd4178f443a2fe;p=platform%2Fcore%2Fdotnet%2Fbuild-tools.git Fix build-break for project.json style project Change-Id: I3162c5021917e2fd8252eb0e466ab4b6541f6289 --- diff --git a/Tools/dotnet-build.sh b/Tools/dotnet-build.sh index 24f29aec..c053b678 100755 --- a/Tools/dotnet-build.sh +++ b/Tools/dotnet-build.sh @@ -87,7 +87,7 @@ cmd_build() { cmd_restore # restore first local OPTS="" [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION" - run_dotnet build --no-restore $PROJECT $OPTS $@ + run_dotnet build --no-restore $PROJECT $OPTS $@ /p:UsingRPMMacro=true else if [[ $PROJECT_TYPE == "dir" ]]; then local PROJFILES=$(find $PROJECT -name "*.csproj") @@ -107,7 +107,7 @@ cmd_pack() { if $USE_DOTNET_CLI; then [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION" [ -n "$VERSION" ] && OPTS="$OPTS /p:Version=$VERSION" - run_dotnet pack --no-restore --no-build $PROJECT $OPTS $@ + run_dotnet pack --no-restore --no-build $PROJECT $OPTS $@ /p:UsingRPMMacro=true else local NUSPEC=($PROJECT) if [ -d $PROJECT ]; then diff --git a/packaging/dotnet-build-tools.spec b/packaging/dotnet-build-tools.spec index 87fae55e..eb346d7c 100644 --- a/packaging/dotnet-build-tools.spec +++ b/packaging/dotnet-build-tools.spec @@ -3,7 +3,7 @@ Name: dotnet-build-tools Summary: Tools for building C# API projects -Version: 1.3.2 +Version: 1.3.3 Release: 1 Group: Development/Libraries License: MIT and Apache-2.0 diff --git a/packaging/macros.dotnet-build-tools b/packaging/macros.dotnet-build-tools index 6e5cd20f..ac5ec1d0 100644 --- a/packaging/macros.dotnet-build-tools +++ b/packaging/macros.dotnet-build-tools @@ -14,7 +14,7 @@ %dotnet_assembly_files %{_dotnet_assembly_path}/*.dll %dotnet_nuget_source %{_dotnet_nuget_source} -%_dotnet_build_conf %{lua:if tonumber(rpm.expand("0%{?tizen_build_devel_mode}")) == 1 then print "Debug" else print "Release" end} +%_dotnet_build_conf Debug %dotnet_nuget_package(n:f:)\ %package %{-n:-n %{-n*}-}nuget\ @@ -46,11 +46,11 @@ dotnet-build -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} restore %{1} %{?2} %{ %{nil} %dotnet_build(s:) \ -dotnet-build -c %{_dotnet_build_conf} -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} build %{1} /p:UsingRPMMacro=true %{?2} %{?3} %{?4} %{?5} %{?6} \ +dotnet-build -c %{_dotnet_build_conf} -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} build %{1} %{?2} %{?3} %{?4} %{?5} %{?6} \ %{nil} %dotnet_pack() \ -dotnet-build -c %{_dotnet_build_conf} %{?2:-v %{2}} pack %{1} /p:UsingRPMMacro=true %{?3} %{?4} %{?5} %{?6} %{?7} \ +dotnet-build -c %{_dotnet_build_conf} %{?2:-v %{2}} pack %{1} %{?3} %{?4} %{?5} %{?6} %{?7} \ %{nil} %dotnet_install_assembly() \