Change-Id: Ibb20c8b7383dce1c8a4a643dc430c1f2ab7b5221
Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
Group: TO_BE/FILLED_IN
License: TO BE FILLED IN
Source0: %{name}-%{version}.tar.gz
+BuildRequires: xmlsec1
Requires: xmlstarlet
Requires: xmlsec1
+Requires: zip
+Requires: unzip
%description
TBD
echo
fi
+pkgname=$(basename "$1")
cd $WD
-if [ -f "$1" ]
+if [ -f "$pkgname" ]
then
echo "Zipping widget..."
- rm -f "$1"
- zip -jr $WD/$WIDGET.wgt $wgtdir
+ rm -f "$pkgname"
+ cd $wgtdir
+ zip -r $WD/$WIDGET.wgt ./
+ cd $WD
rm -rf $wgtdir
fi