fix build failure caused by incorrect %setup 1.0_post 2.0alpha master 2.0_alpha
authorChengwei Yang <chengwei.yang@intel.com>
Wed, 6 Jun 2012 06:06:03 +0000 (14:06 +0800)
committerChengwei Yang <chengwei.yang@intel.com>
Wed, 6 Jun 2012 06:06:03 +0000 (14:06 +0800)
fix build failure caused by incorrect %setup and update SOURCE0 to
consists of name and version macro as gbs and hudson expected.

Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
packaging/unzip.spec

index be42e47..05ed6f0 100644 (file)
@@ -5,7 +5,7 @@ Version: 6.0
 Release: 9
 License: BSD
 Group: Applications/Archiving
-Source: ftp://ftp.info-zip.org/pub/infozip/src/unzip60.tar.gz
+Source0: %{name}-%{version}.tar.gz
 Source1001: packaging/unzip.manifest 
 # Not sent to upstream.
 Patch1: unzip-6.0-bzip2-configure.patch
@@ -34,7 +34,7 @@ Install the unzip package if you need to list, test or extract files from
 a zip archive.
 
 %prep
-%setup -q -n %{name}60
+%setup -q
 %patch1 -p1 -b .bzip2-configure
 %patch2 -p1 -b .exec-shield
 %patch3 -p1 -b .close