X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=openvswitch.spec;h=8aa41f64162e9a4945f3d6b1f8f542fe474cdaf5;hb=a0950040d6c30c8265b73a3144e48ba37959daf8;hp=a05876de35c7b72f6f0c5cee98dcc93837d8891b;hpb=ade3d3d0a03c4a1be91a4cb0a64bf2a4cf5b5146;p=openvswitch.git diff --git a/openvswitch.spec b/openvswitch.spec index a05876d..8aa41f6 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -20,7 +20,9 @@ License: GPL Group: System Environment/Kernel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot #Requires: +BuildRequires: kernel-devel +Source0: openvswitch-%{version}.tar.gz %description Openvswitch - virtual switches on PlanetLab @@ -28,8 +30,7 @@ Openvswitch - virtual switches on PlanetLab %prep %setup wget %{upstream} -tar xvfz openvswitch-%{version}.tar.gz -cd openvswitch-%{version} +tar xvfz openvswitch-%{version}.tar.gz --strip=1 %build KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`