%description -n tct-geoallow-w3c-tests
This is webapi w3c geoallow test suite package
+%package -n tct-geodeny-w3c-tests
+Summary: Webapi w3c geodeny test suite
+Version: 2.3.6
+Release: 1
+License: BSD
+Group: test/tct/webapi
+BuildRequires: zip
+BuildRequires: hash-signer
+
+%description -n tct-geodeny-w3c-tests
+This is webapi w3c geodeny test suite package
+
%package -n tct-gumallow-w3c-tests
Summary: Webapi w3c gumallow test suite
Version: 2.3.6
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-geoallow-w3c-tests"
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-gumallow-w3c-tests"
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-deviceorientation-w3c-tests"
+sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-geodeny-w3c-tests"
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-2dtransforms-css3-tests"
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-3dtransforms-css3-tests"
sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-animations-css3-tests"
/opt/tct-content-tizen-tests
/usr/share/tct-content-tizen-tests
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_default.mp3
+/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_no_tag.mp3
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_lyrics.mp3
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_video.mp4
+/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_video_tagged.mp4
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_default.jpg
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_geolocation.jpg
/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_orientation_1.jpg
rm -rf /opt/unpacked_crx/$SUB_PKG_NAME
+%files -n tct-geodeny-w3c-tests
+/opt/tct-geodeny-w3c-tests
+/usr/share/tct-geodeny-w3c-tests
+
+%post -n tct-geodeny-w3c-tests
+SUB_PKG_NAME=tct-geodeny-w3c-tests
+wgt_installer="wrt-installer"
+
+type $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ [ -e /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt ] && $wgt_installer -i /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt
+ if [ $? -eq 0 ]; then
+ echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt to /opt/usr/apps/`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'` done"
+ echo "$(wrt-launcher -l | grep $SUB_PKG_NAME | awk '{ print $(NF-1) }') sdbd rw" | smackload
+ else
+ echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt fail ..."
+ fi
+ sync
+fi
+
+%postun -n tct-geodeny-w3c-tests
+SUB_PKG_NAME=tct-geodeny-w3c-tests
+wgt_installer="wrt-installer"
+
+type $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ package_id=`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'`
+ if [ -n "$(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')" ]; then
+ for i in $(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')
+ do
+ kill -9 $i
+ if [ "$?" -ne 0 ]; then
+ echo "Kill the processes of $SUB_PKG_NAME fail ..."
+ else
+ echo "Kill the processes of $SUB_PKG_NAME done"
+ fi
+ done
+ fi
+
+ if [ -n "$package_id" ]; then
+ $wgt_installer -un $package_id
+ if [ "$?" -ne 0 ]; then
+ echo "Uninstall $SUB_PKG_NAME fail ..."
+ else
+ echo "Uninstall $SUB_PKG_NAME done"
+ fi
+ sync
+ fi
+fi
+
+rm -rf /opt/unpacked_crx/$SUB_PKG_NAME
+
%files -n tct-gumallow-w3c-tests
/opt/tct-gumallow-w3c-tests
/usr/share/tct-gumallow-w3c-tests