Open vSwitch CI c38253
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
Open vSwitch CI c38253
#
Open vSwitch CI c38253
# Copying and distribution of this file, with or without modification,
Open vSwitch CI c38253
# are permitted in any medium without royalty provided the copyright
Open vSwitch CI c38253
# notice and this notice are preserved.  This file is offered as-is,
Open vSwitch CI c38253
# without warranty of any kind.
Open vSwitch CI c38253
#
Open vSwitch CI c38253
# If tests have to be skipped while building, specify the '--without check'
Open vSwitch CI c38253
# option. For example:
Open vSwitch CI c38253
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
Open vSwitch CI c38253
Open vSwitch CI c38253
# This defines the base package name's version.
Open vSwitch CI c38253
Open vSwitch CI c38253
%define pkgname openvswitch3.4
Open vSwitch CI c38253
Open vSwitch CI c38253
%global commit a2d11f1be790367d5ec3b2264e8a0ea1f011dce8
Open vSwitch CI c38253
%if 0%{?commit:1}
Open vSwitch CI c38253
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
# Enable PIE, bz#955181
Open vSwitch CI c38253
%global _hardened_build 1
Open vSwitch CI c38253
Open vSwitch CI c38253
# RHEL-7 doesn't define _rundir macro yet
Open vSwitch CI c38253
# Fedora 15 onwards uses /run as _rundir
Open vSwitch CI c38253
%if 0%{!?_rundir:1}
Open vSwitch CI c38253
%define _rundir /run
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
# FIXME Test "STP - flush the fdb and mdb when topology changed" fails on s390x
Open vSwitch CI c38253
# FIXME 2 tests fails on ppc64le. They will be hopefully fixed before official 2.11
Open vSwitch CI c38253
%ifarch %{ix86} x86_64 aarch64
Open vSwitch CI c38253
%bcond_without check
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%bcond_with check
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
# option to run kernel datapath tests, requires building as root!
Open vSwitch CI c38253
%bcond_with check_datapath_kernel
Open vSwitch CI c38253
# option to build with libcap-ng, needed for running OVS as regular user
Open vSwitch CI c38253
%bcond_without libcapng
Open vSwitch CI c38253
# option to build with ipsec support
Open vSwitch CI c38253
%bcond_without ipsec
Open vSwitch CI c38253
Open vSwitch CI c38253
# Build python2 (that provides python) and python3 subpackages on Fedora
Open vSwitch CI c38253
# Build only python3 (that provides python) subpackage on RHEL8
Open vSwitch CI c38253
# Build only python subpackage on RHEL7
Open vSwitch CI c38253
%if 0%{?rhel} > 7 || 0%{?fedora}
Open vSwitch CI c38253
# On RHEL8 Sphinx is included in buildroot
Open vSwitch CI c38253
%global external_sphinx 1
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
Open vSwitch CI c38253
%global external_sphinx 0
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
Name: %{pkgname}
Open vSwitch CI c38253
Summary: Open vSwitch
Open vSwitch CI c38253
Group: System Environment/Daemons daemon/database/utilities
Open vSwitch CI c38253
URL: http://www.openvswitch.org/
Open vSwitch CI c38253
Version: 3.4.0
Open vSwitch CI a00584
Release: 0.7%{?dist}
Open vSwitch CI c38253
Open vSwitch CI c38253
# Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
Open vSwitch CI c38253
# lib/sflow*.[ch] files are SISSL
Open vSwitch CI c38253
# datapath/ is GPLv2 (although not built into any of the binary packages)
Open vSwitch CI c38253
License: ASL 2.0 and LGPLv2+ and SISSL
Open vSwitch CI c38253
Open vSwitch CI c38253
%define dpdkver 23.11
Open vSwitch CI c38253
%define dpdkdir dpdk
Open vSwitch CI c38253
%define dpdksver %(echo %{dpdkver} | cut -d. -f-2)
Open vSwitch CI c38253
# NOTE: DPDK does not currently build for s390x
Open vSwitch CI c38253
# DPDK on aarch64 is not stable enough to be enabled in FDP
Open vSwitch CI c38253
%if 0%{?rhel} > 7 || 0%{?fedora}
Open vSwitch CI c38253
%define dpdkarches x86_64 ppc64le
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%define dpdkarches
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?commit:1}
Open vSwitch CI c38253
Source: https://github.com/openvswitch/ovs/archive/%{commit}.tar.gz#/openvswitch-%{commit}.tar.gz
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
Source: https://github.com/openvswitch/ovs/archive/v%{version}.tar.gz#/openvswitch-%{version}.tar.gz
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Source2: openvswitch.sysusers
Open vSwitch CI c38253
Source3: openvswitch-hugetlbfs.sysusers
Open vSwitch CI c38253
Source10: https://fast.dpdk.org/rel/dpdk-%{dpdkver}.tar.xz
Open vSwitch CI c38253
Open vSwitch CI c38253
%define docutilsver 0.12
Open vSwitch CI c38253
%define pygmentsver 1.4
Open vSwitch CI c38253
%define sphinxver   1.2.3
Open vSwitch CI c38253
%define pyelftoolsver 0.27
Open vSwitch CI c38253
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
Open vSwitch CI c38253
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
Open vSwitch CI c38253
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
Open vSwitch CI c38253
Source103: https://pypi.io/packages/source/p/pyelftools/pyelftools-%{pyelftoolsver}.tar.gz
Open vSwitch CI c38253
Open vSwitch CI c38253
%define apply_patch %(test -s %{_sourcedir}/openvswitch-%{version}.patch && echo 1 || echo 0)
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{apply_patch}
Open vSwitch CI c38253
Patch0:    openvswitch-%{version}.patch
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
# The DPDK is designed to optimize througput of network traffic using, among
Open vSwitch CI c38253
# other techniques, carefully crafted assembly instructions.  As such it
Open vSwitch CI c38253
# needs extensive work to port it to other architectures.
Open vSwitch CI c38253
ExclusiveArch: x86_64 aarch64 ppc64le s390x
Open vSwitch CI c38253
Open vSwitch CI c38253
# Do not enable this otherwise YUM will break on any upgrade.
Open vSwitch CI c38253
# Provides: openvswitch
Open vSwitch CI c38253
Conflicts: openvswitch < 3.4
Open vSwitch CI c38253
Conflicts: openvswitch-dpdk < 3.4
Open vSwitch CI c38253
Conflicts: openvswitch2.10
Open vSwitch CI c38253
Conflicts: openvswitch2.11
Open vSwitch CI c38253
Conflicts: openvswitch2.12
Open vSwitch CI c38253
Conflicts: openvswitch2.13
Open vSwitch CI c38253
Conflicts: openvswitch2.14
Open vSwitch CI c38253
Conflicts: openvswitch2.15
Open vSwitch CI c38253
Conflicts: openvswitch2.16
Open vSwitch CI c38253
Conflicts: openvswitch2.17
Open vSwitch CI c38253
Conflicts: openvswitch3.0
Open vSwitch CI c38253
Conflicts: openvswitch3.1
Open vSwitch CI c38253
Conflicts: openvswitch3.2
Open vSwitch CI c38253
Conflicts: openvswitch3.3
Open vSwitch CI c38253
Open vSwitch CI c38253
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
Open vSwitch CI c38253
# in the -optional repository and so we can't require it directly since RHV
Open vSwitch CI c38253
# doesn't have the -optional repository enabled and so TPS fails
Open vSwitch CI c38253
%if %{external_sphinx}
Open vSwitch CI c38253
BuildRequires: python3-sphinx
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
# Sphinx dependencies
Open vSwitch CI c38253
BuildRequires: python-devel
Open vSwitch CI c38253
BuildRequires: python-setuptools
Open vSwitch CI c38253
#BuildRequires: python2-docutils
Open vSwitch CI c38253
BuildRequires: python-jinja2
Open vSwitch CI c38253
BuildRequires: python-nose
Open vSwitch CI c38253
#BuildRequires: python2-pygments
Open vSwitch CI c38253
# docutils dependencies
Open vSwitch CI c38253
BuildRequires: python-imaging
Open vSwitch CI c38253
# pygments dependencies
Open vSwitch CI c38253
BuildRequires: python-nose
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
BuildRequires: gcc gcc-c++ make
Open vSwitch CI c38253
BuildRequires: autoconf automake libtool
Open vSwitch CI c38253
BuildRequires: systemd-units systemd-rpm-macros openssl openssl-devel
Open vSwitch CI c38253
BuildRequires: python3-devel python3-setuptools
Open vSwitch CI c38253
BuildRequires: desktop-file-utils
Open vSwitch CI c38253
BuildRequires: groff-base graphviz
Open vSwitch CI c38253
BuildRequires: unbound-devel
Open vSwitch CI c38253
BuildRequires: systemtap-sdt-devel
Open vSwitch CI c38253
# make check dependencies
Open vSwitch CI c38253
BuildRequires: procps-ng
Open vSwitch CI c38253
%if %{with check_datapath_kernel}
Open vSwitch CI c38253
BuildRequires: nmap-ncat
Open vSwitch CI c38253
# would be useful but not available in RHEL or EPEL
Open vSwitch CI c38253
#BuildRequires: pyftpdlib
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{with libcapng}
Open vSwitch CI c38253
BuildRequires: libcap-ng libcap-ng-devel
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
BuildRequires: meson
Open vSwitch CI c38253
%if 0%{?rhel} > 8 || 0%{?fedora}
Open vSwitch CI c38253
BuildRequires: python3-pyelftools
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
# DPDK driver dependencies
Open vSwitch CI c38253
BuildRequires: zlib-devel numactl-devel libarchive-devel
Open vSwitch CI c38253
# libarchive static dependencies
Open vSwitch CI c38253
BuildRequires: bzip2-devel libacl-devel libxml2-devel libzstd-devel lz4-devel xz-devel
Open vSwitch CI c38253
%ifarch x86_64
Open vSwitch CI c38253
BuildRequires: rdma-core-devel >= 15 libmnl-devel
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
# Required by packaging policy for the bundled DPDK
Open vSwitch CI c38253
Provides: bundled(dpdk) = %{dpdkver}
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
Requires: openssl iproute module-init-tools
Open vSwitch CI c38253
#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
Open vSwitch CI c38253
#Requires: kernel >= 3.15.0-0
Open vSwitch CI c38253
Requires: openvswitch-selinux-extra-policy
Open vSwitch CI c38253
Open vSwitch CI c38253
%{?sysusers_requires_compat}
Open vSwitch CI c38253
Requires(post): /bin/sed
Open vSwitch CI c38253
Requires(post): systemd-units
Open vSwitch CI c38253
Requires(preun): systemd-units
Open vSwitch CI c38253
Requires(postun): systemd-units
Open vSwitch CI c38253
Obsoletes: openvswitch-controller <= 0:2.1.0-1
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?rhel}
Open vSwitch CI c38253
# sortedcontainers are not packaged on RHEL yet, but ovs includes it
Open vSwitch CI c38253
%global __requires_exclude ^python%{python3_version}dist\\(sortedcontainers\\)$
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%description
Open vSwitch CI c38253
Open vSwitch provides standard network bridging functions and
Open vSwitch CI c38253
support for the OpenFlow protocol for remote per-flow control of
Open vSwitch CI c38253
traffic.
Open vSwitch CI c38253
Open vSwitch CI c38253
%package -n python3-%{pkgname}
Open vSwitch CI c38253
Summary: Open vSwitch python3 bindings
Open vSwitch CI c38253
License: ASL 2.0
Open vSwitch CI c38253
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
Open vSwitch CI c38253
Provides: python-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
Open vSwitch CI c38253
Open vSwitch CI c38253
%description -n python3-%{pkgname}
Open vSwitch CI c38253
Python bindings for the Open vSwitch database
Open vSwitch CI c38253
Open vSwitch CI c38253
%package test
Open vSwitch CI c38253
Summary: Open vSwitch testing utilities
Open vSwitch CI c38253
License: ASL 2.0
Open vSwitch CI c38253
BuildArch: noarch
Open vSwitch CI c38253
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
Open vSwitch CI c38253
Requires: tcpdump
Open vSwitch CI c38253
Open vSwitch CI c38253
%description test
Open vSwitch CI c38253
Utilities that are useful to diagnose performance and connectivity
Open vSwitch CI c38253
issues in Open vSwitch setup.
Open vSwitch CI c38253
Open vSwitch CI c38253
%package devel
Open vSwitch CI c38253
Summary: Open vSwitch OpenFlow development package (library, headers)
Open vSwitch CI c38253
License: ASL 2.0
Open vSwitch CI c38253
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
Open vSwitch CI c38253
Open vSwitch CI c38253
%description devel
Open vSwitch CI c38253
This provides shared library, libopenswitch.so and the openvswitch header
Open vSwitch CI c38253
files needed to build an external application.
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
Open vSwitch CI c38253
%package -n network-scripts-%{name}
Open vSwitch CI c38253
Summary: Open vSwitch legacy network service support
Open vSwitch CI c38253
License: ASL 2.0
Open vSwitch CI c38253
Requires: network-scripts
Open vSwitch CI c38253
Supplements: (%{name} and network-scripts)
Open vSwitch CI c38253
Open vSwitch CI c38253
%description -n network-scripts-%{name}
Open vSwitch CI c38253
This provides the ifup and ifdown scripts for use with the legacy network
Open vSwitch CI c38253
service.
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{with ipsec}
Open vSwitch CI c38253
%package ipsec
Open vSwitch CI c38253
Summary: Open vSwitch IPsec tunneling support
Open vSwitch CI c38253
License: ASL 2.0
Open vSwitch CI c38253
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
Open vSwitch CI c38253
Requires: libreswan
Open vSwitch CI c38253
Open vSwitch CI c38253
%description ipsec
Open vSwitch CI c38253
This package provides IPsec tunneling support for OVS tunnels.
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%prep
Open vSwitch CI c38253
%if 0%{?commit:1}
Open vSwitch CI c38253
%setup -q -n ovs-%{commit} -a 10
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%setup -q -n ovs-%{version} -a 10
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%if ! %{external_sphinx}
Open vSwitch CI c38253
%if 0%{?commit:1}
Open vSwitch CI c38253
%setup -n ovs-%{commit} -q -D -T -a 100 -a 101 -a 102
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%setup -n ovs-%{version} -q -D -T -a 100 -a 101 -a 102
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%if 0%{?rhel} && 0%{?rhel} < 9
Open vSwitch CI c38253
%if 0%{?commit:1}
Open vSwitch CI c38253
%setup -n ovs-%{commit} -q -D -T -a 103
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%setup -n ovs-%{version} -q -D -T -a 103
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
mv dpdk-*/ %{dpdkdir}/
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{apply_patch}
Open vSwitch CI c38253
%patch0 -p1
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%build
Open vSwitch CI c38253
%if 0%{?rhel} && 0%{?rhel} < 9
Open vSwitch CI c38253
export PYTHONPATH="${PWD}/pyelftools-%{pyelftoolsver}"
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
# Build Sphinx on RHEL
Open vSwitch CI c38253
%if ! %{external_sphinx}
Open vSwitch CI c38253
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}%{_builddir}/pytmp/lib/python"
Open vSwitch CI c38253
for x in docutils-%{docutilsver} Pygments-%{pygmentsver} Sphinx-%{sphinxver}; do
Open vSwitch CI c38253
    pushd "$x"
