]> git.proxmox.com Git - mirror_ovs.git/blob - rhel/openvswitch-kmod-fedora.spec.in
netdev-dpdk: Remove dpdkvhostcuse ports
[mirror_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 echo "override ${modname%.ko} * weak-updates" >> \
52 $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf
53 done
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 # Ensure that modprobe will find our modules.
60 depmod %{kernel}
61
62 %files
63 %defattr(0644,root,root)
64 /lib/modules/%{kernel}/extra/*.ko
65 /etc/depmod.d/kmod-openvswitch.conf
66 %exclude /lib/modules/%{kernel}/modules.*
67
68 %changelog
69 * Wed Sep 21 2011 Kyle Mestery <kmestery@cisco.com>
70 - Updated for F15
71 * Wed Jan 12 2011 Ralf Spenneberg <ralf@os-s.net>
72 - First build on F14