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
10 Summary: Tizen Map Service API for C#
13 Group: Development/Libraries
15 URL: https://www.tizen.org
16 Source0: %{name}-%{version}.tar.gz
17 Source1: %{name}.manifest
22 BuildRequires: mono-compiler
23 BuildRequires: mono-devel
25 BuildRequires: dotnet-build-tools
26 BuildRequires: csapi-tizen-nuget
27 BuildRequires: elm-sharp-nuget
30 Tizen Map Service API for C#
36 %define Assemblies Tizen.Maps
39 for ASM in %{Assemblies}; do
41 find $ASM/*.project.json -exec nuget restore {} \;
43 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
45 nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
50 mkdir -p %{buildroot}%{dotnet_assembly_path}
51 mkdir -p %{buildroot}%{dotnet_assembly_path}/res
52 for ASM in %{Assemblies}; do
54 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
56 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
58 install -p -m 644 $ASM/res/*.png %{buildroot}%{dotnet_assembly_path}/res
61 mkdir -p %{buildroot}/nuget
62 install -p -m 644 *.nupkg %{buildroot}/nuget
65 %manifest %{name}.manifest
67 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
68 %attr(644,root,root) %{dotnet_assembly_path}/res/*.png
71 Summary: NuGet package for %{name}
72 Group: Development/Libraries
75 NuGet package for %{name}