Fix bugs
authorHyunwoo Kim <hwlove.kim@samsung.com>
Mon, 10 Jun 2013 08:36:30 +0000 (17:36 +0900)
committerHyunwoo Kim <hwlove.kim@samsung.com>
Mon, 10 Jun 2013 08:36:43 +0000 (17:36 +0900)
Change-Id: Ibb20c8b7383dce1c8a4a643dc430c1f2ab7b5221
Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
packaging/hash-signer.spec [moved from packaging/package-signer.spec with 91% similarity]
tools/sign-widget.sh

similarity index 91%
rename from packaging/package-signer.spec
rename to packaging/hash-signer.spec
index 64bd30d..c97b0bf 100644 (file)
@@ -5,8 +5,11 @@ Release:    1
 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
 
index 6f7d971..4ce6465 100755 (executable)
@@ -182,12 +182,15 @@ then
     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