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 ExcludeArch: %{ix86} aarch64
11 Name: csapi-system-settings
12 Summary: Tizen System Settings API for C#
15 Group: Development/Libraries
17 URL: https://www.tizen.org
18 Source0: %{name}-%{version}.tar.gz
19 Source1: %{name}.manifest
23 BuildRequires: mono-compiler
24 BuildRequires: mono-devel
26 BuildRequires: dotnet-build-tools
29 BuildRequires: csapi-tizen-nuget
32 Tizen System Settings API for C#
38 %define Assemblies Tizen.System.SystemSettings
41 for ASM in %{Assemblies}; do
43 find $ASM/*.project.json -exec nuget restore {} \;
45 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
47 nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
52 mkdir -p %{buildroot}%{dotnet_assembly_path}
53 for ASM in %{Assemblies}; do
55 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
57 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
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
70 Summary: NuGet package for %{name}
71 Group: Development/Libraries
74 NuGet package for %{name}