Open vSwitch CI c38253
    python2 setup.py install --home %{_builddir}/pytmp
Open vSwitch CI c38253
    popd
Open vSwitch CI c38253
done
Open vSwitch CI c38253
Open vSwitch CI c38253
export PATH="$PATH:%{_builddir}/pytmp/bin"
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
./boot.sh
Open vSwitch CI c38253
Open vSwitch CI c38253
%ifarch %{dpdkarches}    # build dpdk
Open vSwitch CI c38253
# Lets build DPDK first
Open vSwitch CI c38253
cd %{dpdkdir}
Open vSwitch CI c38253
Open vSwitch CI c38253
ENABLED_DRIVERS=(
Open vSwitch CI c38253
    bus/pci
Open vSwitch CI c38253
    bus/vdev
Open vSwitch CI c38253
    mempool/ring
Open vSwitch CI c38253
    net/failsafe
Open vSwitch CI c38253
    net/i40e
Open vSwitch CI c38253
    net/ring
Open vSwitch CI c38253
    net/vhost
Open vSwitch CI c38253
    net/virtio
Open vSwitch CI c38253
    net/tap
Open vSwitch CI c38253
)
Open vSwitch CI c38253
Open vSwitch CI c38253
%ifarch x86_64
Open vSwitch CI c38253
ENABLED_DRIVERS+=(
Open vSwitch CI c38253
    baseband/acc
Open vSwitch CI c38253
    bus/auxiliary
Open vSwitch CI c38253
    bus/vmbus
Open vSwitch CI c38253
    common/iavf
Open vSwitch CI c38253
    common/mlx5
Open vSwitch CI c38253
    common/nfp
Open vSwitch CI c38253
    net/bnxt
Open vSwitch CI c38253
    net/enic
Open vSwitch CI c38253
    net/iavf
Open vSwitch CI c38253
    net/ice
Open vSwitch CI c38253
    net/mlx5
Open vSwitch CI c38253
    net/netvsc
Open vSwitch CI c38253
    net/nfp
Open vSwitch CI c38253
    net/qede
Open vSwitch CI c38253
    net/vdev_netvsc
Open vSwitch CI c38253
)
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%ifarch aarch64 x86_64
Open vSwitch CI c38253
ENABLED_DRIVERS+=(
Open vSwitch CI c38253
    net/e1000
Open vSwitch CI c38253
    net/ixgbe
Open vSwitch CI c38253
)
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
for driver in "${ENABLED_DRIVERS[@]}"; do
Open vSwitch CI c38253
    enable_drivers="${enable_drivers:+$enable_drivers,}"$driver
