debugging
[openvswitch.git] / openvswitch.spec
index 40469ad..759ab63 100644 (file)
@@ -5,6 +5,7 @@
 %define taglevel 1
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+%define upstream http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
 
 Vendor: PlanetLab
 Packager: PlanetLab Central <support@planet-lab.org>
@@ -20,13 +21,16 @@ Group: System Environment/Kernel
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 #Requires: 
 
-Source0: http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
+Source0: openvswitch-%{version}.tar.gz
 
 %description
 Openvswitch - virtual switches on PlanetLab
 
 %prep
 %setup
+wget %{upstream}
+tar xvfz openvswitch-%{version}.tar.gz
+cd openvswitch-%{version}
 
 %build
 KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`