3 %define name openvswitch
4 %define version ef72dd8
7 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
8 %define upstream http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
11 Packager: PlanetLab Central <support@planet-lab.org>
12 Distribution: PlanetLab %{plrelease}
13 URL: %(echo %{url} | cut -d ' ' -f 2)
15 Summary: pl_openvswitch
20 Group: System Environment/Kernel
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
23 BuildRequires: kernel-devel
25 Source0: openvswitch-%{version}.tar.gz
28 Openvswitch - virtual switches on PlanetLab
34 KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`
35 ./configure --with-linux=/usr/src/kernels/$KVER
39 KVER=`ls -l /usr/src/kernels | awk '{printf $9;}'`
40 mkdir -p $RPM_BUILD_ROOT/bin
41 mkdir -p $RPM_BUILD_ROOT/sbin
42 mkdir -p $RPM_BUILD_ROOT/share
43 mkdir -p $RPM_BUILD_ROOT/var
44 mkdir -p $RPM_BUILD_ROOT/lib/modules/$KVER/kernel/drivers/net
46 make install DESTDIR=$RPM_BUILD_ROOT
47 cp -R datapath/linux/*.ko $RPM_BUILD_ROOT/lib/modules/$KVER/kernel/drivers/net
50 rm -rf $RPM_BUILD_ROOT
66 * Mon Sep 26 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - openvswitch-1.1.0pre2-2
67 - add a buildrequires dep. to kernel-devel
69 * Mon Jan 17 2011 Sapan Bhatia <sapanb@cs.princeton.edu> - openvswitch-1.1.0pre2-1
70 - Fixed a build issue.