|
Open vSwitch CI |
17acb0 |
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
|
|
Open vSwitch CI |
17acb0 |
#
|
|
Open vSwitch CI |
17acb0 |
# Copying and distribution of this file, with or without modification,
|
|
Open vSwitch CI |
17acb0 |
# are permitted in any medium without royalty provided the copyright
|
|
Open vSwitch CI |
17acb0 |
# notice and this notice are preserved. This file is offered as-is,
|
|
Open vSwitch CI |
17acb0 |
# without warranty of any kind.
|
|
Open vSwitch CI |
17acb0 |
#
|
|
Open vSwitch CI |
17acb0 |
# If tests have to be skipped while building, specify the '--without check'
|
|
Open vSwitch CI |
17acb0 |
# option. For example:
|
|
Open vSwitch CI |
17acb0 |
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# This defines the base package name's version.
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%define pkgname openvswitch3.2
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
324e47 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?commit:1}
|
|
Open vSwitch CI |
17acb0 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Enable PIE, bz#955181
|
|
Open vSwitch CI |
17acb0 |
%global _hardened_build 1
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# RHEL-7 doesn't define _rundir macro yet
|
|
Open vSwitch CI |
17acb0 |
# Fedora 15 onwards uses /run as _rundir
|
|
Open vSwitch CI |
17acb0 |
%if 0%{!?_rundir:1}
|
|
Open vSwitch CI |
17acb0 |
%define _rundir /run
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# FIXME Test "STP - flush the fdb and mdb when topology changed" fails on s390x
|
|
Open vSwitch CI |
17acb0 |
# FIXME 2 tests fails on ppc64le. They will be hopefully fixed before official 2.11
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{ix86} x86_64 aarch64
|
|
Open vSwitch CI |
17acb0 |
%bcond_without check
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%bcond_with check
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
# option to run kernel datapath tests, requires building as root!
|
|
Open vSwitch CI |
17acb0 |
%bcond_with check_datapath_kernel
|
|
Open vSwitch CI |
17acb0 |
# option to build with libcap-ng, needed for running OVS as regular user
|
|
Open vSwitch CI |
17acb0 |
%bcond_without libcapng
|
|
Open vSwitch CI |
17acb0 |
# option to build with ipsec support
|
|
Open vSwitch CI |
17acb0 |
%bcond_without ipsec
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Build python2 (that provides python) and python3 subpackages on Fedora
|
|
Open vSwitch CI |
17acb0 |
# Build only python3 (that provides python) subpackage on RHEL8
|
|
Open vSwitch CI |
17acb0 |
# Build only python subpackage on RHEL7
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} > 7 || 0%{?fedora}
|
|
Open vSwitch CI |
17acb0 |
# On RHEL8 Sphinx is included in buildroot
|
|
Open vSwitch CI |
17acb0 |
%global external_sphinx 1
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
|
|
Open vSwitch CI |
17acb0 |
%global external_sphinx 0
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
Name: %{pkgname}
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch
|
|
Open vSwitch CI |
17acb0 |
Group: System Environment/Daemons daemon/database/utilities
|
|
Open vSwitch CI |
17acb0 |
URL: http://www.openvswitch.org/
|
|
Open vSwitch CI |
17acb0 |
Version: 3.2.0
|
|
Open vSwitch CI |
020e54 |
Release: 4%{?dist}
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
|
|
Open vSwitch CI |
17acb0 |
# lib/sflow*.[ch] files are SISSL
|
|
Open vSwitch CI |
17acb0 |
# datapath/ is GPLv2 (although not built into any of the binary packages)
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0 and LGPLv2+ and SISSL
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%define dpdkver 22.11.1
|
|
Open vSwitch CI |
17acb0 |
%define dpdkdir dpdk
|
|
Open vSwitch CI |
17acb0 |
%define dpdksver %(echo %{dpdkver} | cut -d. -f-2)
|
|
Open vSwitch CI |
17acb0 |
# NOTE: DPDK does not currently build for s390x
|
|
Open vSwitch CI |
17acb0 |
# DPDK on aarch64 is not stable enough to be enabled in FDP
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} > 7 || 0%{?fedora}
|
|
Open vSwitch CI |
17acb0 |
%define dpdkarches x86_64 ppc64le
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%define dpdkarches
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?commit:1}
|
|
Open vSwitch CI |
17acb0 |
Source: https://github.com/openvswitch/ovs/archive/%{commit}.tar.gz#/openvswitch-%{commit}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
Source: https://github.com/openvswitch/ovs/archive/v%{version}.tar.gz#/openvswitch-%{version}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
Source2: openvswitch.sysusers
|
|
Open vSwitch CI |
17acb0 |
Source3: openvswitch-hugetlbfs.sysusers
|
|
Open vSwitch CI |
17acb0 |
Source10: https://fast.dpdk.org/rel/dpdk-%{dpdkver}.tar.xz
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%define docutilsver 0.12
|
|
Open vSwitch CI |
17acb0 |
%define pygmentsver 1.4
|
|
Open vSwitch CI |
17acb0 |
%define sphinxver 1.2.3
|
|
Open vSwitch CI |
17acb0 |
%define pyelftoolsver 0.27
|
|
Open vSwitch CI |
17acb0 |
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
Source103: https://pypi.io/packages/source/p/pyelftools/pyelftools-%{pyelftoolsver}.tar.gz
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%define apply_patch %(test -s openvswitch-%{version}.patch && echo 1 || echo 0)
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{apply_patch}
|
|
Open vSwitch CI |
17acb0 |
Patch0: openvswitch-%{version}.patch
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# The DPDK is designed to optimize througput of network traffic using, among
|
|
Open vSwitch CI |
17acb0 |
# other techniques, carefully crafted assembly instructions. As such it
|
|
Open vSwitch CI |
17acb0 |
# needs extensive work to port it to other architectures.
|
|
Open vSwitch CI |
17acb0 |
ExclusiveArch: x86_64 aarch64 ppc64le s390x
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Do not enable this otherwise YUM will break on any upgrade.
|
|
Open vSwitch CI |
17acb0 |
# Provides: openvswitch
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch < 3.2
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch-dpdk < 3.2
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.10
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.11
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.12
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.13
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.14
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.15
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.16
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch2.17
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch3.0
|
|
Open vSwitch CI |
17acb0 |
Conflicts: openvswitch3.1
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
|
|
Open vSwitch CI |
17acb0 |
# in the -optional repository and so we can't require it directly since RHV
|
|
Open vSwitch CI |
17acb0 |
# doesn't have the -optional repository enabled and so TPS fails
|
|
Open vSwitch CI |
17acb0 |
%if %{external_sphinx}
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python3-sphinx
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
# Sphinx dependencies
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-devel
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-setuptools
|
|
Open vSwitch CI |
17acb0 |
#BuildRequires: python2-docutils
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-jinja2
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-nose
|
|
Open vSwitch CI |
17acb0 |
#BuildRequires: python2-pygments
|
|
Open vSwitch CI |
17acb0 |
# docutils dependencies
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-imaging
|
|
Open vSwitch CI |
17acb0 |
# pygments dependencies
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python-nose
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: gcc gcc-c++ make
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: autoconf automake libtool
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: systemd-units systemd-rpm-macros openssl openssl-devel
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python3-devel python3-setuptools
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: desktop-file-utils
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: groff-base graphviz
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: unbound-devel
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: systemtap-sdt-devel
|
|
Open vSwitch CI |
17acb0 |
# make check dependencies
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: procps-ng
|
|
Open vSwitch CI |
17acb0 |
%if %{with check_datapath_kernel}
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: nmap-ncat
|
|
Open vSwitch CI |
17acb0 |
# would be useful but not available in RHEL or EPEL
|
|
Open vSwitch CI |
17acb0 |
#BuildRequires: pyftpdlib
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{with libcapng}
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: libcap-ng libcap-ng-devel
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: meson
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} > 8 || 0%{?fedora}
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: python3-pyelftools
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
# DPDK driver dependencies
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: zlib-devel numactl-devel libarchive-devel
|
|
Open vSwitch CI |
17acb0 |
%ifarch x86_64
|
|
Open vSwitch CI |
17acb0 |
BuildRequires: rdma-core-devel >= 15 libmnl-devel
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Required by packaging policy for the bundled DPDK
|
|
Open vSwitch CI |
17acb0 |
Provides: bundled(dpdk) = %{dpdkver}
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
Requires: openssl iproute module-init-tools
|
|
Open vSwitch CI |
17acb0 |
#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
|
|
Open vSwitch CI |
17acb0 |
#Requires: kernel >= 3.15.0-0
|
|
Open vSwitch CI |
17acb0 |
Requires: openvswitch-selinux-extra-policy
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%{?sysusers_requires_compat}
|
|
Open vSwitch CI |
17acb0 |
Requires(post): /bin/sed
|
|
Open vSwitch CI |
17acb0 |
Requires(post): systemd-units
|
|
Open vSwitch CI |
17acb0 |
Requires(preun): systemd-units
|
|
Open vSwitch CI |
17acb0 |
Requires(postun): systemd-units
|
|
Open vSwitch CI |
17acb0 |
Obsoletes: openvswitch-controller <= 0:2.1.0-1
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel}
|
|
Open vSwitch CI |
17acb0 |
# sortedcontainers are not packaged on RHEL yet, but ovs includes it
|
|
Open vSwitch CI |
17acb0 |
%global __requires_exclude ^python%{python3_version}dist\\(sortedcontainers\\)$
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description
|
|
Open vSwitch CI |
17acb0 |
Open vSwitch provides standard network bridging functions and
|
|
Open vSwitch CI |
17acb0 |
support for the OpenFlow protocol for remote per-flow control of
|
|
Open vSwitch CI |
17acb0 |
traffic.
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%package -n python3-%{pkgname}
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch python3 bindings
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0
|
|
Open vSwitch CI |
17acb0 |
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Open vSwitch CI |
17acb0 |
Provides: python-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description -n python3-%{pkgname}
|
|
Open vSwitch CI |
17acb0 |
Python bindings for the Open vSwitch database
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%package test
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch testing utilities
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0
|
|
Open vSwitch CI |
17acb0 |
BuildArch: noarch
|
|
Open vSwitch CI |
17acb0 |
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Open vSwitch CI |
17acb0 |
Requires: tcpdump
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description test
|
|
Open vSwitch CI |
17acb0 |
Utilities that are useful to diagnose performance and connectivity
|
|
Open vSwitch CI |
17acb0 |
issues in Open vSwitch setup.
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%package devel
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch OpenFlow development package (library, headers)
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0
|
|
Open vSwitch CI |
17acb0 |
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description devel
|
|
Open vSwitch CI |
17acb0 |
This provides shared library, libopenswitch.so and the openvswitch header
|
|
Open vSwitch CI |
17acb0 |
files needed to build an external application.
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
|
|
Open vSwitch CI |
17acb0 |
%package -n network-scripts-%{name}
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch legacy network service support
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0
|
|
Open vSwitch CI |
17acb0 |
Requires: network-scripts
|
|
Open vSwitch CI |
17acb0 |
Supplements: (%{name} and network-scripts)
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description -n network-scripts-%{name}
|
|
Open vSwitch CI |
17acb0 |
This provides the ifup and ifdown scripts for use with the legacy network
|
|
Open vSwitch CI |
17acb0 |
service.
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{with ipsec}
|
|
Open vSwitch CI |
17acb0 |
%package ipsec
|
|
Open vSwitch CI |
17acb0 |
Summary: Open vSwitch IPsec tunneling support
|
|
Open vSwitch CI |
17acb0 |
License: ASL 2.0
|
|
Open vSwitch CI |
17acb0 |
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Open vSwitch CI |
17acb0 |
Requires: libreswan
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%description ipsec
|
|
Open vSwitch CI |
17acb0 |
This package provides IPsec tunneling support for OVS tunnels.
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%prep
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?commit:1}
|
|
Open vSwitch CI |
17acb0 |
%setup -q -n ovs-%{commit} -a 10
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%setup -q -n ovs-%{version} -a 10
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%if ! %{external_sphinx}
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?commit:1}
|
|
Open vSwitch CI |
17acb0 |
%setup -n ovs-%{commit} -q -D -T -a 100 -a 101 -a 102
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%setup -n ovs-%{version} -q -D -T -a 100 -a 101 -a 102
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} && 0%{?rhel} < 9
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?commit:1}
|
|
Open vSwitch CI |
17acb0 |
%setup -n ovs-%{commit} -q -D -T -a 103
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%setup -n ovs-%{version} -q -D -T -a 103
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
mv dpdk-*/ %{dpdkdir}/
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{apply_patch}
|
|
Open vSwitch CI |
17acb0 |
%patch0 -p1
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%build
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} && 0%{?rhel} < 9
|
|
Open vSwitch CI |
17acb0 |
export PYTHONPATH="${PWD}/pyelftools-%{pyelftoolsver}"
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
# Build Sphinx on RHEL
|
|
Open vSwitch CI |
17acb0 |
%if ! %{external_sphinx}
|
|
Open vSwitch CI |
17acb0 |
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}%{_builddir}/pytmp/lib/python"
|
|
Open vSwitch CI |
17acb0 |
for x in docutils-%{docutilsver} Pygments-%{pygmentsver} Sphinx-%{sphinxver}; do
|
|
Open vSwitch CI |
17acb0 |
pushd "$x"
|
|
Open vSwitch CI |
17acb0 |
python2 setup.py install --home %{_builddir}/pytmp
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
done
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
export PATH="$PATH:%{_builddir}/pytmp/bin"
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
./boot.sh
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches} # build dpdk
|
|
Open vSwitch CI |
17acb0 |
# Lets build DPDK first
|
|
Open vSwitch CI |
17acb0 |
cd %{dpdkdir}
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
ENABLED_DRIVERS=(
|
|
Open vSwitch CI |
17acb0 |
bus/pci
|
|
Open vSwitch CI |
17acb0 |
bus/vdev
|
|
Open vSwitch CI |
17acb0 |
mempool/ring
|
|
Open vSwitch CI |
17acb0 |
net/failsafe
|
|
Open vSwitch CI |
17acb0 |
net/i40e
|
|
Open vSwitch CI |
17acb0 |
net/ring
|
|
Open vSwitch CI |
17acb0 |
net/vhost
|
|
Open vSwitch CI |
17acb0 |
net/virtio
|
|
Open vSwitch CI |
17acb0 |
net/tap
|
|
Open vSwitch CI |
17acb0 |
)
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%ifarch x86_64
|
|
Open vSwitch CI |
17acb0 |
ENABLED_DRIVERS+=(
|
|
Open vSwitch CI |
17acb0 |
bus/auxiliary
|
|
Open vSwitch CI |
17acb0 |
bus/vmbus
|
|
Open vSwitch CI |
17acb0 |
common/iavf
|
|
Open vSwitch CI |
17acb0 |
common/mlx5
|
|
Open vSwitch CI |
17acb0 |
net/bnxt
|
|
Open vSwitch CI |
17acb0 |
net/enic
|
|
Open vSwitch CI |
17acb0 |
net/iavf
|
|
Open vSwitch CI |
17acb0 |
net/ice
|
|
Open vSwitch CI |
17acb0 |
net/mlx5
|
|
Open vSwitch CI |
17acb0 |
net/netvsc
|
|
Open vSwitch CI |
17acb0 |
net/nfp
|
|
Open vSwitch CI |
17acb0 |
net/qede
|
|
Open vSwitch CI |
17acb0 |
net/vdev_netvsc
|
|
Open vSwitch CI |
17acb0 |
)
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%ifarch aarch64 x86_64
|
|
Open vSwitch CI |
17acb0 |
ENABLED_DRIVERS+=(
|
|
Open vSwitch CI |
17acb0 |
net/e1000
|
|
Open vSwitch CI |
17acb0 |
net/ixgbe
|
|
Open vSwitch CI |
17acb0 |
)
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
for driver in "${ENABLED_DRIVERS[@]}"; do
|
|
Open vSwitch CI |
17acb0 |
enable_drivers="${enable_drivers:+$enable_drivers,}"$driver
|
|
Open vSwitch CI |
17acb0 |
done
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# As of 21.11-rc3, following libraries can be disabled:
|
|
Open vSwitch CI |
17acb0 |
# optional_libs = [
|
|
Open vSwitch CI |
17acb0 |
# 'bitratestats',
|
|
Open vSwitch CI |
17acb0 |
# 'gpudev',
|
|
Open vSwitch CI |
17acb0 |
# 'gro',
|
|
Open vSwitch CI |
17acb0 |
# 'gso',
|
|
Open vSwitch CI |
17acb0 |
# 'kni',
|
|
Open vSwitch CI |
17acb0 |
# 'jobstats',
|
|
Open vSwitch CI |
17acb0 |
# 'latencystats',
|
|
Open vSwitch CI |
17acb0 |
# 'metrics',
|
|
Open vSwitch CI |
17acb0 |
# 'pdump',
|
|
Open vSwitch CI |
17acb0 |
# 'power',
|
|
Open vSwitch CI |
17acb0 |
# 'vhost',
|
|
Open vSwitch CI |
17acb0 |
# ]
|
|
Open vSwitch CI |
17acb0 |
# If doing any updates, this must be aligned with:
|
|
Open vSwitch CI |
17acb0 |
# https://access.redhat.com/articles/3538141
|
|
Open vSwitch CI |
17acb0 |
DISABLED_LIBS=(
|
|
Open vSwitch CI |
17acb0 |
gpudev
|
|
Open vSwitch CI |
17acb0 |
kni
|
|
Open vSwitch CI |
17acb0 |
jobstats
|
|
Open vSwitch CI |
17acb0 |
power
|
|
Open vSwitch CI |
17acb0 |
)
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
for lib in "${DISABLED_LIBS[@]}"; do
|
|
Open vSwitch CI |
17acb0 |
disable_libs="${disable_libs:+$disable_libs,}"$lib
|
|
Open vSwitch CI |
17acb0 |
done
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%set_build_flags
|
|
Open vSwitch CI |
17acb0 |
%__meson --prefix=%{_builddir}/dpdk-build \
|
|
Open vSwitch CI |
17acb0 |
--buildtype=plain \
|
|
Open vSwitch CI |
17acb0 |
-Ddisable_libs="$disable_libs" \
|
|
Open vSwitch CI |
17acb0 |
-Ddisable_apps="*" \
|
|
Open vSwitch CI |
17acb0 |
-Denable_drivers="$enable_drivers" \
|
|
Open vSwitch CI |
17acb0 |
-Dplatform=generic \
|
|
Open vSwitch CI |
17acb0 |
-Dmax_ethports=1024 \
|
|
Open vSwitch CI |
17acb0 |
-Dmax_numa_nodes=8 \
|
|
Open vSwitch CI |
17acb0 |
-Dtests=false \
|
|
Open vSwitch CI |
17acb0 |
%{_vpath_builddir}
|
|
Open vSwitch CI |
17acb0 |
%meson_build
|
|
Open vSwitch CI |
17acb0 |
%__meson install -C %{_vpath_builddir} --no-rebuild
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# FIXME currently with LTO enabled OVS tries to link with both static and shared libraries
|
|
Open vSwitch CI |
17acb0 |
rm -v %{_builddir}/dpdk-build/%{_lib}/*.so*
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Generate a list of supported drivers, its hard to tell otherwise.
|
|
Open vSwitch CI |
17acb0 |
cat << EOF > README.DPDK-PMDS
|
|
Open vSwitch CI |
17acb0 |
DPDK drivers included in this package:
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
EOF
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
for f in %{_builddir}/dpdk-build/%{_lib}/librte_net_*.a; do
|
|
Open vSwitch CI |
17acb0 |
basename ${f} | cut -c12- | cut -d. -f1 | tr [:lower:] [:upper:]
|
|
Open vSwitch CI |
17acb0 |
done >> README.DPDK-PMDS
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
cat << EOF >> README.DPDK-PMDS
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
For further information about the drivers, see
|
|
Open vSwitch CI |
17acb0 |
http://dpdk.org/doc/guides-%{dpdksver}/nics/index.html
|
|
Open vSwitch CI |
17acb0 |
EOF
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
cd -
|
|
Open vSwitch CI |
17acb0 |
%endif # build dpdk
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# And now for OVS...
|
|
Open vSwitch CI |
17acb0 |
mkdir build-shared build-static
|
|
Open vSwitch CI |
17acb0 |
pushd build-shared
|
|
Open vSwitch CI |
17acb0 |
ln -s ../configure
|
|
Open vSwitch CI |
17acb0 |
%configure \
|
|
Open vSwitch CI |
17acb0 |
%if %{with libcapng}
|
|
Open vSwitch CI |
17acb0 |
--enable-libcapng \
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
--disable-libcapng \
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
--disable-static \
|
|
Open vSwitch CI |
17acb0 |
--enable-shared \
|
|
Open vSwitch CI |
17acb0 |
--enable-ssl \
|
|
Open vSwitch CI |
17acb0 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki \
|
|
Open vSwitch CI |
17acb0 |
--enable-usdt-probes \
|
|
Open vSwitch CI |
17acb0 |
--disable-afxdp
|
|
Open vSwitch CI |
17acb0 |
make %{?_smp_mflags}
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
pushd build-static
|
|
Open vSwitch CI |
17acb0 |
ln -s ../configure
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
PKG_CONFIG_PATH=%{_builddir}/dpdk-build/%{_lib}/pkgconfig \
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%configure \
|
|
Open vSwitch CI |
17acb0 |
%if %{with libcapng}
|
|
Open vSwitch CI |
17acb0 |
--enable-libcapng \
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
--disable-libcapng \
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
--enable-ssl \
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
--with-dpdk=static \
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki \
|
|
Open vSwitch CI |
17acb0 |
--enable-usdt-probes \
|
|
Open vSwitch CI |
17acb0 |
--disable-afxdp
|
|
Open vSwitch CI |
17acb0 |
make %{?_smp_mflags}
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
/usr/bin/python3 build-aux/dpdkstrip.py \
|
|
Open vSwitch CI |
17acb0 |
--dpdk \
|
|
Open vSwitch CI |
17acb0 |
< rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
|
|
Open vSwitch CI |
17acb0 |
> rhel/usr_lib_systemd_system_ovs-vswitchd.service
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%install
|
|
Open vSwitch CI |
17acb0 |
rm -rf $RPM_BUILD_ROOT
|
|
Open vSwitch CI |
17acb0 |
make -C build-shared install sbin_PROGRAMS=ovsdb/ovsdb-server DESTDIR=$RPM_BUILD_ROOT
|
|
Open vSwitch CI |
17acb0 |
make -C build-static install bin_PROGRAMS= sbin_PROGRAMS=vswitchd/ovs-vswitchd DESTDIR=$RPM_BUILD_ROOT
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch.conf
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch-hugetlbfs.conf
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{_udevrulesdir}/91-vfio.rules
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 \
|
|
Open vSwitch CI |
17acb0 |
rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
for service in openvswitch ovsdb-server ovs-vswitchd \
|
|
Open vSwitch CI |
17acb0 |
ovs-delete-transient-ports; do
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 \
|
|
Open vSwitch CI |
17acb0 |
rhel/usr_lib_systemd_system_${service}.service \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{_unitdir}/${service}.service
|
|
Open vSwitch CI |
17acb0 |
done
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{with ipsec}
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-ipsec.service \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{_unitdir}/openvswitch-ipsec.service
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -m 0755 rhel/etc_init.d_openvswitch \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -m 0644 vswitchd/vswitch.ovsschema \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} < 9
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
|
|
Open vSwitch CI |
17acb0 |
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
|
|
Open vSwitch CI |
17acb0 |
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
|
|
Open vSwitch CI |
17acb0 |
cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovstest \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{python3_sitelib}
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# Build the JSON C extension for the Python lib (#1417738)
|
|
Open vSwitch CI |
17acb0 |
pushd python
|
|
Open vSwitch CI |
17acb0 |
(
|
|
Open vSwitch CI |
17acb0 |
export CPPFLAGS="-I ../include -I ../build-shared/include"
|
|
Open vSwitch CI |
17acb0 |
export LDFLAGS="%{__global_ldflags} -L $RPM_BUILD_ROOT%{_libdir}"
|
|
Open vSwitch CI |
17acb0 |
%py3_build
|
|
Open vSwitch CI |
17acb0 |
%py3_install
|
|
Open vSwitch CI |
17acb0 |
[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json$(python3-config --extension-suffix)" ]
|
|
Open vSwitch CI |
17acb0 |
)
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
install -p -D -m 0755 \
|
|
Open vSwitch CI |
17acb0 |
rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
|
|
Open vSwitch CI |
17acb0 |
# The db needs special permission as IPsec Pre-shared keys are stored in it.
|
|
Open vSwitch CI |
17acb0 |
chmod 0640 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# remove unpackaged files
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovs-benchmark \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_bindir}/ovs-docker \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_bindir}/ovs-parse-backtrace \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_bindir}/ovs-testcontroller \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_sbindir}/ovs-vlan-bug-workaround \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_mandir}/man1/ovs-benchmark.1* \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_mandir}/man8/ovs-testcontroller.* \
|
|
Open vSwitch CI |
17acb0 |
$RPM_BUILD_ROOT/%{_mandir}/man8/ovs-vlan-bug-workaround.8*
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if ! %{with ipsec}
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT/%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
# remove ovn unpackages files
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_bindir}/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovn*
|
|
Open vSwitch CI |
17acb0 |
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%check
|
|
Open vSwitch CI |
17acb0 |
%if %{with check}
|
|
Open vSwitch CI |
17acb0 |
pushd build-static
|
|
Open vSwitch CI |
17acb0 |
touch resolv.conf
|
|
Open vSwitch CI |
17acb0 |
export OVS_RESOLV_CONF=$(pwd)/resolv.conf
|
|
Open vSwitch CI |
17acb0 |
if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
|
|
Open vSwitch CI |
17acb0 |
make check TESTSUITEFLAGS='--recheck'; then :;
|
|
Open vSwitch CI |
17acb0 |
else
|
|
Open vSwitch CI |
17acb0 |
cat tests/testsuite.log
|
|
Open vSwitch CI |
17acb0 |
exit 1
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%if %{with check_datapath_kernel}
|
|
Open vSwitch CI |
17acb0 |
pushd build-static
|
|
Open vSwitch CI |
17acb0 |
if make check-kernel RECHECK=yes; then :;
|
|
Open vSwitch CI |
17acb0 |
else
|
|
Open vSwitch CI |
17acb0 |
cat tests/system-kmod-testsuite.log
|
|
Open vSwitch CI |
17acb0 |
exit 1
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
popd
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%clean
|
|
Open vSwitch CI |
17acb0 |
rm -rf $RPM_BUILD_ROOT
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%preun
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?systemd_preun:1}
|
|
Open vSwitch CI |
17acb0 |
%systemd_preun openvswitch.service
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
if [ $1 -eq 0 ] ; then
|
|
Open vSwitch CI |
17acb0 |
# Package removal, not upgrade
|
|
Open vSwitch CI |
17acb0 |
/bin/systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
/bin/systemctl stop openvswitch.service >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%pre
|
|
Open vSwitch CI |
17acb0 |
%sysusers_create_compat %{SOURCE2}
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
%sysusers_create_compat %{SOURCE3}
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%post
|
|
Open vSwitch CI |
17acb0 |
if [ $1 -eq 1 ]; then
|
|
Open vSwitch CI |
17acb0 |
sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
sed -i \
|
|
Open vSwitch CI |
17acb0 |
's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
|
|
Open vSwitch CI |
17acb0 |
/etc/sysconfig/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
chown -R openvswitch:openvswitch /etc/openvswitch
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?systemd_post:1}
|
|
Open vSwitch CI |
17acb0 |
%systemd_post openvswitch.service
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
# Package install, not upgrade
|
|
Open vSwitch CI |
17acb0 |
if [ $1 -eq 1 ]; then
|
|
Open vSwitch CI |
17acb0 |
/bin/systemctl daemon-reload >dev/null || :
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%postun
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?systemd_postun:1}
|
|
Open vSwitch CI |
17acb0 |
%systemd_postun openvswitch.service
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%triggerun -- openvswitch < 2.5.0-22.git20160727%{?dist}
|
|
Open vSwitch CI |
17acb0 |
# old rpm versions restart the service in postun, but
|
|
Open vSwitch CI |
17acb0 |
# due to systemd some preparation is needed.
|
|
Open vSwitch CI |
17acb0 |
if systemctl is-active openvswitch >/dev/null 2>&1 ; then
|
|
Open vSwitch CI |
17acb0 |
/usr/share/openvswitch/scripts/ovs-ctl stop >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
systemctl daemon-reload >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
systemctl stop openvswitch ovsdb-server ovs-vswitchd >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
systemctl start openvswitch >/dev/null 2>&1 || :
|
|
Open vSwitch CI |
17acb0 |
fi
|
|
Open vSwitch CI |
17acb0 |
exit 0
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%files -n python3-%{pkgname}
|
|
Open vSwitch CI |
17acb0 |
%{python3_sitearch}/ovs
|
|
Open vSwitch CI |
17acb0 |
%{python3_sitearch}/ovs-*.egg-info
|
|
Open vSwitch CI |
17acb0 |
%doc LICENSE
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%files test
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-pcap
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-tcpdump
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-tcpundump
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/usdt/*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man1/ovs-pcap.1*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-tcpdump.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man1/ovs-tcpundump.1*
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-test
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-vlan-test
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-l3ping
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-test.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-vlan-test.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-l3ping.8*
|
|
Open vSwitch CI |
17acb0 |
%{python3_sitelib}/ovstest
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%files devel
|
|
Open vSwitch CI |
17acb0 |
%{_libdir}/*.so
|
|
Open vSwitch CI |
17acb0 |
%{_libdir}/pkgconfig/*.pc
|
|
Open vSwitch CI |
17acb0 |
%{_includedir}/openvswitch/*
|
|
Open vSwitch CI |
17acb0 |
%{_includedir}/openflow/*
|
|
Open vSwitch CI |
17acb0 |
%exclude %{_libdir}/*.a
|
|
Open vSwitch CI |
17acb0 |
%exclude %{_libdir}/*.la
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
|
|
Open vSwitch CI |
17acb0 |
%files -n network-scripts-%{name}
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%files
|
|
Open vSwitch CI |
17acb0 |
%defattr(-,openvswitch,openvswitch)
|
|
Open vSwitch CI |
17acb0 |
%dir %{_sysconfdir}/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/openvswitch/default.conf
|
|
Open vSwitch CI |
17acb0 |
%config %ghost %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/conf.db
|
|
Open vSwitch CI |
17acb0 |
%ghost %attr(0600,-,-) %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/.conf.db.~lock~
|
|
Open vSwitch CI |
17acb0 |
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
|
|
Open vSwitch CI |
17acb0 |
%defattr(-,root,root)
|
|
Open vSwitch CI |
17acb0 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
|
|
Open vSwitch CI |
17acb0 |
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%{_unitdir}/openvswitch.service
|
|
Open vSwitch CI |
17acb0 |
%{_unitdir}/ovsdb-server.service
|
|
Open vSwitch CI |
17acb0 |
%{_unitdir}/ovs-vswitchd.service
|
|
Open vSwitch CI |
17acb0 |
%{_unitdir}/ovs-delete-transient-ports.service
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/openvswitch.init
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-lib
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-save
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-vtep
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-ctl
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-systemd-reload
|
|
Open vSwitch CI |
17acb0 |
%config %{_datadir}/openvswitch/local-config.ovsschema
|
|
Open vSwitch CI |
17acb0 |
%config %{_datadir}/openvswitch/vswitch.ovsschema
|
|
Open vSwitch CI |
17acb0 |
%config %{_datadir}/openvswitch/vtep.ovsschema
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-appctl
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-dpctl
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-ofctl
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-vsctl
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovsdb-client
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovsdb-tool
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-pki
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/vtep-ctl
|
|
Open vSwitch CI |
17acb0 |
%{_libdir}/*.so.*
|
|
Open vSwitch CI |
17acb0 |
%{_sbindir}/ovs-vswitchd
|
|
Open vSwitch CI |
17acb0 |
%{_sbindir}/ovsdb-server
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man1/ovsdb-client.1*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man1/ovsdb-server.1*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man1/ovsdb-tool.1*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man5/ovsdb.5*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man5/ovsdb.local-config.5*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man5/ovsdb-server.5.*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man5/vtep.5*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man7/ovsdb-server.7*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man7/ovsdb.7*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man7/ovs-actions.7*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man7/ovs-fields.7*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/vtep-ctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-appctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-ctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-dpctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-kmod-ctl.8.*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-ofctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-pki.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-vsctl.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-vswitchd.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-parse-backtrace.8*
|
|
Open vSwitch CI |
17acb0 |
%{_udevrulesdir}/91-vfio.rules
|
|
Open vSwitch CI |
17acb0 |
%doc LICENSE NOTICE README.rst NEWS rhel/README.RHEL.rst
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
%doc %{dpdkdir}/README.DPDK-PMDS
|
|
Open vSwitch CI |
17acb0 |
%attr(750,openvswitch,hugetlbfs) %verify(not owner group) /var/log/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%else
|
|
Open vSwitch CI |
17acb0 |
%attr(750,openvswitch,openvswitch) %verify(not owner group) /var/log/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
/var/lib/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%ghost %attr(755,root,root) %verify(not owner group) %{_rundir}/openvswitch
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/bugtool-plugins/
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-bugtool-*
|
|
Open vSwitch CI |
17acb0 |
%{_bindir}/ovs-dpctl-top
|
|
Open vSwitch CI |
17acb0 |
%{_sbindir}/ovs-bugtool
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-dpctl-top.8*
|
|
Open vSwitch CI |
17acb0 |
%{_mandir}/man8/ovs-bugtool.8*
|
|
Open vSwitch CI |
17acb0 |
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} < 29)
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
|
|
Open vSwitch CI |
17acb0 |
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
%{_sysusersdir}/openvswitch.conf
|
|
Open vSwitch CI |
17acb0 |
%ifarch %{dpdkarches}
|
|
Open vSwitch CI |
17acb0 |
%{_sysusersdir}/openvswitch-hugetlbfs.conf
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%if %{with ipsec}
|
|
Open vSwitch CI |
17acb0 |
%files ipsec
|
|
Open vSwitch CI |
17acb0 |
%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
|
|
Open vSwitch CI |
17acb0 |
%{_unitdir}/openvswitch-ipsec.service
|
|
Open vSwitch CI |
17acb0 |
%endif
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
%changelog
|
|
Open vSwitch CI |
020e54 |
* Mon Aug 28 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.2.0-4
|
|
Open vSwitch CI |
020e54 |
- Merging upstream branch-3.2 [RH git: df4af3fd41]
|
|
Open vSwitch CI |
020e54 |
Commit list:
|
|
Open vSwitch CI |
020e54 |
0df9f974dc netdev-dpdk: Clear IP packet type when no offload is requested. (#2231081)
|
|
Open vSwitch CI |
020e54 |
|
|
Open vSwitch CI |
020e54 |
|
|
Open vSwitch CI |
117d8e |
* Fri Aug 25 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.2.0-3
|
|
Open vSwitch CI |
117d8e |
- Merging upstream branch-3.2 [RH git: 6e99e930b6]
|
|
Open vSwitch CI |
117d8e |
Commit list:
|
|
Open vSwitch CI |
117d8e |
a4aa202513 python: Use build to generate PEP517 compatible archives.
|
|
Open vSwitch CI |
117d8e |
a8a31e6534 python: Use twine to upload sdist package to pypi.org.
|
|
Open vSwitch CI |
117d8e |
3b3a7b50fd python: Rename build related code to ovs_build_helpers.
|
|
Open vSwitch CI |
117d8e |
bf27c8b966 dpif-netdev: Fix length calculation of netdet_flow_key.
|
|
Open vSwitch CI |
117d8e |
74a64ac0a2 doc: Fix description of max_len for controller action.
|
|
Open vSwitch CI |
117d8e |
20f4645273 docs: Fix rendering of VLAN Comparison Chart.
|
|
Open vSwitch CI |
117d8e |
da20390c74 fatal-signal: Drop logging of failed dummy backtrace.
|
|
Open vSwitch CI |
117d8e |
|
|
Open vSwitch CI |
117d8e |
|
|
Open vSwitch CI |
324e47 |
* Fri Aug 25 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.2.0-2
|
|
Open vSwitch CI |
324e47 |
- Merging upstream branch-3.2 [RH git: 62c8b67317]
|
|
Open vSwitch CI |
8a3115 |
Commit list:
|
|
Open vSwitch CI |
324e47 |
9448098338 docs: Run tbl preprocessor in manpage-check rule.
|
|
Open vSwitch CI |
324e47 |
e2163f2ed4 docs: Add `nowarn` region option to tables.
|
|
Open vSwitch CI |
324e47 |
4e6bc7674e tests: Add clang-analyzer-results to gitignore.
|
|
Open vSwitch CI |
324e47 |
55d01136a7 ci: Add jobs to test -std=c99 builds.
|
|
Open vSwitch CI |
324e47 |
6af08f4201 tests: Fix order of includes in barrier/id-fpool/mpsc-queue tests.
|
|
Open vSwitch CI |
324e47 |
4e475523c6 sflow: Always enable _BSD_SOURCE.
|
|
Open vSwitch CI |
324e47 |
b40af61940 compiler.h: Don't use asm and typeof with non-GNU compilers.
|
|
Open vSwitch CI |
8a3115 |
e99e98655b Prepare for 3.2.1.
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
324e47 |
* Fri Aug 25 2023 Flavio Leitner <fbl@redhat.com> - 3.2.0-1
|
|
Open vSwitch CI |
324e47 |
- redhat: Use official 3.2.0 tarball. [RH git: 14fbd4e97b]
|
|
Open vSwitch CI |
324e47 |
Signed-off-by: Flavio Leitner <fbl@redhat.com>
|
|
Open vSwitch CI |
17acb0 |
|
|
Open vSwitch CI |
17acb0 |
|