X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=openvswitch.spec;h=8aa41f64162e9a4945f3d6b1f8f542fe474cdaf5;hb=a0950040d6c30c8265b73a3144e48ba37959daf8;hp=40469aded390fdcd0ba21c674df0a0f0dd20a8f8;hpb=b76337d02b06c7f77590222e30c4c6d877902be9;p=openvswitch.git diff --git a/openvswitch.spec b/openvswitch.spec index 40469ad..8aa41f6 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -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 @@ -19,14 +20,17 @@ License: GPL Group: System Environment/Kernel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot #Requires: +BuildRequires: kernel-devel -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 --strip=1 %build KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`