Name: dotnet-launcher Summary: Launchpad plugin for dotnet apps Version: 3.0.0 Release: 1 Group: Application Framework/Application State Management License: Apache-2.0 Source0: %{name}-%{version}.tar.gz AutoReqProv: no Source1: %{name}.conf BuildRequires: cmake BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(liblaunchpad) BuildRequires: pkgconfig(liblaunchpad-hydra) BuildRequires: pkgconfig(pkgmgr-info) BuildRequires: pkgconfig(pkgmgr-installer) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(capi-appfw-app-common) BuildRequires: pkgconfig(storage) BuildRequires: pkgconfig(jsoncpp) BuildRequires: pkgconfig(openssl1.1) BuildRequires: sqlite-devel BuildRequires: boost-devel BuildRequires: aul-devel BuildRequires: dotnet-build-tools %if 0%{?asan_enabled} BuildRequires: clang >= 3.8 BuildRequires: compiler-rt %endif Requires: aul Requires: liblaunchpad Requires: coreclr Requires: mscorlib Requires: corefx-native Requires: corefx-managed Requires: jsoncpp Requires(post): /sbin/ldconfig Requires(post): /usr/bin/systemctl Requires(post): /usr/bin/chsmack Requires(postun): /sbin/ldconfig Requires(postun): /usr/bin/systemctl Requires(preun): /usr/bin/systemctl %define _loaderdir %{_prefix}/share/aul %define _device_api_dir %{dotnet_assembly_path} %define _runtime_dir /usr/share/dotnet.tizen/netcoreapp %define _framework_dir /usr/share/dotnet.tizen/framework %define _install_mdplugin_dir /etc/package-manager/parserlib/metadata %define _native_lib_dir /usr/share/dotnet.tizen/lib %define _tac_dir /opt/usr/dotnet %define _system_base_addr_file /opt/usr/dotnet.system.base.addr %define _default_base_addr_start 0x3000000 ExcludeArch: aarch64 %description Launchpad plugin for launching dotnet apps %package devel Summary: Libraries and Header Files for dotnet-launcher plugins and AOTC tools Requires: %{name} = %{version} %description devel This package contains library and header files needed to develop plugins for dotnet-launcher and AOTC tools. %prep %setup -q cp %{SOURCE1} . %build %if 0%{?asan_enabled} %define _dotnet_build_conf Debug export CFLAGS=" --target=%{_host} " export CXXFLAGS=" --target=%{_host} " %ifarch %{ix86} export CFLAGS=$(echo $CFLAGS | sed -e 's/--target=i686/--target=i586/') export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/--target=i686/--target=i586/') %endif %endif dotnet msbuild Managed /t:clean dotnet msbuild Managed /t:restore /p:RestoreSources=/nuget dotnet msbuild Managed /p:Configuration=Release cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ %if 0%{?asan_enabled} -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DASAN_ENABLED=TRUE \ %endif -DLIBDIR=%{_libdir} \ -DBINDIR=%{_bindir} \ -DINCLUDEDIR=%{_includedir} \ -DLOADERDIR=%{_loaderdir} \ -DCMAKE_BUILD_TYPE=%{_dotnet_build_conf} \ -DDEVICE_API_DIR=%{_device_api_dir} \ -DRUNTIME_DIR=%{_runtime_dir} \ -DCROSSGEN_PATH=%{_runtime_dir}/crossgen \ -DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \ -DTAC_DIR=%{_tac_dir} \ -DVERSION=%{version} \ -DNATIVE_LIB_DIR=%{_native_lib_dir} \ %ifarch %{arm} %if 0%{?use_default_base_addr} -DUSE_DEFAULT_BASE_ADDR="" \ %endif -DUNIQUE_DEFAULT_BASE_ADDR_SUPPORT="" \ -DSYSTEM_BASE_FILE=%{_system_base_addr_file} \ -DDEFAULT_BASE_ADDR_START=%{_default_base_addr_start} \ %endif NativeLauncher make %{?jobs:-j%jobs} VERBOSE=1 %install rm -rf %{buildroot} %make_install mkdir -p %{buildroot}%{_framework_dir} mv Managed/Tizen.Init/bin/Release/Tizen.Init.dll %{buildroot}%{_framework_dir} mv Managed/Dotnet.Launcher/bin/Release/Dotnet.Launcher.dll %{buildroot}%{_framework_dir} mkdir -p %{buildroot}%{_tac_dir} mkdir -p %{buildroot}%{_native_lib_dir} ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so mkdir -p %{buildroot}/etc/tmpfiles.d install -m 0644 %{name}.conf %{buildroot}/etc/tmpfiles.d/%{name}.conf %post mkdir -p /opt/etc/skel/.dotnet chsmack -t -a User::App::Shared /opt/etc/skel/.dotnet %{_bindir}/dotnettool --ni-dll %{_runtime_dir}/System.Private.CoreLib.dll %files %manifest dotnet-launcher.manifest %{_loaderdir}/dotnet.loader %{_loaderdir}/dotnet.launcher %{_loaderdir}/dotnet.debugger %{_loaderdir}/dotnet.preload.list %{_native_lib_dir}/libsqlite3.so %{_bindir}/nitool %{_bindir}/tpatool %{_bindir}/dotnettool %{_install_mdplugin_dir}/libprefer_nuget_cache_plugin.so %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so %{_bindir}/dotnet-launcher %{_bindir}/dotnet-hydra-launcher %{_libdir}/libdotnet_launcher_util.so %{_libdir}/libni_common.so %{_libdir}/libtac_common.so /etc/tmpfiles.d/%{name}.conf /usr/share/parser-plugins/dotnet-launcher.info %{_framework_dir}/Tizen.Init.dll %{_framework_dir}/Dotnet.Launcher.dll %{_tac_dir} %files devel %manifest dotnet-launcher.manifest %defattr(-,root,root,-) %{_includedir}/ni_common.h %{_includedir}/tac_common.h %{_includedir}/dotnet_launcher_plugin.h %{_includedir}/coreclr_host.h %{_libdir}/libdotnet_launcher_util.so %{_libdir}/libni_common.so %{_libdir}/libtac_common.so %{_libdir}/pkgconfig/dotnet-launcher.pc