2013-03-27 13:25:19 +01:00
|
|
|
|
#
|
2014-05-20 18:03:31 +02:00
|
|
|
|
# spec file for package openvswitch
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-05-20 21:19:18 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2011-01-11 16:04:59 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
# needssslcertforbuild
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%bcond_without kmp
|
|
|
|
|
# Don't build in-kernel module, the shipped one is more feature rich:
|
|
|
|
|
%bcond_with kernel_kmp
|
|
|
|
|
# IpSec build disabled temporarily (need to upgrade ipsec-tools):
|
|
|
|
|
%bcond_with ipsec
|
|
|
|
|
# Disable GUI building by default (heavy Qt4 dependencies):
|
|
|
|
|
%bcond_with gui
|
2012-05-03 09:51:43 +02:00
|
|
|
|
|
2011-05-20 21:19:18 +02:00
|
|
|
|
Name: openvswitch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Version: 2.1.2
|
|
|
|
|
Release: 0.<RELEASE13>
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: An open source, production quality, multilayer virtual switch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Url: http://openswitch.org/
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: preamble
|
2012-03-14 11:03:21 +01:00
|
|
|
|
Source2: openvswitch-switch.init
|
|
|
|
|
Source3: openvswitch-switch.template
|
|
|
|
|
Source4: openvswitch-switch.logrotate
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Source5: openvswitch-vtep.init
|
|
|
|
|
Source7: openvswitch-ipsec.init
|
|
|
|
|
Source8: openvswitch.service
|
|
|
|
|
Source10: Module.supported
|
|
|
|
|
Source11: Module.supported.updates
|
|
|
|
|
Source99: README.packager
|
|
|
|
|
Patch0: sle11-device-ops-backport.diff
|
|
|
|
|
Patch1: datapath-Add-support-for-Linux-3.12.patch
|
|
|
|
|
Patch2: log-check-module-loop.patch
|
2013-03-27 13:25:19 +01:00
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
2014-05-20 18:03:31 +02:00
|
|
|
|
BuildRequires: fdupes
|
2013-03-27 13:25:19 +01:00
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: openssl
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
BuildRequires: python-devel
|
2014-05-20 18:03:31 +02:00
|
|
|
|
BuildRequires: python-xml
|
|
|
|
|
%ifnarch aarch64
|
2013-03-27 13:25:19 +01:00
|
|
|
|
BuildRequires: valgrind-devel
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%endif
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Requires: logrotate
|
|
|
|
|
Requires: openssl
|
|
|
|
|
Requires: python
|
|
|
|
|
Provides: openvswitch-common = %{version}
|
2013-04-09 16:39:09 +02:00
|
|
|
|
Obsoletes: openvswitch-common < %{version}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Provides: openvswitch-controller = %{version}
|
|
|
|
|
Obsoletes: openvswitch-controller < %{version}
|
2011-05-20 21:19:18 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%py_requires
|
2010-12-11 17:10:38 +01:00
|
|
|
|
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%description
|
|
|
|
|
Open vSwitch is a production quality, multilayer virtual switch licensed under
|
|
|
|
|
the open source Apache 2.0 license. It is designed to enable massive network automation
|
|
|
|
|
through programmatic extension, while still supporting standard management interfaces
|
|
|
|
|
and protocols (e.g. NetFlow, sFlow, RSPAN, ERSPAN, CLI, LACP, 802.1ag). In addition,
|
|
|
|
|
it is designed to support distribution across multiple physical servers similar to
|
|
|
|
|
VMware’s vNetwork distributed vswitch or Cisco’s Nexus 1000V.
|
2010-12-11 17:10:38 +01:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with kmp}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%package kmp
|
|
|
|
|
Summary: Open vSwitch kernel modules
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: GPL-2.0+
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: System/Kernel
|
|
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
|
|
|
|
%if %{with kernel_kmp}
|
|
|
|
|
BuildRequires: kernel-source
|
2012-05-03 09:51:43 +02:00
|
|
|
|
%endif
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%suse_kernel_module_package -p %_sourcedir/preamble ec2 xenpae vmi um
|
2010-12-11 17:10:38 +01:00
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%description -n %{name}-kmp
|
2010-12-11 17:10:38 +01:00
|
|
|
|
Kernel modules supporting the openvswitch datapath
|
2011-01-11 16:04:59 +01:00
|
|
|
|
%endif
|
2010-12-11 17:10:38 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%package devel
|
|
|
|
|
Summary: Open vSwitch Devel Libraries
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Devel files for Open vSwitch
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with ipsec}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%package ipsec
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch GRE-over-IPsec support
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: %{name}-switch = %{version}
|
|
|
|
|
Requires: ipsec-tools >= 0.8
|
|
|
|
|
Requires: python
|
|
|
|
|
Requires: python-argparse
|
|
|
|
|
Requires: python-openvswitch = %{version}
|
|
|
|
|
Requires: racoon >= 0.8
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description ipsec
|
|
|
|
|
The ovs-monitor-ipsec script provides support for encrypting GRE
|
|
|
|
|
tunnels with IPsec.
|
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
2013-03-12 14:37:52 +01:00
|
|
|
|
%endif
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
%package switch
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch switch implementations
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
|
Requires(pre): %insserv_prereq
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Requires: modutils
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Requires: openvswitch = %{version}
|
|
|
|
|
Requires: procps
|
|
|
|
|
Requires: python
|
2014-05-20 18:03:31 +02:00
|
|
|
|
# ovs-ctl / ovs-pki use /usr/bin/uuidgen:
|
|
|
|
|
Requires: util-linux
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Suggests: openvswitch-kmp
|
2014-05-20 18:03:31 +02:00
|
|
|
|
Suggests: logrotate
|
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description switch
|
|
|
|
|
openvswitch-switch provides the userspace components and utilities for
|
2013-03-27 13:25:19 +01:00
|
|
|
|
the Open vSwitch kernel-based switch.
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
|
|
|
|
|
|
|
|
|
%package pki
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch public key infrastructure dependency package
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: openvswitch = %{version}
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description pki
|
|
|
|
|
openvswitch-pki provides PKI (public key infrastructure) support for
|
|
|
|
|
Open vSwitch switches and controllers, reducing the risk of
|
|
|
|
|
man-in-the-middle attacks on the Open vSwitch network infrastructure.
|
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%package vtep
|
|
|
|
|
Summary: Open vSwitch VTEP emulator
|
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: openvswitch = %{version}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
# Since openvswitch/scripts/ovs-vtep requires various ovs python modules.
|
|
|
|
|
Requires: python-openvswitch = %{version}
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%description vtep
|
|
|
|
|
A VTEP emulator that uses Open vSwitch for forwarding.
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
|
|
|
|
|
|
|
|
|
%package brcompat
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch bridge compatibility support (deprecated)
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: openvswitch-switch = %{version}
|
|
|
|
|
Recommends: bridge-utils
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description brcompat
|
|
|
|
|
openvswitch-brcompat provides a way for applications that use the
|
|
|
|
|
Linux bridge to gradually migrate to Open vSwitch. Programs that
|
|
|
|
|
ordinarily control the Linux bridge module, such as "brctl", instead
|
2013-03-08 15:12:33 +01:00
|
|
|
|
control the Open vSwitch kernel-based switch. Please note that this
|
|
|
|
|
feature is deprecated and will ve removed soon.
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
Once this package is installed, adding BRCOMPAT=yes in
|
|
|
|
|
/etc/default/openvswitch-switch enables bridge compatibility.
|
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
|
|
|
|
|
|
|
|
|
%package -n python-openvswitch
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Python bindings for Open vSwitch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Python-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: python
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description -n python-openvswitch
|
|
|
|
|
This package contains the full Python bindings for Open vSwitch database.
|
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%package -n python-openvswitch-test
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Python bindings for Open vSwitch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Python-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: python
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-openvswitch-test
|
|
|
|
|
This package contains the full Python bindings for Open vSwitch database.
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with gui}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%package ovsdbmonitor
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch graphical monitoring tool
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
BuildRequires: python-pyside
|
|
|
|
|
BuildRequires: python-qt4-devel
|
2013-03-08 15:12:33 +01:00
|
|
|
|
BuildRequires: python-twisted
|
2013-03-27 13:25:19 +01:00
|
|
|
|
BuildRequires: python-zopeinterface
|
2013-03-08 15:12:33 +01:00
|
|
|
|
Requires: python-openvswitch
|
|
|
|
|
Requires: python-pyasn1
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Requires: python-pyside
|
|
|
|
|
Requires: python-qt4
|
|
|
|
|
Requires: python-twisted
|
|
|
|
|
Requires: python-zopeinterface
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
|
|
|
|
%description ovsdbmonitor
|
2012-03-14 11:03:21 +01:00
|
|
|
|
This package is a GUI tool for monitoring and troubleshooting local
|
|
|
|
|
or remote Open vSwitch installations. It presents GUI tables that
|
|
|
|
|
graphically represent an Open vSwitch kernel flow table (similar to
|
|
|
|
|
"ovs-dpctl dump-flows") and Open vSwitch database contents (similar
|
|
|
|
|
to "ovs-vsctl list <table>").
|
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%endif
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
%package test
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Summary: Open vSwitch test package
|
2014-05-20 18:03:31 +02:00
|
|
|
|
License: Apache-2.0
|
2013-03-27 13:25:19 +01:00
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Requires: python
|
|
|
|
|
Requires: python-argparse
|
|
|
|
|
Requires: python-openvswitch-test = %{version}
|
|
|
|
|
Requires: python-twisted
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%description test
|
|
|
|
|
This package contains utilities that are useful to diagnose
|
|
|
|
|
performance and connectivity issues in Open vSwitch setup.
|
|
|
|
|
|
|
|
|
|
Open vSwitch is a full-featured software-based Ethernet switch.
|
|
|
|
|
|
2010-12-11 17:10:38 +01:00
|
|
|
|
%prep
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%setup -q
|
2014-05-20 18:03:31 +02:00
|
|
|
|
#%patch0
|
2011-01-11 16:04:59 +01:00
|
|
|
|
%patch1 -p1
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%patch2 -p0
|
2013-03-02 13:51:25 +01:00
|
|
|
|
|
2011-05-20 21:19:18 +02:00
|
|
|
|
set -- *
|
|
|
|
|
mkdir source
|
|
|
|
|
mv "$@" source/
|
2010-12-11 17:10:38 +01:00
|
|
|
|
mkdir obj
|
2011-05-20 21:19:18 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2010-12-11 17:10:38 +01:00
|
|
|
|
pushd source
|
2014-05-20 18:03:31 +02:00
|
|
|
|
# only call boot.sh for distros with autoconf >= 2.64
|
|
|
|
|
%if 0%{?suse_version} > 1110
|
2010-12-11 17:10:38 +01:00
|
|
|
|
bash -x boot.sh
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%endif
|
2010-12-11 17:10:38 +01:00
|
|
|
|
popd
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with kmp}
|
|
|
|
|
%if %{with kernel_kmp}
|
2012-05-03 09:51:43 +02:00
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
|
mkdir -p $flavor
|
2014-05-20 18:03:31 +02:00
|
|
|
|
cp -a %{SOURCE10} $flavor/
|
2012-05-03 09:51:43 +02:00
|
|
|
|
krel=$(make -s -C /usr/src/linux-obj/%_target_cpu/$flavor kernelrelease)
|
|
|
|
|
kernel_source_dir=$(readlink /lib/modules/$krel/source)
|
|
|
|
|
cp -a $kernel_source_dir/net/openvswitch/* $flavor/
|
2014-05-20 18:03:31 +02:00
|
|
|
|
make %{?_smp_mflags} -C %{kernel_source $flavor} modules M=$PWD/$flavor
|
2012-05-03 09:51:43 +02:00
|
|
|
|
done
|
|
|
|
|
%else
|
2013-03-27 13:25:19 +01:00
|
|
|
|
export EXTRA_CFLAGS='-DVERSION=\"%{version}\"'
|
2011-05-20 21:19:18 +02:00
|
|
|
|
for flavor in %flavors_to_build; do
|
2010-12-11 17:10:38 +01:00
|
|
|
|
rm -rf obj/$flavor
|
|
|
|
|
cp -r source obj/$flavor
|
2014-05-20 18:03:31 +02:00
|
|
|
|
cp -a %{SOURCE11} obj/$flavor/datapath/linux/Module.supported
|
2010-12-11 17:10:38 +01:00
|
|
|
|
pushd obj/$flavor
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%configure \
|
2014-05-20 18:03:31 +02:00
|
|
|
|
--with-logdir=/var/log/openvswitch \
|
2011-08-08 21:19:28 +02:00
|
|
|
|
--with-linux=/usr/src/linux-obj/%_target_cpu/$flavor \
|
|
|
|
|
--with-linux-source=/usr/src/linux
|
|
|
|
|
cd datapath/linux
|
2014-05-20 18:03:31 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2010-12-11 17:10:38 +01:00
|
|
|
|
popd
|
|
|
|
|
done
|
2011-01-11 16:04:59 +01:00
|
|
|
|
%endif
|
2012-05-03 09:51:43 +02:00
|
|
|
|
%endif
|
2010-12-11 17:10:38 +01:00
|
|
|
|
ls source
|
|
|
|
|
pushd source
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%configure \
|
2014-05-20 18:03:31 +02:00
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--with-logdir=/var/log/openvswitch
|
2010-12-11 17:10:38 +01:00
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with kmp}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
export NO_BRP_STALE_LINK_ERROR=yes
|
2011-05-20 21:19:18 +02:00
|
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
2010-12-11 17:10:38 +01:00
|
|
|
|
export INSTALL_MOD_DIR=updates
|
2014-05-20 18:03:31 +02:00
|
|
|
|
export BRP_PESIGN_FILES="*.ko /lib/firmware"
|
2011-05-20 21:19:18 +02:00
|
|
|
|
for flavor in %flavors_to_build; do
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with kernel_kmp}
|
2012-05-03 09:51:43 +02:00
|
|
|
|
make -C %{kernel_source $flavor} modules_install M=$PWD/$flavor
|
|
|
|
|
%else
|
2011-08-08 21:19:28 +02:00
|
|
|
|
pushd obj/$flavor/datapath/linux
|
2010-12-11 17:10:38 +01:00
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD
|
|
|
|
|
popd
|
2012-05-03 09:51:43 +02:00
|
|
|
|
%endif
|
2010-12-11 17:10:38 +01:00
|
|
|
|
done
|
2011-01-11 16:04:59 +01:00
|
|
|
|
%endif
|
2010-12-11 17:10:38 +01:00
|
|
|
|
pushd source
|
2011-05-20 21:19:18 +02:00
|
|
|
|
|
2013-04-03 15:11:37 +02:00
|
|
|
|
%makeinstall
|
2013-03-27 13:25:19 +01:00
|
|
|
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/init.d
|
|
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
install -m 644 %{SOURCE3} \
|
|
|
|
|
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}-switch
|
|
|
|
|
install -m 755 %{SOURCE2} \
|
|
|
|
|
%{buildroot}/%{_sysconfdir}/init.d/%{name}-switch
|
|
|
|
|
ln -s %{_sysconfdir}/init.d/%{name}-switch %{buildroot}%{_sbindir}/rc%{name}-switch
|
|
|
|
|
install -m 755 %{SOURCE5} \
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{buildroot}/%{_sysconfdir}/init.d/%{name}-vtep
|
|
|
|
|
ln -s %{_sysconfdir}/init.d/%{name}-vtep %{buildroot}%{_sbindir}/rc%{name}-vtep
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
install -D -m 644 %{SOURCE8} \
|
|
|
|
|
%{buildroot}%{_unitdir}/openvswitch.service
|
|
|
|
|
%endif
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/sysconfig
|
|
|
|
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/logrotate.d
|
2013-04-09 16:39:09 +02:00
|
|
|
|
install -d -m 755 %{buildroot}/var/log/openvswitch
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
install -m 644 %{SOURCE4} \
|
|
|
|
|
%{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-switch
|
|
|
|
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/profile.d
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2011-05-20 21:19:18 +02:00
|
|
|
|
install -d -m 755 %{buildroot}/%{_datadir}/%{name}/scripts
|
2010-12-11 17:10:38 +01:00
|
|
|
|
install -m 644 vswitchd/vswitch.ovsschema \
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%{buildroot}/%{_datadir}/%{name}/vswitch.ovsschema
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with ipsec}
|
2013-03-08 15:12:33 +01:00
|
|
|
|
install -m 755 debian/ovs-monitor-ipsec \
|
|
|
|
|
%{buildroot}/%{_datadir}/%{name}/ovs-monitor-ipsec
|
2014-05-20 18:03:31 +02:00
|
|
|
|
install -m 755 %{SOURCE7} \
|
|
|
|
|
%{buildroot}/%{_sysconfdir}/init.d/%{name}-ipsec
|
|
|
|
|
ln -s %{_sysconfdir}/init.d/%{name}-ipsec %{buildroot}%{_sbindir}/rc%{name}-ipsec
|
2013-03-12 14:37:52 +01:00
|
|
|
|
%endif
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2010-12-11 17:10:38 +01:00
|
|
|
|
popd
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
mkdir -p %{buildroot}%{py_sitedir}
|
2012-03-14 11:03:21 +01:00
|
|
|
|
mv %{buildroot}%{_datadir}/%{name}/python/* %{buildroot}%{py_sitedir}
|
|
|
|
|
rmdir %{buildroot}%{_datadir}/%{name}/python
|
|
|
|
|
|
2013-04-09 16:39:09 +02:00
|
|
|
|
%fdupes %{buildroot}%{py_sitedir}
|
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%pre switch
|
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%service_add_pre openvswitch.service
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%post switch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{fillup_only -n openvswitch-switch}
|
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%service_add_post openvswitch.service
|
|
|
|
|
%endif
|
2011-01-11 16:04:59 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%preun switch
|
|
|
|
|
%stop_on_removal openvswitch-switch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%service_del_preun openvswitch.service
|
|
|
|
|
%endif
|
2011-01-11 16:04:59 +01:00
|
|
|
|
|
2013-04-09 16:39:09 +02:00
|
|
|
|
%postun switch
|
|
|
|
|
%restart_on_update openvswitch-switch
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%service_del_postun openvswitch.service
|
|
|
|
|
%endif
|
2013-04-09 16:39:09 +02:00
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%files
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %{_datadir}/openvswitch
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%doc source/AUTHORS source/DESIGN source/INSTALL.* source/NOTICE
|
2012-02-25 13:59:37 +01:00
|
|
|
|
%doc source/REPORTING-BUGS source/PORTING
|
2011-05-20 21:19:18 +02:00
|
|
|
|
%doc source/SubmittingPatches source/CodingStyle source/README
|
|
|
|
|
%doc source/WHY-OVS source/COPYING source/README-gcov
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_bindir}/ovs-appctl
|
|
|
|
|
%{_bindir}/ovs-benchmark
|
|
|
|
|
%{_bindir}/ovs-ofctl
|
|
|
|
|
%{_bindir}/ovsdb-client
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_bindir}/ovs-parse-backtrace
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{_bindir}/ovs-dpctl-top
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_sbindir}/ovs-bugtool
|
|
|
|
|
%{_sbindir}/ovs-vlan-bug-workaround
|
|
|
|
|
%dir %{_datadir}/openvswitch/scripts
|
|
|
|
|
%{_datadir}/openvswitch/bugtool-plugins
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-cfm-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-lacp-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-tc-class-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-ovsdb-dump
|
2012-07-31 21:31:44 +02:00
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-bond-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-coverage-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-daemons-ver
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-vsctl-show
|
2013-03-02 13:51:25 +01:00
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-memory-show
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-ovs-ofctl-dump-flows
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-ovs-ofctl-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-bfd-show
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-bugtool-list-dbs
|
|
|
|
|
%{_libdir}/libofproto-%{version}.so
|
|
|
|
|
%{_libdir}/libopenvswitch-%{version}.so
|
|
|
|
|
%{_libdir}/libovsdb-%{version}.so
|
|
|
|
|
%{_libdir}/libsflow-%{version}.so
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man1/ovs-benchmark.1.gz
|
|
|
|
|
%{_mandir}/man1/ovsdb-client.1.gz
|
|
|
|
|
%{_mandir}/man8/ovs-appctl.8.gz
|
|
|
|
|
%{_mandir}/man8/ovs-bugtool.8.gz
|
|
|
|
|
%{_mandir}/man8/ovs-ofctl.8.gz
|
|
|
|
|
%{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_mandir}/man8/ovs-parse-backtrace.8.gz
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{_mandir}/man8/ovs-dpctl-top.8.gz
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%files pki
|
2012-04-05 18:51:01 +02:00
|
|
|
|
%defattr(-,root,root)
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man8/ovs-pki.8.gz
|
|
|
|
|
%{_bindir}/ovs-pki
|
2011-05-20 21:19:18 +02:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%files -n python-openvswitch
|
|
|
|
|
%defattr(-,root,root)
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%{py_sitedir}/ovs/
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%files -n python-openvswitch-test
|
|
|
|
|
%defattr(-,root,root)
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%{py_sitedir}/ovstest/
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%files vtep
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/vtep-ctl
|
|
|
|
|
%{_sysconfdir}/init.d/openvswitch-vtep
|
|
|
|
|
%{_sbindir}/rc%{name}-vtep
|
|
|
|
|
%{_mandir}/man5/vtep.5.gz
|
|
|
|
|
%{_mandir}/man8/vtep-ctl.8.gz
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-vtep
|
|
|
|
|
%{_datadir}/openvswitch/vtep.ovsschema
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with ipsec}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%files ipsec
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_datadir}/openvswitch/ovs-monitor-ipsec
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%{_sysconfdir}/init.d/openvswitch-ipsec
|
|
|
|
|
%{_sbindir}/rc%{name}-ipsec
|
2013-03-12 14:37:52 +01:00
|
|
|
|
%endif
|
2013-03-08 15:12:33 +01:00
|
|
|
|
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%files switch
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/ovs-dpctl
|
|
|
|
|
%{_bindir}/ovs-tcpundump
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_bindir}/ovs-pcap
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_bindir}/ovs-vsctl
|
|
|
|
|
%{_bindir}/ovsdb-tool
|
|
|
|
|
%{_sbindir}/ovs-vswitchd
|
|
|
|
|
%{_sbindir}/ovsdb-server
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-ctl
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-lib
|
|
|
|
|
%{_datadir}/openvswitch/scripts/ovs-save
|
|
|
|
|
%{_datadir}/openvswitch/vswitch.ovsschema
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.openvswitch-switch
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_sysconfdir}/init.d/openvswitch-switch
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_sbindir}/rc%{name}-switch
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man8/ovs-dpctl.8.gz
|
|
|
|
|
%{_mandir}/man1/ovs-tcpundump.1.gz
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_mandir}/man1/ovs-pcap.1.gz
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man8/ovs-vsctl.8.gz
|
|
|
|
|
%{_mandir}/man1/ovsdb-tool.1.gz
|
|
|
|
|
%{_mandir}/man8/ovs-vswitchd.8.gz
|
|
|
|
|
%{_mandir}/man1/ovsdb-server.1.gz
|
|
|
|
|
%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
|
|
|
|
|
%{_mandir}/man8/ovs-ctl.8.gz
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
|
%{_unitdir}/openvswitch.service
|
|
|
|
|
%endif
|
2013-04-09 16:39:09 +02:00
|
|
|
|
%dir /var/log/openvswitch
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
|
|
|
|
%files test
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/ovs-test
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_bindir}/ovs-l3ping
|
|
|
|
|
%{_bindir}/ovs-vlan-test
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man8/ovs-test.8.gz
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%{_mandir}/man8/ovs-l3ping.8.gz
|
|
|
|
|
%{_mandir}/man8/ovs-vlan-test.8.gz
|
2012-03-14 11:03:21 +01:00
|
|
|
|
|
2014-05-20 18:03:31 +02:00
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libofproto.so
|
|
|
|
|
%{_libdir}/libofproto.la
|
|
|
|
|
%{_libdir}/libopenvswitch.so
|
|
|
|
|
%{_libdir}/libopenvswitch.la
|
|
|
|
|
%{_libdir}/libovsdb.so
|
|
|
|
|
%{_libdir}/libovsdb.la
|
|
|
|
|
%{_libdir}/libsflow.so
|
|
|
|
|
%{_libdir}/libsflow.la
|
|
|
|
|
|
2013-03-27 13:25:19 +01:00
|
|
|
|
%if %{with gui}
|
2014-05-20 18:03:31 +02:00
|
|
|
|
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%files ovsdbmonitor
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/ovsdbmonitor
|
2012-07-31 21:31:44 +02:00
|
|
|
|
%dir %{_datadir}/ovsdbmonitor
|
|
|
|
|
%{_datadir}/applications/ovsdbmonitor.desktop
|
|
|
|
|
%{_datadir}/ovsdbmonitor/*
|
2012-03-14 11:03:21 +01:00
|
|
|
|
%{_mandir}/man1/ovsdbmonitor.1.gz
|
2013-03-08 15:12:33 +01:00
|
|
|
|
%endif
|
2011-05-20 21:19:18 +02:00
|
|
|
|
|
2010-12-11 17:10:38 +01:00
|
|
|
|
%changelog
|