1 %{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly}
3 %if 0%{?tizen_build_devel_mode}
4 %define BUILDCONF Debug
6 %define BUILDCONF Release
10 Summary: Tizen Push API for C#
13 Group: Development/Libraries
15 URL: https://www.tizen.org
16 Source0: %{name}-%{version}.tar.gz
17 Source1: %{name}.manifest
20 BuildRequires: mono-compiler
21 BuildRequires: mono-devel
23 # P/Invoke Build Requires
24 BuildRequires: pkgconfig(glib-2.0)
25 BuildRequires: pkgconfig(push)
28 BuildRequires: csapi-tizen
37 %define Assemblies Tizen.Messaging.Push
40 for ASM in %{Assemblies}; do
41 xbuild $ASM/$ASM.csproj \
42 /p:Configuration=%{BUILDCONF} \
43 /p:ReferencePath=%{dotnet_assembly_path}
48 mkdir -p %{buildroot}%{dotnet_assembly_path}
49 for ASM in %{Assemblies}; do
50 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
54 mkdir -p %{buildroot}%{_datadir}/license
55 cp LICENSE %{buildroot}%{_datadir}/license/%{name}
58 %manifest %{name}.manifest
59 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
60 %attr(644,root,root) %{_datadir}/license/%{name}