%bcond_with livebox Name: wrt-installer Summary: Installer for tizen Webruntime Version: 0.1.58.2 Release: 1 Group: Development/Libraries License: Apache License, Version 2.0 URL: N/A Source0: %{name}-%{version}.tar.gz Source100: wrt-preinstall-widgets.service Source1001: wrt-installer.manifest BuildRequires: cmake BuildRequires: edje-tools BuildRequires: pkgconfig(appsvc) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(dpl-efl) BuildRequires: pkgconfig(cert-svc-vcore) BuildRequires: pkgconfig(dpl-event-efl) BuildRequires: pkgconfig(dpl-utils-efl) BuildRequires: pkgconfig(dpl-wrt-dao-ro) BuildRequires: pkgconfig(dpl-wrt-dao-rw) BuildRequires: pkgconfig(security-install) BuildRequires: pkgconfig(ecore-x) BuildRequires: pkgconfig(xmlsec1) BuildRequires: pkgconfig(libidn) BuildRequires: pkgconfig(libiri) BuildRequires: pkgconfig(libpcrecpp) BuildRequires: pkgconfig(pkgmgr-installer) BuildRequires: pkgconfig(pkgmgr-parser) BuildRequires: pkgconfig(pkgmgr-types) BuildRequires: pkgconfig(pkgmgr-info) BuildRequires: pkgconfig(pkgmgr) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(cert-svc) BuildRequires: pkgconfig(utilX) BuildRequires: pkgconfig(wrt-plugins-types) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(shortcut) BuildRequires: pkgconfig(dpl-encryption) BuildRequires: pkgconfig(capi-appfw-app-manager) BuildRequires: pkgconfig(app2sd) %if %{with livebox} BuildRequires: pkgconfig(web-provider) %endif BuildRequires: pkgconfig(libprivilege-control) BuildRequires: pkgconfig(osp-appfw) BuildRequires: osp-appfw-internal-devel BuildRequires: pkgconfig(libsmack) Requires: osp-appfw Requires: xmlsec1 %description Description: Wrt Installer for Tizen apps and Wac apps %prep %setup -q cp %{SOURCE1001} . %define with_tests 0 %if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1" %define with_tests 1 %endif %build export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--hash-style=both -Wl,--as-needed" LDFLAGS="$LDFLAGS" %cmake . -DCMAKE_INSTALL_PREFIX=/usr \ %if %{with livebox} -DLIVEBOX_SUPPORT=On \ %else -DLIVEBOX_SUPPORT=Off \ %endif -DSMACK=Off \ -DDPL_LOG=ON \ -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \ %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS} make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cp LICENSE %{buildroot}/usr/share/license/%{name} %make_install mkdir -p %{buildroot}%{_libdir}/systemd/system install -m 644 %{SOURCE100} %{buildroot}%{_libdir}/systemd/system mkdir -p %{buildroot}/usr/bin install -m 755 wrt_preinstall_widgets.sh %{buildroot}/usr/bin mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants ln -s ../wrt-preinstall-widgets.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants mkdir -p %{buildroot}/opt/share/packages mkdir -p %{buildroot}/opt/usr/apps/.preinstallWidgets %clean rm -rf %{buildroot} %post /sbin/ldconfig chmod +s /usr/bin/wrt-installer #symlink for package manager ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt #for booting recovery mkdir -p /opt/share/widget/temp_info # for downloadable Application icons path mkdir -p /opt/share/icons/default/small %postun -p /sbin/ldconfig %files %manifest %{name}.manifest %attr(755,root,root) %{_bindir}/wrt-installer /usr/etc/package-manager/backendlib/libwgt.so %{_datadir}/license/%{name} %{_libdir}/systemd/system/graphical.target.wants/wrt-preinstall-widgets.service %{_libdir}/systemd/system/wrt-preinstall-widgets.service /usr/bin/wrt_preinstall_widgets.sh %dir /opt/share/packages %dir /opt/usr/apps/.preinstallWidgets %if %{with_tests} %attr(755,root,root) %{_bindir}/wrt-installer-tests-* /opt/share/widget/tests/installer/widgets/* %endif