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
24 BuildRequires: clang >= 3.8
25 BuildRequires: compiler-rt
31 Requires(post): /sbin/ldconfig
32 Requires(post): /usr/bin/systemctl
33 Requires(postun): /sbin/ldconfig
34 Requires(postun): /usr/bin/systemctl
35 Requires(preun): /usr/bin/systemctl
37 %define _loaderdir %{_prefix}/share/aul
38 %define _configdir /etc
39 %define _device_api_dir %{dotnet_assembly_path}
40 %define _runtime_dir /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.0
41 %define _install_plugin_dir /usr/etc/package-manager/parserlib
42 %define _install_mdplugin_dir /etc/package-manager/parserlib/metadata
43 %define _native_lib_dir /usr/share/dotnet.tizen/lib
48 Launchpad plugin for launching dotnet apps
57 %define _dotnet_build_conf Debug
58 export CFLAGS=" --target=%{_host} "
59 export CXXFLAGS=" --target=%{_host} "
61 export CFLAGS=$(echo $CFLAGS | sed -e 's/--target=i686/--target=i586/')
62 export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/--target=i686/--target=i586/')
67 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
69 -DCMAKE_C_COMPILER=clang \
70 -DCMAKE_CXX_COMPILER=clang++ \
73 -DPACKAGE_NAME=%{name} \
76 -DLOADERDIR=%{_loaderdir} \
77 -DCONFIGDIR=%{_configdir} \
78 -DCMAKE_BUILD_TYPE=%{_dotnet_build_conf} \
79 -DDEVICE_API_DIR=%{_device_api_dir} \
80 -DRUNTIME_DIR=%{_runtime_dir} \
81 -DCROSSGEN_PATH=%{_device_api_dir}/crossgen \
82 -DINSTALL_PLUGIN_DIR=%{_install_plugin_dir} \
83 -DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \
84 -DVERSION=%{version} \
85 -DNATIVE_LIB_DIR=%{_native_lib_dir} \
88 make %{?jobs:-j%jobs} VERBOSE=1
94 mkdir -p %{buildroot}%{_native_lib_dir}
95 ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so
98 %manifest dotnet-launcher.manifest
99 %{_loaderdir}/dotnet.loader
100 %{_loaderdir}/dotnet.launcher
101 %{_loaderdir}/dotnet.debugger
102 %{_native_lib_dir}/libsqlite3.so
104 #%{_install_plugin_dir}/libui-application.so
105 %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so
106 %{_bindir}/dotnet-launcher