Open vSwitch CI c38253
done
Open vSwitch CI c38253
Open vSwitch CI c38253
# If doing any updates, this must be aligned with:
Open vSwitch CI c38253
# https://access.redhat.com/articles/3538141
Open vSwitch CI c38253
ENABLED_LIBS=(
Open vSwitch CI c38253
    bbdev
Open vSwitch CI c38253
    bitratestats
Open vSwitch CI c38253
    bpf
Open vSwitch CI c38253
    cmdline
Open vSwitch CI c38253
    cryptodev
Open vSwitch CI c38253
    dmadev
Open vSwitch CI c38253
    gro
Open vSwitch CI c38253
    gso
Open vSwitch CI c38253
    hash
Open vSwitch CI c38253
    ip_frag
Open vSwitch CI c38253
    latencystats
Open vSwitch CI c38253
    member
Open vSwitch CI c38253
    meter
Open vSwitch CI c38253
    metrics
Open vSwitch CI c38253
    pcapng
Open vSwitch CI c38253
    pdump
Open vSwitch CI c38253
    security
Open vSwitch CI c38253
    stack
Open vSwitch CI c38253
    vhost
Open vSwitch CI c38253
)
Open vSwitch CI c38253
Open vSwitch CI c38253
for lib in "${ENABLED_LIBS[@]}"; do
Open vSwitch CI c38253
    enable_libs="${enable_libs:+$enable_libs,}"$lib
