Modify default managed launcher name in config
[platform/core/dotnet/launcher.git] / packaging / dotnet-launcher.spec
1 Name:       dotnet-launcher
2 Summary:    Launchpad plugin for dotnet apps
3 Version:    0.0.2
4 Release:    2
5 Group:      Application Framework/Application State Management
6 License:    Apache License, Version 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: aul-devel
17 BuildRequires: corefx-managed-32b-ref
18 BuildRequires: mono-compiler
19 BuildRequires: mono-devel 
20 BuildRequires: csapi-tizen 
21 Requires: aul
22
23 Requires(post): /sbin/ldconfig
24 Requires(post): /usr/bin/systemctl
25 Requires(postun): /sbin/ldconfig
26 Requires(postun): /usr/bin/systemctl
27 Requires(preun): /usr/bin/systemctl
28
29 %define _loaderdir %{_prefix}/share/aul
30 %define _configdir /etc
31
32 %description
33 Launchpad plugin for launching dotnet apps
34
35 %prep
36 %setup -q
37
38 %build
39 %if 0%{?tizen_build_devel_mode}
40 %define _buildmode Debug
41 %else
42 %define _buildmode Release
43 %endif
44 cmake \
45         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
46         -DPACKAGE_NAME=%{name} \
47         -DLIBDIR=%{_libdir} \
48         -DBINDIR=%{_bindir} \
49         -DLOADERDIR=%{_loaderdir} \
50         -DCONFIGDIR=%{_configdir} \
51         -DCMAKE_BUILD_TYPE=%{_buildmode} \
52         -DVERSION=%{version} \
53         NativeLauncher
54
55 make %{?jobs:-j%jobs}
56
57 xbuild /p:Configuration=%{_buildmode} Tizen.Runtime/Tizen.Runtime.csproj
58
59 %install
60 rm -rf %{buildroot}
61 %make_install
62 install -p -m 644 Tizen.Runtime/bin/Tizen.Runtime.exe %{buildroot}%{_bindir}
63
64 %files
65 %manifest dotnet-launcher.manifest
66 %config /etc/dotnet-launcher.ini
67 %{_loaderdir}/dotnet.loader
68 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
69 %caps(cap_mac_admin,cap_setgid=ei) %{_libdir}/libdnclauncher.so
70 %caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.exe