1 %{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly}
2 %{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref}
4 %if 0%{?tizen_build_devel_mode}
5 %define BUILDCONF Debug
7 %define BUILDCONF Release
11 Summary: Tizen System API for C#
14 Group: Development/Libraries
16 URL: https://www.tizen.org
17 Source0: %{name}-%{version}.tar.gz
18 Source1: %{name}.manifest
21 BuildRequires: mono-compiler
22 BuildRequires: mono-devel
27 BuildRequires: corefx-managed-32b-ref
31 BuildRequires: csapi-tizen
32 BuildRequires: csapi-uifw
35 Tizen System API for C#
41 %define Assemblies Tizen.System
44 for ASM in %{Assemblies}; do
45 xbuild $ASM/$ASM.csproj \
48 /p:TargetFrameworkVersion=v5.0 \
49 /p:AddAdditionalExplicitAssemblyReferences=False \
50 /p:CoreFxPath=%{dotnet_core_path} \
52 /p:Configuration=%{BUILDCONF} \
53 /p:ReferencePath=%{dotnet_assembly_path}
57 mkdir -p %{buildroot}%{dotnet_assembly_path}
58 for ASM in %{Assemblies}; do
59 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
63 %manifest %{name}.manifest
65 %attr(644,root,root) %{dotnet_assembly_path}/*.dll