Open vSwitch CI c38253
done
Open vSwitch CI c38253
Open vSwitch CI c38253
%set_build_flags
Open vSwitch CI c38253
%__meson --prefix=%{_builddir}/dpdk-build \
Open vSwitch CI c38253
         --buildtype=plain \
Open vSwitch CI c38253
         -Denable_libs="$enable_libs" \
Open vSwitch CI c38253
         -Ddisable_apps="*" \
Open vSwitch CI c38253
         -Denable_drivers="$enable_drivers" \
Open vSwitch CI c38253
         -Dplatform=generic \
Open vSwitch CI c38253
         -Dmax_ethports=1024 \
Open vSwitch CI c38253
         -Dmax_numa_nodes=8 \
Open vSwitch CI c38253
         -Dtests=false \
Open vSwitch CI c38253
         %{_vpath_builddir}
Open vSwitch CI c38253
%meson_build
Open vSwitch CI c38253
%__meson install -C %{_vpath_builddir} --no-rebuild
Open vSwitch CI c38253
Open vSwitch CI c38253
# FIXME currently with LTO enabled OVS tries to link with both static and shared libraries
Open vSwitch CI c38253
rm -v %{_builddir}/dpdk-build/%{_lib}/*.so*
Open vSwitch CI c38253
Open vSwitch CI c38253
# Generate a list of supported drivers, its hard to tell otherwise.
Open vSwitch CI c38253
cat << EOF > README.DPDK-PMDS
Open vSwitch CI c38253
DPDK drivers included in this package:
Open vSwitch CI c38253
Open vSwitch CI c38253
EOF
Open vSwitch CI c38253
Open vSwitch CI c38253
for f in %{_builddir}/dpdk-build/%{_lib}/librte_net_*.a; do
Open vSwitch CI c38253
    basename ${f} | cut -c12- | cut -d. -f1 | tr [:lower:] [:upper:]
Open vSwitch CI c38253
done >> README.DPDK-PMDS
Open vSwitch CI c38253
Open vSwitch CI c38253
cat << EOF >> README.DPDK-PMDS
Open vSwitch CI c38253
Open vSwitch CI c38253
For further information about the drivers, see
Open vSwitch CI c38253
http://dpdk.org/doc/guides-%{dpdksver}/nics/index.html
Open vSwitch CI c38253
EOF
Open vSwitch CI c38253
Open vSwitch CI c38253
cd -
Open vSwitch CI c38253
%endif    # build dpdk
Open vSwitch CI c38253
Open vSwitch CI c38253
# And now for OVS...
Open vSwitch CI c38253
mkdir build-shared build-static
Open vSwitch CI c38253
pushd build-shared
Open vSwitch CI c38253
ln -s ../configure
Open vSwitch CI c38253
%configure \
Open vSwitch CI c38253
%if %{with libcapng}
Open vSwitch CI c38253
        --enable-libcapng \
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
        --disable-libcapng \
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
        --disable-static \
Open vSwitch CI c38253
        --enable-shared \
Open vSwitch CI c38253
        --enable-ssl \
Open vSwitch CI c38253
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
Open vSwitch CI c38253
        --enable-usdt-probes \
Open vSwitch CI c38253
        --disable-afxdp \
Open vSwitch CI c38253
        --with-version-suffix=-%{release}
Open vSwitch CI c38253
make %{?_smp_mflags}
Open vSwitch CI c38253
popd
Open vSwitch CI c38253
pushd build-static
Open vSwitch CI c38253
ln -s ../configure
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
PKG_CONFIG_PATH=%{_builddir}/dpdk-build/%{_lib}/pkgconfig \
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%configure \
Open vSwitch CI c38253
%if %{with libcapng}
Open vSwitch CI c38253
        --enable-libcapng \
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
        --disable-libcapng \
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
        --enable-ssl \
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
        --with-dpdk=static \
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
Open vSwitch CI c38253
        --enable-usdt-probes \
Open vSwitch CI c38253
        --disable-afxdp \
Open vSwitch CI c38253
        --with-version-suffix=-%{release}
Open vSwitch CI c38253
make %{?_smp_mflags}
Open vSwitch CI c38253
popd
Open vSwitch CI c38253
Open vSwitch CI c38253
/usr/bin/python3 build-aux/dpdkstrip.py \
Open vSwitch CI c38253
        --dpdk \
Open vSwitch CI c38253
        < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
Open vSwitch CI c38253
        > rhel/usr_lib_systemd_system_ovs-vswitchd.service
Open vSwitch CI c38253
Open vSwitch CI c38253
%install
Open vSwitch CI c38253
rm -rf $RPM_BUILD_ROOT
Open vSwitch CI c38253
make -C build-shared install sbin_PROGRAMS=ovsdb/ovsdb-server DESTDIR=$RPM_BUILD_ROOT
Open vSwitch CI c38253
make -C build-static install bin_PROGRAMS= sbin_PROGRAMS=vswitchd/ovs-vswitchd DESTDIR=$RPM_BUILD_ROOT
Open vSwitch CI c38253
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
Open vSwitch CI c38253
install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch.conf
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch-hugetlbfs.conf
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT%{_udevrulesdir}/91-vfio.rules
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0644 \
Open vSwitch CI c38253
        rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
for service in openvswitch ovsdb-server ovs-vswitchd \
Open vSwitch CI c38253
               ovs-delete-transient-ports; do
Open vSwitch CI c38253
        install -p -D -m 0644 \
Open vSwitch CI c38253
                        rhel/usr_lib_systemd_system_${service}.service \
Open vSwitch CI c38253
                        $RPM_BUILD_ROOT%{_unitdir}/${service}.service
Open vSwitch CI c38253
done
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{with ipsec}
Open vSwitch CI c38253
install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-ipsec.service \
Open vSwitch CI c38253
                      $RPM_BUILD_ROOT%{_unitdir}/openvswitch-ipsec.service
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
install -m 0755 rhel/etc_init.d_openvswitch \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
install -m 0644 vswitchd/vswitch.ovsschema \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?rhel} < 9
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
Open vSwitch CI c38253
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
Open vSwitch CI c38253
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
Open vSwitch CI c38253
cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovstest \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT%{python3_sitelib}
Open vSwitch CI c38253
Open vSwitch CI c38253
# Build the JSON C extension for the Python lib (#1417738)
Open vSwitch CI c38253
pushd python
Open vSwitch CI c38253
(
Open vSwitch CI c38253
export CPPFLAGS="-I ../include -I ../build-shared/include"
Open vSwitch CI c38253
export LDFLAGS="%{__global_ldflags} -L $RPM_BUILD_ROOT%{_libdir}"
Open vSwitch CI c38253
%py3_build
Open vSwitch CI c38253
%py3_install
Open vSwitch CI c38253
[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json$(python3-config --extension-suffix)" ]
Open vSwitch CI c38253
)
Open vSwitch CI c38253
popd
Open vSwitch CI c38253
Open vSwitch CI c38253
rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
Open vSwitch CI c38253
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
Open vSwitch CI c38253
Open vSwitch CI c38253
install -p -D -m 0755 \
Open vSwitch CI c38253
        rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
Open vSwitch CI c38253
Open vSwitch CI c38253
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
Open vSwitch CI c38253
# The db needs special permission as IPsec Pre-shared keys are stored in it.
Open vSwitch CI c38253
chmod 0640 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
Open vSwitch CI c38253
Open vSwitch CI c38253
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
Open vSwitch CI c38253
Open vSwitch CI c38253
# remove unpackaged files
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovs-benchmark \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_bindir}/ovs-docker \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_bindir}/ovs-parse-backtrace \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_bindir}/ovs-testcontroller \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_sbindir}/ovs-vlan-bug-workaround \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_mandir}/man1/ovs-benchmark.1* \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-testcontroller.* \
Open vSwitch CI c38253
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-vlan-bug-workaround.8*
Open vSwitch CI c38253
Open vSwitch CI c38253
%if ! %{with ipsec}
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT/%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
# remove ovn unpackages files
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_bindir}/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovn*
Open vSwitch CI c38253
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
Open vSwitch CI c38253
Open vSwitch CI c38253
%check
Open vSwitch CI c38253
%if %{with check}
Open vSwitch CI c38253
    pushd build-static
Open vSwitch CI c38253
    touch resolv.conf
Open vSwitch CI c38253
    export OVS_RESOLV_CONF=$(pwd)/resolv.conf
Open vSwitch CI c38253
    if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
Open vSwitch CI c38253
       make check TESTSUITEFLAGS='--recheck'; then :;
Open vSwitch CI c38253
    else
Open vSwitch CI c38253
        cat tests/testsuite.log
Open vSwitch CI c38253
        exit 1
Open vSwitch CI c38253
    fi
Open vSwitch CI c38253
    popd
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%if %{with check_datapath_kernel}
Open vSwitch CI c38253
    pushd build-static
Open vSwitch CI c38253
    if make check-kernel RECHECK=yes; then :;
Open vSwitch CI c38253
    else
Open vSwitch CI c38253
        cat tests/system-kmod-testsuite.log
Open vSwitch CI c38253
        exit 1
Open vSwitch CI c38253
    fi
Open vSwitch CI c38253
    popd
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%clean
Open vSwitch CI c38253
rm -rf $RPM_BUILD_ROOT
Open vSwitch CI c38253
Open vSwitch CI c38253
%preun
Open vSwitch CI c38253
%if 0%{?systemd_preun:1}
Open vSwitch CI c38253
    %systemd_preun openvswitch.service
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
    if [ $1 -eq 0 ] ; then
Open vSwitch CI c38253
    # Package removal, not upgrade
Open vSwitch CI c38253
        /bin/systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
Open vSwitch CI c38253
        /bin/systemctl stop openvswitch.service >/dev/null 2>&1 || :
Open vSwitch CI c38253
    fi
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%pre
Open vSwitch CI c38253
%sysusers_create_compat %{SOURCE2}
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
%sysusers_create_compat %{SOURCE3}
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%post
Open vSwitch CI c38253
if [ $1 -eq 1 ]; then
Open vSwitch CI c38253
    sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
    sed -i \
Open vSwitch CI c38253
        's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
Open vSwitch CI c38253
        /etc/sysconfig/openvswitch
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
fi
Open vSwitch CI c38253
chown -R openvswitch:openvswitch /etc/openvswitch
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?systemd_post:1}
Open vSwitch CI c38253
    %systemd_post openvswitch.service
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
    # Package install, not upgrade
Open vSwitch CI c38253
    if [ $1 -eq 1 ]; then
Open vSwitch CI c38253
        /bin/systemctl daemon-reload >dev/null || :
Open vSwitch CI c38253
    fi
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%postun
Open vSwitch CI c38253
%if 0%{?systemd_postun:1}
Open vSwitch CI c38253
    %systemd_postun openvswitch.service
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%triggerun -- openvswitch < 2.5.0-22.git20160727%{?dist}
Open vSwitch CI c38253
# old rpm versions restart the service in postun, but
Open vSwitch CI c38253
# due to systemd some preparation is needed.
Open vSwitch CI c38253
if systemctl is-active openvswitch >/dev/null 2>&1 ; then
Open vSwitch CI c38253
    /usr/share/openvswitch/scripts/ovs-ctl stop >/dev/null 2>&1 || :
Open vSwitch CI c38253
    systemctl daemon-reload >/dev/null 2>&1 || :
Open vSwitch CI c38253
    systemctl stop openvswitch ovsdb-server ovs-vswitchd >/dev/null 2>&1 || :
Open vSwitch CI c38253
    systemctl start openvswitch >/dev/null 2>&1 || :
Open vSwitch CI c38253
fi
Open vSwitch CI c38253
exit 0
Open vSwitch CI c38253
Open vSwitch CI c38253
%files -n python3-%{pkgname}
Open vSwitch CI c38253
%{python3_sitearch}/ovs
Open vSwitch CI c38253
%{python3_sitearch}/ovs-*.egg-info
Open vSwitch CI c38253
%doc LICENSE
Open vSwitch CI c38253
Open vSwitch CI c38253
%files test
Open vSwitch CI c38253
%{_bindir}/ovs-pcap
Open vSwitch CI c38253
%{_bindir}/ovs-tcpdump
Open vSwitch CI c38253
%{_bindir}/ovs-tcpundump
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/usdt/*
Open vSwitch CI c38253
%{_mandir}/man1/ovs-pcap.1*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-tcpdump.8*
Open vSwitch CI c38253
%{_mandir}/man1/ovs-tcpundump.1*
Open vSwitch CI c38253
%{_bindir}/ovs-test
Open vSwitch CI c38253
%{_bindir}/ovs-vlan-test
Open vSwitch CI c38253
%{_bindir}/ovs-l3ping
Open vSwitch CI c38253
%{_mandir}/man8/ovs-test.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-vlan-test.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-l3ping.8*
Open vSwitch CI c38253
%{python3_sitelib}/ovstest
Open vSwitch CI c38253
Open vSwitch CI c38253
%files devel
Open vSwitch CI c38253
%{_libdir}/*.so
Open vSwitch CI c38253
%{_libdir}/pkgconfig/*.pc
Open vSwitch CI c38253
%{_includedir}/openvswitch/*
Open vSwitch CI c38253
%{_includedir}/openflow/*
Open vSwitch CI c38253
%exclude %{_libdir}/*.a
Open vSwitch CI c38253
%exclude %{_libdir}/*.la
Open vSwitch CI c38253
Open vSwitch CI c38253
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
Open vSwitch CI c38253
%files -n network-scripts-%{name}
Open vSwitch CI c38253
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
Open vSwitch CI c38253
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%files
Open vSwitch CI c38253
%defattr(-,openvswitch,openvswitch)
Open vSwitch CI c38253
%dir %{_sysconfdir}/openvswitch
Open vSwitch CI c38253
%{_sysconfdir}/openvswitch/default.conf
Open vSwitch CI c38253
%config %ghost %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/conf.db
Open vSwitch CI c38253
%ghost %attr(0600,-,-) %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/.conf.db.~lock~
Open vSwitch CI c38253
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
Open vSwitch CI c38253
%defattr(-,root,root)
Open vSwitch CI c38253
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/openvswitch
Open vSwitch CI c38253
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
Open vSwitch CI c38253
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
Open vSwitch CI c38253
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
Open vSwitch CI c38253
%{_unitdir}/openvswitch.service
Open vSwitch CI c38253
%{_unitdir}/ovsdb-server.service
Open vSwitch CI c38253
%{_unitdir}/ovs-vswitchd.service
Open vSwitch CI c38253
%{_unitdir}/ovs-delete-transient-ports.service
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/openvswitch.init
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-lib
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-save
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-vtep
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-ctl
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-systemd-reload
Open vSwitch CI c38253
%config %{_datadir}/openvswitch/local-config.ovsschema
Open vSwitch CI c38253
%config %{_datadir}/openvswitch/vswitch.ovsschema
Open vSwitch CI c38253
%config %{_datadir}/openvswitch/vtep.ovsschema
Open vSwitch CI c38253
%{_bindir}/ovs-appctl
Open vSwitch CI c38253
%{_bindir}/ovs-dpctl
Open vSwitch CI c38253
%{_bindir}/ovs-ofctl
Open vSwitch CI c38253
%{_bindir}/ovs-vsctl
Open vSwitch CI c38253
%{_bindir}/ovsdb-client
Open vSwitch CI c38253
%{_bindir}/ovsdb-tool
Open vSwitch CI c38253
%{_bindir}/ovs-pki
Open vSwitch CI c38253
%{_bindir}/vtep-ctl
Open vSwitch CI c38253
%{_libdir}/*.so.*
Open vSwitch CI c38253
%{_sbindir}/ovs-vswitchd
Open vSwitch CI c38253
%{_sbindir}/ovsdb-server
Open vSwitch CI c38253
%{_mandir}/man1/ovsdb-client.1*
Open vSwitch CI c38253
%{_mandir}/man1/ovsdb-server.1*
Open vSwitch CI c38253
%{_mandir}/man1/ovsdb-tool.1*
Open vSwitch CI c38253
%{_mandir}/man5/ovsdb.5*
Open vSwitch CI c38253
%{_mandir}/man5/ovsdb.local-config.5*
Open vSwitch CI c38253
%{_mandir}/man5/ovsdb-server.5.*
Open vSwitch CI c38253
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
Open vSwitch CI c38253
%{_mandir}/man5/vtep.5*
Open vSwitch CI c38253
%{_mandir}/man7/ovsdb-server.7*
Open vSwitch CI c38253
%{_mandir}/man7/ovsdb.7*
Open vSwitch CI c38253
%{_mandir}/man7/ovs-actions.7*
Open vSwitch CI c38253
%{_mandir}/man7/ovs-fields.7*
Open vSwitch CI c38253
%{_mandir}/man8/vtep-ctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-appctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-ctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-dpctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-kmod-ctl.8.*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-ofctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-pki.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-vsctl.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-vswitchd.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-parse-backtrace.8*
Open vSwitch CI c38253
%{_udevrulesdir}/91-vfio.rules
Open vSwitch CI c38253
%doc LICENSE NOTICE README.rst NEWS rhel/README.RHEL.rst
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
%doc %{dpdkdir}/README.DPDK-PMDS
Open vSwitch CI c38253
%attr(750,openvswitch,hugetlbfs) %verify(not owner group) /var/log/openvswitch
Open vSwitch CI c38253
%else
Open vSwitch CI c38253
%attr(750,openvswitch,openvswitch) %verify(not owner group) /var/log/openvswitch
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
/var/lib/openvswitch
Open vSwitch CI c38253
%ghost %attr(755,root,root) %verify(not owner group) %{_rundir}/openvswitch
Open vSwitch CI c38253
%{_datadir}/openvswitch/bugtool-plugins/
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-bugtool-*
Open vSwitch CI c38253
%{_bindir}/ovs-dpctl-top
Open vSwitch CI c38253
%{_sbindir}/ovs-bugtool
Open vSwitch CI c38253
%{_mandir}/man8/ovs-dpctl-top.8*
Open vSwitch CI c38253
%{_mandir}/man8/ovs-bugtool.8*
Open vSwitch CI c38253
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} < 29)
Open vSwitch CI c38253
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
Open vSwitch CI c38253
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
%{_sysusersdir}/openvswitch.conf
Open vSwitch CI c38253
%ifarch %{dpdkarches}
Open vSwitch CI c38253
%{_sysusersdir}/openvswitch-hugetlbfs.conf
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%if %{with ipsec}
Open vSwitch CI c38253
%files ipsec
Open vSwitch CI c38253
%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
Open vSwitch CI c38253
%{_unitdir}/openvswitch-ipsec.service
Open vSwitch CI c38253
%endif
Open vSwitch CI c38253
Open vSwitch CI c38253
%changelog
Open vSwitch CI a00584
* Thu Aug 15 2024 Open vSwitch CI <ovs-ci@redhat.com> - 3.4.0-7
Open vSwitch CI a00584
- Merging upstream branch-3.4 [RH git: 7871fb73f3]
Open vSwitch CI a00584
    Commit list:
Open vSwitch CI a00584
    b0e749ba8e dp-packet: Correct IPv4 checksum calculation. ()
Open vSwitch CI a00584
Open vSwitch CI a00584
Open vSwitch CI 396a46
* Wed Aug 14 2024 Open vSwitch CI <ovs-ci@redhat.com> - 3.4.0-6
Open vSwitch CI 396a46
- Merging upstream branch-3.4 [RH git: c03ad592f4]
Open vSwitch CI 396a46
    Commit list:
Open vSwitch CI 396a46
    6b6823a576 netdev-linux: Fix unaligned access to rpl_rtnl_link_stats64.
Open vSwitch CI 396a46
    d49f51a05d route-table: Fix another UBsan warning about pointer type.
Open vSwitch CI 396a46
Open vSwitch CI 396a46
Open vSwitch CI c553f2
* Wed Aug 14 2024 Open vSwitch CI <ovs-ci@redhat.com> - 3.4.0-5
Open vSwitch CI c553f2
- Merging upstream branch-3.4 [RH git: e7581779a5]
Open vSwitch CI c553f2
    Commit list:
Open vSwitch CI c553f2
    cb121f4ea1 netdev-linux: Do not offload IP checksum.
Open vSwitch CI c553f2
Open vSwitch CI c553f2
Open vSwitch CI b3666f
* Mon Aug 12 2024 Open vSwitch CI <ovs-ci@redhat.com> - 3.4.0-4
Open vSwitch CI b3666f
- Merging upstream branch-3.4 [RH git: 581e76e784]
Open vSwitch CI b3666f
    Commit list:
Open vSwitch CI b3666f
    6cea2b36c6 tunnel, tests: Add test for mirroring over tunnels.
Open vSwitch CI b3666f
    a1afd83696 ofproto-dpif-xlate: Add a recursion limit to tunnel address lookup.
Open vSwitch CI b3666f
Open vSwitch CI b3666f
Open vSwitch CI e9b567
* Fri Aug 09 2024 Open vSwitch CI <ovs-ci@redhat.com> - 3.4.0-3
Open vSwitch CI e9b567
- Merging upstream branch-3.4 [RH git: e6170caeec]
Open vSwitch CI e9b567
    Commit list:
Open vSwitch CI e9b567
    1532c15a51 netdev-dpdk: Fix race condition in mempool information dump.
Open vSwitch CI e9b567
    6743a83e16 ovsdb: transaction: Remove incorrect transaction abort in pre-commit.
Open vSwitch CI e9b567
Open vSwitch CI e9b567
Open vSwitch CI c38253
* Thu Aug 08 2024 Michael Santana <msantana@redhat.com> - 3.4.0-2
Open vSwitch CI c38253
- Empty commit to allow CI to proceed [RH git: 055d8b6cc5]
Open vSwitch CI c38253
    Signed-off-by: Michael Santana <msantana@redhat.com>
Open vSwitch CI c38253
Open vSwitch CI c38253
Open vSwitch CI c38253
* Mon Jul 22 2024 Michael Santana <msantana@redhat.com> - 3.4.0-1
Open vSwitch CI c38253
- redhat: Imported Red Hat OVS 3.4 build files. [RH git: a81d26ef33]
Open vSwitch CI c38253
Open vSwitch CI c38253