1 %{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
3 %if 0%{?tizen_build_devel_mode}
4 %define BUILDCONF Debug
6 %define BUILDCONF Release
9 Name: csapi-application
10 Summary: Tizen Application API for C#
13 Group: Development/Libraries
15 URL: https://www.tizen.org
16 Source0: %{name}-%{version}.tar.gz
17 Source1: %{name}.manifest
19 BuildRequires: mono-compiler
20 BuildRequires: mono-devel
22 BuildRequires: dotnet-build-tools
24 # NuGet for Dependencies
25 BuildRequires: csapi-tizen-nuget
29 Tizen Application API for C#
35 %define Assemblies Tizen.Applications
38 for ASM in %{Assemblies}; do
40 find $ASM/*.project.json -exec nuget restore {} \;
42 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
44 nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
49 mkdir -p %{buildroot}%{dotnet_assembly_path}
50 for ASM in %{Assemblies}; do
52 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
54 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
58 mkdir -p %{buildroot}/nuget
59 install -p -m 644 *.nupkg %{buildroot}/nuget
62 %manifest %{name}.manifest
64 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
67 Summary: NuGet package for %{name}
68 Group: Development/Libraries
71 NuGet package for %{name}