6 Group: Development/Libraries
9 Source0: %{name}-%{version}.tar.gz
10 ## wrt-launchpad-daemon #######################################################
11 Source101: wrt_launchpad_daemon@.service
12 ###############################################################################
15 BuildRequires: gettext
16 BuildRequires: edje-tools
17 BuildRequires: pkgconfig(aul)
18 BuildRequires: pkgconfig(glib-2.0)
19 BuildRequires: pkgconfig(ewebkit2)
20 BuildRequires: pkgconfig(appcore-efl)
21 BuildRequires: pkgconfig(openssl)
22 BuildRequires: pkgconfig(cert-svc)
23 BuildRequires: pkgconfig(dpl-efl)
24 BuildRequires: pkgconfig(libpcrecpp)
25 BuildRequires: pkgconfig(ecore)
26 BuildRequires: pkgconfig(eina)
27 BuildRequires: pkgconfig(ui-gadget-1)
28 BuildRequires: pkgconfig(utilX)
29 BuildRequires: pkgconfig(secure-storage)
30 BuildRequires: pkgconfig(pkgmgr)
31 BuildRequires: pkgconfig(libiri)
32 BuildRequires: pkgconfig(appsvc)
33 BuildRequires: pkgconfig(cert-svc-vcore)
34 BuildRequires: pkgconfig(libsoup-2.4)
35 BuildRequires: pkgconfig(security-core)
36 BuildRequires: pkgconfig(security-client)
37 BuildRequires: pkgconfig(notification)
38 BuildRequires: pkgconfig(libprivilege-control)
39 BuildRequires: pkgconfig(capi-appfw-app-manager)
40 BuildRequires: pkgconfig(haptic)
41 BuildRequires: pkgconfig(capi-web-url-download)
42 BuildRequires: pkgconfig(wrt-plugin-loading)
43 BuildRequires: pkgconfig(wrt-plugin-js-overlay)
44 BuildRequires: pkgconfig(dpl-encryption)
45 BuildRequires: pkgconfig(wrt-popup-wrt-runner)
46 BuildRequires: pkgconfig(wrt-popup-ace-runner)
47 BuildRequires: pkgconfig(sysman)
48 BuildRequires: pkgconfig(app2sd)
49 BuildRequires: pkgconfig(capi-system-system-settings)
51 BuildRequires: pkgconfig(osp-appfw)
52 BuildRequires: osp-appfw-internal-devel
55 Requires(post): /sbin/ldconfig
56 Requires(postun): /sbin/ldconfig
58 ## wrt-launchpad-daemon #######################################################
59 BuildRequires: pkgconfig(app-checker)
60 BuildRequires: pkgconfig(bundle)
61 BuildRequires: pkgconfig(dlog)
62 BuildRequires: pkgconfig(dbus-glib-1)
63 BuildRequires: pkgconfig(libsmack)
64 BuildRequires: pkgconfig(sqlite3)
65 BuildRequires: pkgconfig(x11)
66 BuildRequires: pkgconfig(aul)
67 ###############################################################################
73 Summary: Wrt header files for external modules
74 Group: Development/Libraries
75 Requires: %{name} = %{version}
78 wrt library development headers
84 %if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1"
89 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
91 %cmake . -DDPL_LOG="ON" \
92 -DPROJECT_VERSION=%{version} \
93 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
95 -DDECRYPT_SUPPORT=Off \
97 -DDECRYPT_SUPPORT=On \
99 %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
101 make %{?jobs:-j%jobs}
104 mkdir -p %{buildroot}/usr/share/license
105 cp LICENSE %{buildroot}/usr/share/license/%{name}
108 ## wrt-launchpad-daemon #######################################################
109 mkdir -p %{buildroot}/etc/init.d
110 install -m 755 src/wrt-launchpad-daemon/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/init.d
112 mkdir -p %{buildroot}/etc/rc.d/rc3.d
113 mkdir -p %{buildroot}/etc/rc.d/rc4.d
114 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
115 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
118 mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
119 install -m 0644 %SOURCE101 %{buildroot}%{_unitdir}/wrt_launchpad_daemon@.service
120 ln -s ../wrt_launchpad_daemon@.service %{buildroot}%{_unitdir}/graphical.target.wants/wrt_launchpad_daemon@app.service
124 systemctl stop wrt_launchpad_daemon@app.service
126 ###############################################################################
133 chmod +s /usr/bin/wrt-launcher
135 ## wrt-launchpad-daemon #######################################################
138 systemctl daemon-reload
140 systemctl restart wrt_launchpad_daemon@app.service
142 ###############################################################################
144 echo "[WRT] wrt postinst done ..."
146 ## wrt-launchpad-daemon #######################################################
148 %postun -p /sbin/ldconfig
149 systemctl daemon-reload
150 ###############################################################################
153 %manifest wrt.manifest
156 %attr(755,root,root) %{_bindir}/wrt-client
157 %attr(755,root,root) %{_bindir}/wrt-launcher
158 %attr(755,root,root) %{_bindir}/wrt_reset_all.sh
159 %attr(755,root,root) %{_bindir}/wrt_reset_db.sh
161 %{_datadir}/wrt-engine/*
162 %{_datadir}/license/%{name}
163 %attr(644,root,root) %{_datadir}/edje/wrt/*
164 %attr(644,root,root) %{_datadir}/edje/ace/*
165 %attr(644,root,root) /usr/etc/wrt/*
167 %attr(755,root,root) %{_bindir}/wrt-tests-general
168 /opt/share/widget/tests/general/*
170 %attr(755,root,root) %{_sysconfdir}/profile.d/wrt_env.sh
172 ## wrt-launchpad-daemon #######################################################
173 %attr(755,root,root) %{_bindir}/wrt_launchpad_daemon
174 /usr/share/aul/preload_list_wrt.txt
175 %{_sysconfdir}/init.d/wrt_launchpad_run.sh
176 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
177 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
178 /etc/smack/accesses2.d/wrt_launchpad_daemon.rule
179 /opt/etc/smack/accesses.d/wrt_launchpad_daemon.rule
181 %{_unitdir}/graphical.target.wants/wrt_launchpad_daemon@app.service
182 %{_unitdir}/wrt_launchpad_daemon@.service
183 ###############################################################################
187 %{_libdir}/pkgconfig/*