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 MimeType API for C#
13 Group: Development/Libraries
15 URL: https://www.tizen.org
16 Source0: %{name}-%{version}.tar.gz
17 Source1: %{name}.manifest
19 BuildRequires: mono-compiler
20 BuildRequires: mono-devel
22 BuildRequires: dotnet-build-tools
25 BuildRequires: csapi-tizen-nuget
28 Tizen MimeType API for C#
34 %define Assemblies Tizen.Content.MimeType
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}
57 mkdir -p %{buildroot}/nuget
58 install -p -m 644 *.nupkg %{buildroot}/nuget
61 %manifest %{name}.manifest
63 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
66 Summary: NuGet package for %{name}
67 Group: Development/Libraries
70 NuGet package for %{name}