2 Summary: Launchpad plugin for dotnet apps
5 Group: Application Framework/Application State Management
7 Source0: %{name}-%{version}.tar.gz
11 BuildRequires: pkgconfig(aul)
12 BuildRequires: pkgconfig(bundle)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(ecore)
15 BuildRequires: pkgconfig(launchpad)
16 BuildRequires: pkgconfig(pkgmgr-info)
17 BuildRequires: pkgconfig(pkgmgr-installer)
18 BuildRequires: pkgconfig(elementary)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: aul-devel
21 BuildRequires: dotnet-build-tools
23 # Required by scd-launcher
24 BuildRequires: appcore-agent
25 BuildRequires: pkgconfig(appcore-agent)
26 BuildRequires: pkgconfig(capi-appfw-app-control)
27 BuildRequires: pkgconfig(capi-appfw-application)
28 BuildRequires: pkgconfig(capi-appfw-service-application)
29 BuildRequires: pkgconfig(capi-appfw-service-application)
34 Requires(post): /sbin/ldconfig
35 Requires(post): /usr/bin/systemctl
36 Requires(postun): /sbin/ldconfig
37 Requires(postun): /usr/bin/systemctl
38 Requires(preun): /usr/bin/systemctl
40 %define _loaderdir %{_prefix}/share/aul
41 %define _configdir /etc
42 %define _device_api_dir %{dotnet_assembly_path}
43 %define _runtime_dir /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.0
44 %define _install_plugin_dir /usr/etc/package-manager/parserlib
45 %define _install_mdplugin_dir /etc/package-manager/parserlib/metadata
46 %define _native_lib_dir /usr/share/dotnet.tizen/lib
51 Launchpad plugin for launching dotnet apps
53 %package -n scd-launcher
54 Summary: self-contained dotnet launcher
55 %description -n scd-launcher
56 launching dotnet apps without dotent runtime installed
62 %define use_managed_launcher 0
63 %if %{use_managed_launcher}
64 %define USE_MANAGED_LAUNCHER ENABLE
69 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
70 -DPACKAGE_NAME=%{name} \
73 -DLOADERDIR=%{_loaderdir} \
74 -DCONFIGDIR=%{_configdir} \
75 -DCMAKE_BUILD_TYPE=%{_dotnet_build_conf} \
76 -DDEVICE_API_DIR=%{_device_api_dir} \
77 -DRUNTIME_DIR=%{_runtime_dir} \
78 -DCROSSGEN_PATH=%{_device_api_dir}/crossgen \
79 %if %{use_managed_launcher}
80 -DCORECLR_LAUNCHER_ASSEMBLY_PATH=%{_bindir}/Tizen.Runtime.Coreclr.dll \
82 -DINSTALL_PLUGIN_DIR=%{_install_plugin_dir} \
83 -DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \
84 -DVERSION=%{version} \
85 -DUSE_MANAGED_LAUNCHER=%{?USE_MANAGED_LAUNCHER:%USE_MANAGED_LAUNCHER} \
86 -DNATIVE_LIB_DIR=%{_native_lib_dir} \
89 make %{?jobs:-j%jobs} VERBOSE=1
91 nuget restore Tizen.Runtime/Tizen.Runtime.Coreclr.project.json
94 /p:Configuration=%{_dotnet_build_conf} \
95 Tizen.Runtime/Tizen.Runtime.Coreclr.csproj
100 %if %{use_managed_launcher}
101 install -p -m 644 Tizen.Runtime/bin/Tizen.Runtime.Coreclr.dll %{buildroot}%{_bindir}
104 mkdir -p %{buildroot}%{_native_lib_dir}
105 ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so
108 %manifest dotnet-launcher.manifest
109 %{_loaderdir}/dotnet.loader
110 %{_loaderdir}/dotnet.launcher
111 %{_loaderdir}/dotnet.debugger
112 %{_native_lib_dir}/libsqlite3.so
113 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
114 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/nitool
115 %caps(cap_mac_admin,cap_setgid=ei) %{_install_plugin_dir}/libui-application.so
116 %caps(cap_mac_admin,cap_setgid=ei) %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so
117 %if %{use_managed_launcher}
118 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Coreclr.dll
121 %files -n scd-launcher
122 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/scd-launcher