1 %{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
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
10 Name: csapi-widget-application
11 Summary: Tizen widget application 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
30 BuildRequires: dotnet-build-tools
33 BuildRequires: csapi-tizen-devel
34 BuildRequires: csapi-application-devel
35 BuildRequires: csapi-uifw-devel
39 Tizen widget application API for C#
45 %define Assemblies Tizen.Applications.WidgetApplication
49 for ASM in %{Assemblies}; do
50 if [ -e $ASM/$ASM.Net45.csproj ]; then
51 xbuild $ASM/$ASM.Net45.csproj \
52 /p:Configuration=%{BUILDCONF} \
53 /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/net45 \
54 /p:OutputPath=bin/net45
59 if [ -e $ASM/$ASM.csproj ]; then
60 xbuild $ASM/$ASM.csproj \
61 /p:Configuration=%{BUILDCONF} \
62 /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/netstandard1.6 \
63 /p:CoreFxPath=%{dotnet_core_path} \
64 /p:OutputPath=bin/netstandard1.6
69 dotnet-gbs pack $ASM/$ASM.nuspec --PackageVersion=%{version} --PackageFiles=$ASM/bin
74 mkdir -p %{buildroot}%{dotnet_assembly_path}/devel
75 for ASM in %{Assemblies}; do
76 cp -fr $ASM/bin/* %{buildroot}%{dotnet_assembly_path}/devel
78 install -p -m 644 $ASM/bin/netstandard1.6/$ASM.dll %{buildroot}%{dotnet_assembly_path}
80 install -p -m 644 $ASM/bin/net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
84 mkdir -p %{buildroot}/nuget
85 install -p -m 644 *.nupkg %{buildroot}/nuget
88 %manifest %{name}.manifest
90 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
93 Summary: Development package for %{name}
94 Group: Development/Libraries
95 Requires: %{name} = %{version}-%{release}
99 Development package for %{name}
102 %{dotnet_assembly_path}/devel/*
105 Summary: NuGet package for %{name}
106 Group: Development/Libraries
107 Requires: %{name} = %{version}-%{release}
110 NuGet package for %{name}