1 # Spec file for Open vSwitch.
3 # Copyright (C) 2009, 2010 Nicira Networks, Inc.
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved. This file is offered as-is,
8 # without warranty of any kind.
10 #%define kernel 3.1.5-1.fc16.x86_64
11 #define kernel %{kernel_source}
12 %{?kversion:%define kernel %kversion}
14 Name: openvswitch-kmod
15 Summary: Open vSwitch Kernel Modules
16 Group: System Environment/Daemons
17 URL: http://www.openvswitch.org/
18 Vendor: OpenSource Security Ralf Spenneberg <ralf@os-s.net>
21 # The entire source code is ASL 2.0 except datapath/ which is GPLv2
24 Source: openvswitch-%{version}.tar.gz
25 #Source1: openvswitch-init
26 Buildroot: /tmp/openvswitch-xen-rpm
29 Open vSwitch provides standard network bridging functions augmented with
30 support for the OpenFlow protocol for remote per-flow control of
31 traffic. This package contains the kernel modules.
34 %setup -q -n openvswitch-%{version}
37 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{kernel}/build --enable-ssl
38 make %{_smp_mflags} -C datapath/linux
41 rm -rf $RPM_BUILD_ROOT
42 make -C datapath/linux modules_install
44 install -d -m 755 $RPM_BUILD_ROOT/lib/modules/%{kernel}/kernel/extra/openvswitch
45 find datapath/linux -name *.ko -exec install -m 755 \{\} $RPM_BUILD_ROOT/lib/modules/%{kernel}/kernel/extra/openvswitch \;
48 rm -rf $RPM_BUILD_ROOT
53 # Ensure that modprobe will find our modules.
58 /lib/modules/%{kernel}/kernel/extra/openvswitch/openvswitch.ko
61 * Wed Sep 21 2011 Kyle Mestery <kmestery@cisco.com>
63 * Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>