]>
Commit | Line | Data |
---|---|---|
d8fe0a6a RS |
1 | # Spec file for Open vSwitch. |
2 | ||
31efbdb9 | 3 | # Copyright (C) 2009, 2010, 2015 Nicira Networks, Inc. |
d8fe0a6a RS |
4 | # |
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. | |
9 | ||
10 | #%define kernel 3.1.5-1.fc16.x86_64 | |
11 | #define kernel %{kernel_source} | |
12 | %{?kversion:%define kernel %kversion} | |
13 | ||
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> | |
19 | Version: @VERSION@ | |
20 | ||
21 | # The entire source code is ASL 2.0 except datapath/ which is GPLv2 | |
22 | License: GPLv2 | |
23 | Release: 1%{?dist} | |
24 | Source: openvswitch-%{version}.tar.gz | |
25 | #Source1: openvswitch-init | |
26 | Buildroot: /tmp/openvswitch-xen-rpm | |
27 | ||
28 | %description | |
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. | |
32 | ||
33 | %prep | |
34 | %setup -q -n openvswitch-%{version} | |
35 | ||
36 | %build | |
14ee471c | 37 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{kernel}/build --enable-ssl |
d8fe0a6a RS |
38 | make %{_smp_mflags} -C datapath/linux |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | make -C datapath/linux modules_install | |
43 | ||
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 \; | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %preun | |
51 | ||
52 | %post | |
53 | # Ensure that modprobe will find our modules. | |
54 | depmod %{kernel} | |
55 | ||
56 | %files | |
57 | %defattr(-,root,root) | |
dd2a1e9c | 58 | /lib/modules/%{kernel}/kernel/extra/openvswitch/*.ko |
d8fe0a6a RS |
59 | |
60 | %changelog | |
61 | * Wed Sep 21 2011 Kyle Mestery <kmestery@cisco.com> | |
62 | - Updated for F15 | |
63 | * Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net> | |
64 | - First build on F14 |