2 Summary: Launchpad for launching applications
5 Group: Application Framework/Daemons
7 Source0: %{name}-%{version}.tar.gz
8 Source101: launchpad-process-pool.service
9 Source102: launchpad-process-pool.socket
10 Source1001: %{name}.manifest
11 Source1002: lib%{name}.manifest
12 Source1003: %{name}-loader.manifest
13 Source1004: app-defined-loader.manifest
16 BuildRequires: pkgconfig(aul)
17 BuildRequires: pkgconfig(bundle)
18 BuildRequires: pkgconfig(buxton2)
19 BuildRequires: pkgconfig(capi-system-resource)
20 BuildRequires: pkgconfig(dbus-1)
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: pkgconfig(dlog-redirect-stdout)
23 BuildRequires: pkgconfig(ecore)
24 BuildRequires: pkgconfig(elementary)
25 BuildRequires: pkgconfig(gio-2.0)
26 BuildRequires: pkgconfig(gmock)
27 BuildRequires: pkgconfig(iniparser)
28 BuildRequires: pkgconfig(libcap)
29 BuildRequires: pkgconfig(libsmack)
30 BuildRequires: pkgconfig(libsystemd)
31 BuildRequires: pkgconfig(libtzplatform-config)
32 BuildRequires: pkgconfig(libxml-2.0)
33 BuildRequires: pkgconfig(parcel)
34 BuildRequires: pkgconfig(pkgmgr-installer)
35 BuildRequires: pkgconfig(security-manager)
36 BuildRequires: pkgconfig(tanchor)
37 BuildRequires: pkgconfig(tizen-shared-queue)
38 BuildRequires: pkgconfig(ttrace)
39 BuildRequires: pkgconfig(vconf)
41 Requires(post): /sbin/ldconfig
42 Requires(post): /usr/bin/systemctl
43 Requires(postun): /sbin/ldconfig
44 Requires(postun): /usr/bin/systemctl
45 Requires(preun): /usr/bin/systemctl
47 Provides: app-launchpad
49 %define tizen_feature_priority_change 0
50 %ifarch armv7l i686 i586
51 %define tizen_arch32 1
53 %define tizen_arch32 0
56 %ifarch x86_64 i686 i586
57 %define tizen_emulator 1
59 %define tizen_emulator 0
62 %if "%{?_prelink_enable}" == "y"
63 %define tizen_feature_prelink 1
65 %define tizen_feature_prelink 0
69 Launchpad for launching applications
72 Summary: Launchpad for launching applications (devel)
73 Group: Development/Libraries
74 Requires: liblaunchpad = %{version}-%{release}
77 Launchpad for launching applications (devel)
79 %package -n launchpad-loader
80 Summary: Launchpad-Loader for launching applications
81 Group: Application Framework/Application Launcher
83 %description -n launchpad-loader
84 Launchpad-Loader for launching applications
86 %package -n app-defined-loader
87 Summary: App-Defined-Loader for launching applications
88 Group: Application Framework/Application Launcher
90 %description -n app-defined-loader
91 App-Defined-Loader for launching applications
93 %package -n liblaunchpad
94 Summary: Launchpad library
95 Group: Development/Libraries
97 %description -n liblaunchpad
100 %package -n liblaunchpad-devel
101 Summary: Launchpad library (devel)
102 Group: Development/Libraries
103 Requires: liblaunchpad = %{version}-%{release}
105 %description -n liblaunchpad-devel
106 Launchpad library (devel)
109 Summary: %{name} unittests binary
111 %description unittests
122 %if 0%{?sec_build_binary_debug_enable}
123 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
124 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
125 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
127 %if 0%{?tizen_feature_priority_change}
128 _TIZEN_FEATURE_PRIORITY_CHANGE=ON
130 %if 0%{?tizen_arch32}
131 _TIZEN_FEATURE_SET_PERSONALITY_32=ON
133 _TIZEN_FEATURE_LOADER_ARCH64=ON
135 %if 0%{?tizen_feature_prelink}
136 _TIZEN_FEATURE_PRELINK=ON
139 %if 0%{?tizen_emulator}
145 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
146 %cmake -DVERSION=%{version} \
147 -DMAJORVER=${MAJORVER} \
148 -DHW_LOADER_THREADS=${HW_LOADER_THREADS} \
149 -D_TIZEN_FEATURE_PRIORITY_CHANGE:BOOL=${_TIZEN_FEATURE_PRIORITY_CHANGE} \
150 -D_TIZEN_FEATURE_SET_PERSONALITY_32:BOOL=${_TIZEN_FEATURE_SET_PERSONALITY_32} \
151 -D_TIZEN_FEATURE_PRELINK:BOOL=${_TIZEN_FEATURE_PRELINK} \
152 -D_TIZEN_FEATURE_LOADER_ARCH64:BOOL=${_TIZEN_FEATURE_LOADER_ARCH64} \
154 %__make %{?_smp_mflags}
157 export LD_LIBRARY_PATH="../../src/lib/launchpad-common/"
158 ctest --verbose %{?_smp_mflags}
165 mkdir -p %{buildroot}%{_unitdir_user}/basic.target.wants
166 mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants
167 install -m 0644 %SOURCE101 %{buildroot}%{_unitdir_user}/launchpad-process-pool.service
168 install -m 0644 %SOURCE102 %{buildroot}%{_unitdir_user}/launchpad-process-pool.socket
169 ln -sf ../launchpad-process-pool.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/launchpad-process-pool.socket
170 ln -sf ../launchpad-process-pool.service %{buildroot}%{_unitdir_user}/basic.target.wants/launchpad-process-pool.service
175 %manifest launchpad.manifest
177 %{_prefix}/share/aul/default.debugger
178 %{_unitdir_user}/launchpad-process-pool.service
179 %{_unitdir_user}/launchpad-process-pool.socket
180 %{_unitdir_user}/sockets.target.wants/launchpad-process-pool.socket
181 %{_unitdir_user}/basic.target.wants/launchpad-process-pool.service
182 %{_bindir}/launchpad-process-pool
183 %{_prefix}/share/aul/launchpad.conf
184 %{_sysconfdir}/package-manager/parserlib/liblaunchpad-parser.so
185 %{_datadir}/parser-plugins/*
186 %attr(0644,root,root) %{_libdir}/liblaunchpad-common.so.*
189 %{_includedir}/launchpad/*.h
190 %{_includedir}/launchpad-common/*.hh
192 %{_libdir}/pkgconfig/launchpad.pc
193 %attr(0644,root,root) %{_libdir}/liblaunchpad-common.so
194 %{_libdir}/pkgconfig/liblaunchpad-common.pc
196 %files -n launchpad-loader
197 %manifest launchpad-loader.manifest
199 %{_prefix}/share/aul/default.loader
200 %{_bindir}/launchpad-loader
202 %files -n app-defined-loader
203 %manifest app-defined-loader.manifest
205 %{_prefix}/share/aul/app-defined-loader.conf
206 %{_bindir}/app-defined-loader
208 %files -n liblaunchpad
209 %manifest liblaunchpad.manifest
211 %attr(0644,root,root) %{_libdir}/liblaunchpad.so.*
212 %attr(0644,root,root) %{_libdir}/liblaunchpad-hydra.so.*
214 %files -n liblaunchpad-devel
215 %{_includedir}/launchpad/*.h
217 %{_libdir}/pkgconfig/liblaunchpad.pc
218 %{_libdir}/pkgconfig/liblaunchpad-hydra.pc
221 %{_bindir}/launchpad-process-pool-unittest