Name: dotnet-launcher Summary: Launchpad plugin for dotnet apps Version: 2.1.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(pkgmgr-info) BuildRequires: pkgconfig(pkgmgr-installer) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(capi-appfw-app-common) BuildRequires: pkgconfig(storage) 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(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 _install_mdplugin_dir /etc/package-manager/parserlib/metadata %define _native_lib_dir /usr/share/dotnet.tizen/lib 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 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} \ -DVERSION=%{version} \ -DNATIVE_LIB_DIR=%{_native_lib_dir} \ NativeLauncher make %{?jobs:-j%jobs} VERBOSE=1 %install rm -rf %{buildroot} %make_install 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 %files %manifest dotnet-launcher.manifest %{_loaderdir}/dotnet.loader %{_loaderdir}/dotnet.launcher %{_loaderdir}/dotnet.debugger %{_native_lib_dir}/libsqlite3.so %{_bindir}/nitool %{_bindir}/tpatool %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so %{_bindir}/dotnet-launcher %{_libdir}/libdotnet_launcher_util.so %{_libdir}/libni_common.so /etc/tmpfiles.d/%{name}.conf %files devel %manifest dotnet-launcher.manifest %defattr(-,root,root,-) %{_includedir}/ni_common.h %{_includedir}/dotnet_launcher_plugin.h %{_includedir}/coreclr_host.h %{_libdir}/libdotnet_launcher_util.so %{_libdir}/libni_common.so %{_libdir}/pkgconfig/dotnet-launcher.pc