4 Summary: Installer for tizen Webruntime
7 Group: Development/Libraries
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: wrt-installer.manifest
12 BuildRequires: edje-tools
13 BuildRequires: pkgconfig(appsvc)
14 BuildRequires: pkgconfig(libxml-2.0)
15 BuildRequires: pkgconfig(openssl)
16 BuildRequires: pkgconfig(dpl-efl)
17 BuildRequires: pkgconfig(cert-svc-vcore)
18 BuildRequires: pkgconfig(dpl-event-efl)
19 BuildRequires: pkgconfig(dpl-utils-efl)
20 BuildRequires: pkgconfig(dpl-wrt-dao-ro)
21 BuildRequires: pkgconfig(dpl-wrt-dao-rw)
22 BuildRequires: pkgconfig(wrt-commons-i18n-dao-ro)
23 BuildRequires: pkgconfig(wrt-commons-widget-interface-dao)
24 BuildRequires: pkgconfig(security-install)
25 BuildRequires: pkgconfig(ecore-x)
26 BuildRequires: pkgconfig(xmlsec1)
27 BuildRequires: pkgconfig(libidn)
28 BuildRequires: pkgconfig(libiri)
29 BuildRequires: pkgconfig(libpcrecpp)
30 BuildRequires: pkgconfig(pkgmgr-installer)
31 BuildRequires: pkgconfig(pkgmgr-parser)
32 BuildRequires: pkgconfig(pkgmgr-types)
33 BuildRequires: pkgconfig(pkgmgr-info)
34 BuildRequires: pkgconfig(pkgmgr)
35 BuildRequires: pkgconfig(dlog)
36 BuildRequires: pkgconfig(cert-svc)
37 BuildRequires: pkgconfig(utilX)
38 BuildRequires: pkgconfig(wrt-plugins-types)
39 BuildRequires: pkgconfig(tapi)
40 BuildRequires: pkgconfig(shortcut)
41 BuildRequires: pkgconfig(capi-appfw-app-manager)
42 BuildRequires: pkgconfig(app2sd)
44 BuildRequires: pkgconfig(web-provider)
46 BuildRequires: pkgconfig(libprivilege-control)
47 BuildRequires: pkgconfig(libsmack)
48 BuildRequires: libss-client-devel
49 Requires: libss-client
50 Requires: osp-installer
54 Description: Wrt Installer for Tizen apps and Wac apps
61 %if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1"
66 %if 0%{?tizen_build_binary_release_type_eng}
67 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
68 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
69 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
72 export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed"
75 %cmake . -DCMAKE_INSTALL_PREFIX=/usr \
77 -DLIVEBOX_SUPPORT=On \
79 -DLIVEBOX_SUPPORT=Off \
82 -DDECRYPT_SUPPORT=On \
84 -DDECRYPT_SUPPORT=Off \
88 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
89 %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
94 mkdir -p %{buildroot}/usr/share/license
95 cp LICENSE %{buildroot}/usr/share/license/%{name}
103 chmod +s /usr/bin/wrt-installer
105 #symlink for package manager
106 %define pkg_manager_backend_path "/usr/etc/package-manager/backend"
107 ln -sf /usr/bin/wrt-installer %{pkg_manager_backend_path}/wgt
108 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/Wgt
109 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/wGt
110 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/wgT
111 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/WGt
112 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/wGT
113 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/WgT
114 ln -sf %{pkg_manager_backend_path}/wgt %{pkg_manager_backend_path}/WGT
116 #for booting recovery
117 mkdir -p /opt/share/widget/temp_info
119 # for downloadable Application icons path
120 mkdir -p /opt/share/icons/default/small
122 %postun -p /sbin/ldconfig
125 %manifest %{name}.manifest
126 %attr(755,root,root) %{_bindir}/wrt-installer
127 /usr/etc/package-manager/backendlib/libwgt.so
128 %attr(644,root,root) /usr/etc/wrt-installer/*.xsd
129 %{_datadir}/license/%{name}
131 %attr(755,root,root) %{_bindir}/wrt-installer-tests-*
132 /opt/share/widget/tests/installer/widgets/*