1 # Spec file for Open vSwitch.
3 # Copyright (C) 2009, 2010, 2015 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 %global debug_package
%{nil}
12 #%define kernel 3.1.5-1.fc16.x86_64
13 #define kernel %{kernel_source}
14 %{?kversion:%define kernel %kversion}
16 Name: openvswitch
-kmod
17 Summary: Open vSwitch Kernel Modules
18 Group: System Environment
/Daemons
19 URL: http
://www.openvswitch.org
/
20 Vendor: OpenSource Security Ralf Spenneberg
<ralf@os
-s.net
>
23 # The entire source code is ASL 2.0 except datapath/ which is GPLv2
26 Source: openvswitch
-%{version}.tar.gz
27 #Source1: openvswitch-init
28 Buildroot: /tmp
/openvswitch
-xen
-rpm
31 Open vSwitch provides standard network bridging functions augmented with
32 support
for the OpenFlow protocol
for remote per
-flow control of
33 traffic. This package contains the kernel modules.
36 %setup -q
-n openvswitch
-%{version}
39 %configure --with
-linux
=/lib
/modules
/%{kernel}/build
--enable-ssl
40 make %{_smp_mflags} -C datapath
/linux
43 rm -rf $RPM_BUILD_ROOT
44 make INSTALL_MOD_PATH
=$RPM_BUILD_ROOT
-C datapath
/linux modules_install
45 mkdir -p $RPM_BUILD_ROOT
/etc
/depmod.d
46 for module
in $RPM_BUILD_ROOT
/lib
/modules
/%{kernel}/extra
/*.ko
48 modname
="$
(basename $
{module
})"
49 echo "override $
{modname%.ko
} * extra"
>> \
50 $RPM_BUILD_ROOT
/etc
/depmod.d
/kmod
-openvswitch.conf
51 echo "override $
{modname%.ko
} * weak
-updates"
>> \
52 $RPM_BUILD_ROOT
/etc
/depmod.d
/kmod
-openvswitch.conf
56 rm -rf $RPM_BUILD_ROOT
59 # Ensure that modprobe will find our modules.
63 %defattr(0644,root
,root
)
64 /lib
/modules
/%{kernel}/extra
/*.ko
65 /etc
/depmod.d
/kmod
-openvswitch.conf
66 %exclude /lib
/modules
/%{kernel}/modules.
*
69 * Wed Sep
21 2011 Kyle Mestery
<kmestery@cisco.com
>
71 * Wed Jan
12 2011 Ralf Spenneberg
<ralf@os
-s.net
>