1 %{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly}
4 Summary: Launchpad plugin for dotnet apps
7 Group: Application Framework/Application State Management
8 License: Apache License, Version 2.0
9 Source0: %{name}-%{version}.tar.gz
13 BuildRequires: pkgconfig(aul)
14 BuildRequires: pkgconfig(bundle)
15 BuildRequires: pkgconfig(dlog)
16 BuildRequires: pkgconfig(ecore)
17 BuildRequires: pkgconfig(launchpad)
18 BuildRequires: aul-devel
19 BuildRequires: mono-compiler
20 BuildRequires: mono-devel
21 BuildRequires: csapi-tizen-nuget
22 BuildRequires: dotnet-build-tools
25 Requires(post): /sbin/ldconfig
26 Requires(post): /usr/bin/systemctl
27 Requires(postun): /sbin/ldconfig
28 Requires(postun): /usr/bin/systemctl
29 Requires(preun): /usr/bin/systemctl
31 %define _loaderdir %{_prefix}/share/aul
32 %define _configdir /etc
33 %define _device_api_dir %{dotnet_assembly_path}
34 %define _runtime_dir /opt/usr/share/dotnet/shared/Microsoft.NETCore.App/1.0.0
35 %define _preload_dir /opt/usr/share/dotnet.tizen/preload
38 Launchpad plugin for launching dotnet apps
44 %if 0%{?tizen_build_devel_mode}
45 %define _buildmode Debug
47 %define _buildmode Release
50 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
51 -DPACKAGE_NAME=%{name} \
54 -DLOADERDIR=%{_loaderdir} \
55 -DCONFIGDIR=%{_configdir} \
56 -DCMAKE_BUILD_TYPE=%{_buildmode} \
57 -DDEVICE_API_DIR=%{_device_api_dir} \
58 -DRUNTIME_DIR=%{_runtime_dir} \
59 -DCORECLR_LAUNCHER_ASSEMBLY_PATH=%{_bindir}/Tizen.Runtime.Coreclr.dll \
60 -DMONO_LAUNCHER_ASSEMBLY_PATH=%{_bindir}/Tizen.Runtime.Mono.dll \
61 -DVERSION=%{version} \
64 make %{?jobs:-j%jobs} VERBOSE=1
66 nuget restore Tizen.Runtime/Tizen.Runtime.Coreclr.project.json
69 /p:Configuration=%{_buildmode} \
70 /p:PreloadPath=%{_preload_dir} \
71 Tizen.Runtime/Tizen.Runtime.Coreclr.csproj
73 nuget restore Tizen.Runtime/Tizen.Runtime.Mono.project.json
76 /p:Configuration=%{_buildmode} \
77 /p:PreloadPath=%{_preload_dir} \
78 Tizen.Runtime/Tizen.Runtime.Mono.csproj
83 install -p -m 644 Tizen.Runtime/bin/Tizen.Runtime.Coreclr.dll %{buildroot}%{_bindir}
84 install -p -m 644 Tizen.Runtime/bin/Tizen.Runtime.Mono.dll %{buildroot}%{_bindir}
87 %manifest dotnet-launcher.manifest
88 %{_loaderdir}/dotnet.loader
89 %{_loaderdir}/dotnet.launcher
90 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
91 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Coreclr.dll
92 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Mono.dll