1 Name: dotnet-build-tools
2 Summary: Tools for building C# API projects
5 Group: Development/Libraries
6 License: MIT and Apache-2.0
7 URL: https://www.tizen.org
8 Source0: %{name}-%{version}.tar.gz
12 Requires: corefx-managed-ref
16 Build target files (.Targets) and Tools (including NuGet.exe) for building
17 C# Deivce API with xbuild in GBS environment.
25 %define NuGetDir %{_datadir}/NuGet
26 %define XBuildDir /usr/lib/mono/xbuild
27 %define PCLRefDir /usr/lib/mono/xbuild-frameworks/.NETPortable
29 # Tizen.GBS.BuildTasks
30 mkdir -p %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportAfter
31 install -p -m 644 Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportAfter
34 mkdir -p %{buildroot}%{_bindir}
35 mkdir -p %{buildroot}%{NuGetDir}
36 install -p -m 755 NuGet/* %{buildroot}%{NuGetDir}
37 ln -s %{NuGetDir}/nuget %{buildroot}%{_bindir}/nuget
38 ln -s %{NuGetDir}/NuGet.exe %{buildroot}%{_bindir}/nuget.exe
41 mkdir -p %{buildroot}%{XBuildDir}/Microsoft/NuGet
42 install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.targets %{buildroot}%{XBuildDir}/Microsoft/NuGet
43 install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll %{buildroot}%{XBuildDir}/Microsoft/NuGet
44 install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.props %{buildroot}%{XBuildDir}/Microsoft/NuGet
45 mkdir -p %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportBefore
46 install -p -m 644 NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportBefore
47 mkdir -p %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportAfter
48 install -p -m 644 NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets %{buildroot}%{XBuildDir}/14.0/Microsoft.Common.targets/ImportAfter
50 # Local NuGet Repository
51 mkdir -p %{buildroot}/nuget
52 install -p -m 644 LocalPackages/*.nupkg %{buildroot}/nuget
55 %license LICENSE.Mono.Cecil LICENSE.NuGet