-%{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly}
-
Name: dotnet-launcher
Summary: Launchpad plugin for dotnet apps
Version: 1.0.1
Release: 2
Group: Application Framework/Application State Management
-License: Apache License, Version 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
AutoReqProv: no
BuildRequires: pkgconfig(pkgmgr-installer)
BuildRequires: pkgconfig(elementary)
BuildRequires: aul-devel
-BuildRequires: mono-compiler
-BuildRequires: mono-devel
-BuildRequires: csapi-tizen-nuget
BuildRequires: dotnet-build-tools
+
Requires: aul
Requires(post): /sbin/ldconfig
%define _loaderdir %{_prefix}/share/aul
%define _configdir /etc
%define _device_api_dir %{dotnet_assembly_path}
-%define _runtime_dir /opt/usr/share/dotnet/shared/Microsoft.NETCore.App/1.1.0
-%define _preload_dir /opt/usr/share/dotnet.tizen/preload
+%define _runtime_dir /usr/share/dotnet/shared/Microsoft.NETCore.App/1.0.0
+%define _preload_dir /usr/share/dotnet.tizen/preload
%define _install_plugin_dir /usr/etc/package-manager/parserlib
ExcludeArch: %{ix86} aarch64
%setup -q
%build
-%if 0%{?tizen_build_devel_mode}
-%define _buildmode Debug
-%else
-%define _buildmode Release
-%endif
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DPACKAGE_NAME=%{name} \
-DBINDIR=%{_bindir} \
-DLOADERDIR=%{_loaderdir} \
-DCONFIGDIR=%{_configdir} \
- -DCMAKE_BUILD_TYPE=%{_buildmode} \
+ -DCMAKE_BUILD_TYPE=%{_dotnet_build_conf} \
-DDEVICE_API_DIR=%{_device_api_dir} \
-DRUNTIME_DIR=%{_runtime_dir} \
-DCROSSGEN_PATH=%{_device_api_dir}/crossgen \
nuget restore Tizen.Runtime/Tizen.Runtime.Coreclr.project.json
xbuild \
- /p:Configuration=%{_buildmode} \
+ /p:Configuration=%{_dotnet_build_conf} \
/p:PreloadPath=%{_preload_dir} \
Tizen.Runtime/Tizen.Runtime.Coreclr.csproj
nuget restore Tizen.Runtime/Tizen.Runtime.Mono.project.json
xbuild \
- /p:Configuration=%{_buildmode} \
+ /p:Configuration=%{_dotnet_build_conf} \
/p:PreloadPath=%{_preload_dir} \
Tizen.Runtime/Tizen.Runtime.Mono.csproj