Merge "Integrate the log tag with "DOTNET_LAUNCHER"" into tizen
[platform/core/dotnet/launcher.git] / packaging / dotnet-launcher.spec
1 Name:       dotnet-launcher
2 Summary:    Launchpad plugin for dotnet apps
3 Version:    1.0.1
4 Release:    2
5 Group:      Application Framework/Application State Management
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 AutoReqProv: no
9
10 BuildRequires: cmake
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
22
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)
30
31
32 Requires: aul
33
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
39
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/1.0.0
44 %define _install_plugin_dir /usr/etc/package-manager/parserlib
45 %define _install_mdplugin_dir /etc/package-manager/parserlib/metadata
46
47 ExcludeArch: aarch64
48
49 %description
50 Launchpad plugin for launching dotnet apps
51
52 %package -n scd-launcher
53 Summary:    self-contained dotnet launcher
54 %description -n scd-launcher
55 launching dotnet apps without dotent runtime installed
56
57
58 %prep
59 %setup -q
60
61 %build
62 cmake \
63         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
64         -DPACKAGE_NAME=%{name} \
65         -DLIBDIR=%{_libdir} \
66         -DBINDIR=%{_bindir} \
67         -DLOADERDIR=%{_loaderdir} \
68         -DCONFIGDIR=%{_configdir} \
69         -DCMAKE_BUILD_TYPE=%{_dotnet_build_conf} \
70         -DDEVICE_API_DIR=%{_device_api_dir} \
71         -DRUNTIME_DIR=%{_runtime_dir} \
72         -DCROSSGEN_PATH=%{_device_api_dir}/crossgen \
73         -DCORECLR_LAUNCHER_ASSEMBLY_PATH=%{_bindir}/Tizen.Runtime.Coreclr.dll \
74         -DINSTALL_PLUGIN_DIR=%{_install_plugin_dir} \
75         -DINSTALL_MDPLUGIN_DIR=%{_install_mdplugin_dir} \
76         -DVERSION=%{version} \
77         NativeLauncher
78
79 make %{?jobs:-j%jobs} VERBOSE=1
80
81 nuget restore Tizen.Runtime/Tizen.Runtime.Coreclr.project.json
82
83 xbuild \
84         /p:Configuration=%{_dotnet_build_conf} \
85         Tizen.Runtime/Tizen.Runtime.Coreclr.csproj
86
87 %install
88 rm -rf %{buildroot}
89 %make_install
90 install -p -m 644 Tizen.Runtime/bin/Tizen.Runtime.Coreclr.dll %{buildroot}%{_bindir}
91
92 %files
93 %manifest dotnet-launcher.manifest
94 %{_loaderdir}/dotnet.loader
95 %{_loaderdir}/dotnet.launcher
96 %{_loaderdir}/dotnet.debugger
97 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
98 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/nitool
99 %caps(cap_mac_admin,cap_setgid=ei) %{_install_plugin_dir}/libui-application.so
100 %caps(cap_mac_admin,cap_setgid=ei) %{_install_mdplugin_dir}/libprefer_dotnet_aot_plugin.so
101 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Coreclr.dll
102
103 %files -n scd-launcher
104 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/scd-launcher