%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>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
#Requires:
-Source: http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
+Source0: openvswitch-%{version}.tar.gz
%description
Openvswitch - virtual switches on PlanetLab
%prep
%setup
-wget %{Source}
-tar xvfz openvswitch-%{version}.tar.gz
-cd openvswitch-%{version}
+wget %{upstream}
+tar xvfz openvswitch-%{version}.tar.gz --strip=1
%build
KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`