netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / rhel / openvswitch-kmod-fedora.spec.in
1 # Spec file for Open vSwitch.
2
3 # Copyright (C) 2009, 2010, 2015 Nicira Networks, Inc.
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 %global debug_package %{nil}
11
12 #%define kernel 3.1.5-1.fc16.x86_64
13 #define kernel %{kernel_source}
14 %{?kversion:%define kernel %kversion}
15
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>
21 Version: @VERSION@
22
23 # The entire source code is ASL 2.0 except datapath/ which is GPLv2
24 License: GPLv2
25 Release: 1%{?dist}
26 Source: openvswitch-%{version}.tar.gz
27 #Source1: openvswitch-init
28 Buildroot: /tmp/openvswitch-xen-rpm
29
30 %description
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.
34
35 %prep
36 %setup -q -n openvswitch-%{version}
37
38 %build
39 %configure --with-linux=/lib/modules/%{kernel}/build --enable-ssl
40 make %{_smp_mflags} -C datapath/linux
41
42 %install
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
47 do
48     modname="$(basename ${module})"
49     echo "override ${modname%.ko} * extra" >> \
50         $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf
51 done
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 # Ensure that modprobe will find our modules.
58 depmod %{kernel}
59
60 %files
61 %defattr(0644,root,root)
62 /lib/modules/%{kernel}/extra/*.ko
63 /etc/depmod.d/kmod-openvswitch.conf
64 %exclude /lib/modules/%{kernel}/modules.*
65
66 %changelog
67 * Wed Sep 21 2011 Kyle Mestery <kmestery@cisco.com>
68 - Updated for F15
69 * Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>
70 - First build on F14