1 #git:framework/web/wrt wrt_0.8.142
6 Group: Development/Libraries
7 License: Apache License, Version 2.0
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(glib-2.0)
18 BuildRequires: pkgconfig(sqlite3)
19 BuildRequires: pkgconfig(ewebkit2)
20 BuildRequires: pkgconfig(dbus-1)
21 BuildRequires: pkgconfig(efreet)
22 BuildRequires: pkgconfig(appcore-efl)
23 BuildRequires: pkgconfig(openssl)
24 BuildRequires: pkgconfig(cert-svc)
25 BuildRequires: pkgconfig(dpl-efl)
26 BuildRequires: pkgconfig(libpcrecpp)
27 BuildRequires: pkgconfig(ecore)
28 BuildRequires: pkgconfig(eina)
29 BuildRequires: pkgconfig(ui-gadget-1)
30 BuildRequires: pkgconfig(utilX)
31 BuildRequires: pkgconfig(secure-storage)
32 BuildRequires: pkgconfig(pkgmgr)
33 BuildRequires: pkgconfig(libiri)
34 BuildRequires: pkgconfig(appsvc)
35 BuildRequires: pkgconfig(cert-svc-vcore)
36 BuildRequires: pkgconfig(libsoup-2.4)
37 BuildRequires: pkgconfig(security-core)
38 BuildRequires: pkgconfig(security-client)
39 BuildRequires: pkgconfig(notification)
40 BuildRequires: pkgconfig(libprivilege-control)
41 BuildRequires: pkgconfig(capi-appfw-app-manager)
42 BuildRequires: pkgconfig(haptic)
43 BuildRequires: pkgconfig(capi-web-url-download)
44 BuildRequires: pkgconfig(wrt-plugin-loading)
45 BuildRequires: pkgconfig(wrt-plugin-js-overlay)
46 BuildRequires: pkgconfig(dpl-encryption)
47 BuildRequires: pkgconfig(wrt-popup-wrt-runner)
48 BuildRequires: pkgconfig(wrt-popup-ace-runner)
50 ## wrt-launchpad-daemon #######################################################
51 BuildRequires: pkgconfig(app-checker)
52 BuildRequires: pkgconfig(bundle)
53 BuildRequires: pkgconfig(dlog)
54 BuildRequires: pkgconfig(dbus-glib-1)
55 BuildRequires: pkgconfig(libsmack)
56 BuildRequires: pkgconfig(sqlite3)
57 BuildRequires: pkgconfig(x11)
58 BuildRequires: pkgconfig(aul)
59 ###############################################################################
65 Summary: Wrt header files for external modules
66 Group: Development/Libraries
67 Requires: %{name} = %{version}
70 wrt library development headers
76 export LDFLAGS+="-Wl,--rpath=/usr/lib"
78 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
80 -DPROJECT_VERSION=%{version} \
81 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
85 mkdir -p %{buildroot}/usr/share/license
86 cp LICENSE %{buildroot}/usr/share/license/%{name}
89 ## wrt-launchpad-daemon #######################################################
90 mkdir -p %{buildroot}/etc/init.d
91 install -m 755 src/wrt-launchpad-daemon/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/init.d
93 mkdir -p %{buildroot}/etc/rc.d/rc3.d
94 mkdir -p %{buildroot}/etc/rc.d/rc4.d
95 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
96 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
99 mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
100 install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/system/wrt_launchpad_daemon@.service
101 ln -s ../wrt_launchpad_daemon@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
105 systemctl stop wrt_launchpad_daemon@app.service
107 ###############################################################################
113 #vconf --- register WRT
114 #naming rule : file/private/[pkg name]/[key name]
115 /usr/bin/vconftool set -t string file/private/wrt/vendor "Samsung" -f
116 /usr/bin/vconftool set -t string file/private/wrt/name "WebRuntime" -f
117 /usr/bin/vconftool set -t string file/private/wrt/version "1.0.0.0" -f
118 /usr/bin/vconftool set -t string file/private/wrt/api "W3C WAC1.0 WAC2.0" -f
120 chmod +s /usr/bin/wrt-launcher
122 ## wrt-launchpad-daemon #######################################################
125 systemctl daemon-reload
127 systemctl restart wrt_launchpad_daemon@app.service
129 ###############################################################################
131 echo "[WRT] wrt postinst done ..."
133 ## wrt-launchpad-daemon #######################################################
135 %postun -p /sbin/ldconfig
136 systemctl daemon-reload
137 ###############################################################################
140 %manifest wrt.manifest
143 %{_libdir}/wrt-wk2-bundles/*.so
144 %{_libdir}/wrt-wk2-bundles/*.so.*
145 %attr(755,root,root) %{_bindir}/wrt-client
146 %attr(755,root,root) %{_bindir}/wrt-launcher
147 %attr(755,root,root) %{_bindir}/wrt_reset_all.sh
148 %attr(755,root,root) %{_bindir}/wrt_reset_db.sh
150 %{_datadir}/wrt-engine/*
151 %{_datadir}/license/%{name}
152 %attr(644,root,root) %{_datadir}/edje/wrt/*
153 %attr(644,root,root) %{_datadir}/edje/ace/*
154 %attr(644,root,root) /usr/etc/wrt/*
156 ## wrt-launchpad-daemon #######################################################
157 %attr(755,root,root) %{_bindir}/wrt_launchpad_daemon
158 /usr/share/aul/preload_list_wrt.txt
159 %{_sysconfdir}/init.d/wrt_launchpad_run.sh
160 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
161 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
163 %{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
164 %{_libdir}/systemd/system/wrt_launchpad_daemon@.service
165 ###############################################################################
169 %{_libdir}/pkgconfig/*