Setting tag openvswitch-1.1.0pre2-2
[openvswitch.git] / openvswitch.spec
index 40469ad..a563464 100644 (file)
@@ -2,9 +2,10 @@
 
 %define name openvswitch
 %define version 1.1.0pre2
-%define taglevel 1
+%define taglevel 2
 
 %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>
@@ -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;}'`
@@ -61,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT
 %postun
 
 %changelog
+* Mon Sep 26 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - openvswitch-1.1.0pre2-2
+- add a buildrequires dep. to kernel-devel
+
 * Mon Jan 17 2011 Sapan Bhatia <sapanb@cs.princeton.edu> - openvswitch-1.1.0pre2-1
 - Fixed a build issue.