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
11 Summary: Tizen Security 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
37 Tizen Security API for C#
43 %define Assemblies Tizen.Security Tizen.Security.SecureRepository
47 for ASM in %{Assemblies}; do
48 if [ -e $ASM/$ASM.Net45.csproj ]; then
49 xbuild $ASM/$ASM.Net45.csproj \
50 /p:Configuration=%{BUILDCONF} \
51 /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/net45 \
52 /p:OutputPath=bin/net45
57 if [ -e $ASM/$ASM.csproj ]; then
58 xbuild $ASM/$ASM.csproj \
59 /p:Configuration=%{BUILDCONF} \
60 /p:DotnetAssemblyPath=%{dotnet_assembly_path}/devel/netstandard1.6 \
61 /p:CoreFxPath=%{dotnet_core_path} \
62 /p:OutputPath=bin/netstandard1.6
67 dotnet-gbs pack $ASM/$ASM.nuspec --PackageVersion=%{version} --PackageFiles=$ASM/bin
72 mkdir -p %{buildroot}%{dotnet_assembly_path}/devel
73 for ASM in %{Assemblies}; do
74 cp -fr $ASM/bin/* %{buildroot}%{dotnet_assembly_path}/devel
76 install -p -m 644 $ASM/bin/netstandard1.6/$ASM.dll %{buildroot}%{dotnet_assembly_path}
78 install -p -m 644 $ASM/bin/net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
82 mkdir -p %{buildroot}/nuget
83 install -p -m 644 *.nupkg %{buildroot}/nuget
86 %manifest %{name}.manifest
88 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
91 Summary: Development package for %{name}
92 Group: Development/Libraries
93 Requires: %{name} = %{version}-%{release}
97 Development package for %{name}
100 %{dotnet_assembly_path}/devel/*
103 Summary: NuGet package for %{name}
104 Group: Development/Libraries
105 Requires: %{name} = %{version}-%{release}
108 NuGet package for %{name}