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")
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
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
%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\
%{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() \