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:03:47 +0000 (14:03 +0800)
committerChengwei Yang <chengwei.yang@intel.com>
Wed, 6 Jun 2012 06:03:47 +0000 (14:03 +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/python-yaml.spec

index 944bd4d..50ff7e9 100644 (file)
@@ -9,7 +9,7 @@ Release:    1
 Group:      Development/Libraries
 License:    MIT
 URL:        http://pyyaml.org/
-Source0:    http://pyyaml.org/download/pyyaml/PyYAML-%{version}.tar.gz
+Source0:    %{name}-%{version}.tar.gz
 Source1001: packaging/python-yaml.manifest 
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -34,7 +34,7 @@ configuration files to object serialization and persistance.
 
 
 %prep
-%setup -q -n PyYAML-%{version}
+%setup -q
 
 
 %build