1 #git:framework/web/wrt wrt_0.8.198.1
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(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(osp-appfw)
49 BuildRequires: pkgconfig(app2sd)
50 BuildRequires: pkgconfig(capi-system-system-settings)
51 BuildRequires: osp-appfw-internal-devel
54 ## wrt-launchpad-daemon #######################################################
55 BuildRequires: pkgconfig(app-checker)
56 BuildRequires: pkgconfig(bundle)
57 BuildRequires: pkgconfig(dlog)
58 BuildRequires: pkgconfig(dbus-glib-1)
59 BuildRequires: pkgconfig(libsmack)
60 BuildRequires: pkgconfig(sqlite3)
61 BuildRequires: pkgconfig(x11)
62 BuildRequires: pkgconfig(aul)
63 ###############################################################################
69 Summary: Wrt header files for external modules
70 Group: Development/Libraries
71 Requires: %{name} = %{version}
74 wrt library development headers
80 %if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1"
85 export LDFLAGS+="-Wl,--rpath=/usr/lib"
87 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
89 -DPROJECT_VERSION=%{version} \
90 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
91 %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
95 mkdir -p %{buildroot}/usr/share/license
96 cp LICENSE %{buildroot}/usr/share/license/%{name}
99 ## wrt-launchpad-daemon #######################################################
100 mkdir -p %{buildroot}/etc/init.d
101 install -m 755 src/wrt-launchpad-daemon/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/init.d
103 mkdir -p %{buildroot}/etc/rc.d/rc3.d
104 mkdir -p %{buildroot}/etc/rc.d/rc4.d
105 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
106 ln -sf ../../init.d/wrt_launchpad_run.sh %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
109 mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
110 install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/system/wrt_launchpad_daemon@.service
111 ln -s ../wrt_launchpad_daemon@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
115 systemctl stop wrt_launchpad_daemon@app.service
117 ###############################################################################
123 chmod +s /usr/bin/wrt-launcher
125 ## wrt-launchpad-daemon #######################################################
128 systemctl daemon-reload
130 systemctl restart wrt_launchpad_daemon@app.service
132 ###############################################################################
134 echo "[WRT] wrt postinst done ..."
136 ## wrt-launchpad-daemon #######################################################
138 %postun -p /sbin/ldconfig
139 systemctl daemon-reload
140 ###############################################################################
143 %manifest wrt.manifest
146 %attr(755,root,root) %{_bindir}/wrt-client
147 %attr(755,root,root) %{_bindir}/wrt-launcher
148 %attr(755,root,root) %{_bindir}/wrt_reset_all.sh
149 %attr(755,root,root) %{_bindir}/wrt_reset_db.sh
151 %{_datadir}/wrt-engine/*
152 %{_datadir}/license/%{name}
153 %attr(644,root,root) %{_datadir}/edje/wrt/*
154 %attr(644,root,root) %{_datadir}/edje/ace/*
155 %attr(644,root,root) /usr/etc/wrt/*
157 %attr(755,root,root) %{_bindir}/wrt-tests-general
158 /opt/share/widget/tests/general/*
160 %attr(755,root,root) %{_sysconfdir}/profile.d/wrt_env.sh
162 ## wrt-launchpad-daemon #######################################################
163 %attr(755,root,root) %{_bindir}/wrt_launchpad_daemon
164 /usr/share/aul/preload_list_wrt.txt
165 %{_sysconfdir}/init.d/wrt_launchpad_run.sh
166 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc3.d/S15wrt_launchpad_run
167 %attr(0755,root,root) %{_sysconfdir}/rc.d/rc4.d/S80wrt_launchpad_run
168 /etc/smack/accesses2.d/wrt_launchpad_daemon.rule
169 /opt/etc/smack/accesses.d/wrt_launchpad_daemon.rule
171 %{_libdir}/systemd/system/graphical.target.wants/wrt_launchpad_daemon@app.service
172 %{_libdir}/systemd/system/wrt_launchpad_daemon@.service
173 ###############################################################################
177 %{_libdir}/pkgconfig/*