1 %{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
2 %{!?mono_assembly_path: %define mono_assembly_path /opt/usr/lib/assembly}
4 %if 0%{?tizen_build_devel_mode}
5 %define BUILDCONF Debug
7 %define BUILDCONF Release
11 Summary: Tizen API for C#
14 Group: Development/Libraries
16 URL: https://www.tizen.org
17 Source0: %{name}-%{version}.tar.gz
18 Source1: %{name}.manifest
22 BuildRequires: mono-compiler
23 BuildRequires: mono-devel
25 BuildRequires: dotnet-build-tools
34 %define Assemblies Tizen
37 for ASM in %{Assemblies}; do
39 find $ASM/*.project.json -exec nuget restore {} \;
41 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
43 nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
48 mkdir -p %{buildroot}%{dotnet_assembly_path}
49 for ASM in %{Assemblies}; do
51 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
53 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
55 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{mono_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}
77 Summary: %{name} for Mono Runtime
78 Group: Development/Libraries
81 %{name} for Mono Runtime
84 %manifest %{name}.manifest
86 %attr(644,root,root) %{mono_assembly_path}/*.dll