-#git:framework/web/wrt wrt_0.8.148
+#git:framework/web/wrt wrt_0.8.175
Name: wrt
Summary: web runtime
-Version: 0.8.148
+Version: 0.8.175
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
BuildRequires: pkgconfig(wrt-popup-wrt-runner)
BuildRequires: pkgconfig(wrt-popup-ace-runner)
BuildRequires: pkgconfig(sysman)
+BuildRequires: pkgconfig(osp-appfw)
+BuildRequires: osp-appfw-internal-devel
+Requires: osp-appfw
## wrt-launchpad-daemon #######################################################
BuildRequires: pkgconfig(app-checker)
%prep
%setup -q
+%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"
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DDPL_LOG="ON" \
-DPROJECT_VERSION=%{version} \
- -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
+ -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
+ %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%post
-#vconf --- register WRT
-#naming rule : file/private/[pkg name]/[key name]
-/usr/bin/vconftool set -t string file/private/wrt/vendor "Samsung" -f
-/usr/bin/vconftool set -t string file/private/wrt/name "WebRuntime" -f
-/usr/bin/vconftool set -t string file/private/wrt/version "1.0.0.0" -f
-/usr/bin/vconftool set -t string file/private/wrt/api "W3C WAC1.0 WAC2.0" -f
-
chmod +s /usr/bin/wrt-launcher
## wrt-launchpad-daemon #######################################################
%attr(644,root,root) %{_datadir}/edje/wrt/*
%attr(644,root,root) %{_datadir}/edje/ace/*
%attr(644,root,root) /usr/etc/wrt/*
+%if %{with_tests}
+ %attr(755,root,root) %{_bindir}/wrt-tests-general
+ /opt/share/widget/tests/general/*
+%endif
+%attr(755,root,root) %{_sysconfdir}/profile.d/wrt_env.sh
## wrt-launchpad-daemon #######################################################
%attr(755,root,root) %{_bindir}/wrt_launchpad_daemon