|
rdobuilder |
bcd73a |
# Current version of OVS that this package requires
|
|
rdobuilder |
bcd73a |
%define ovs_version 3.1
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
# Comma-separated (no spaces) e.g. 2.10,2.9 ... of prior fast-datapath
|
|
rdobuilder |
bcd73a |
# openvswitch and ovn packages we need to obsolete
|
|
rdobuilder |
bcd73a |
%define obsolete_ovs_versions 2.10,2.11,2.12,2.13,2.15,2.17
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
# Same as above, but enable ovs/ovn to be separate
|
|
rdobuilder |
bcd73a |
%define ovn_version 23.03
|
|
rdobuilder |
bcd73a |
%define obsolete_ovn_versions 2.10,2.11,2.12,2.13,-2021,22.03,22.06,22.09,22.12
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
# Lua macro to create a bunch of Obsoletes by splitting up the above
|
|
rdobuilder |
bcd73a |
# definition and substituting where there's an asterisk
|
|
rdobuilder |
bcd73a |
%{lua:
|
|
rdobuilder |
bcd73a |
function rdo_obsoletes(package, ver, obsoletes)
|
|
rdobuilder |
bcd73a |
local s
|
|
rdobuilder |
bcd73a |
local pkg
|
|
rdobuilder |
bcd73a |
pkg = string.gsub(package, "*", "")
|
|
rdobuilder |
bcd73a |
print("Obsoletes: "..pkg.." < "..ver.."\n")
|
|
rdobuilder |
bcd73a |
for s in string.gmatch(obsoletes, "[^,]+") do
|
|
rdobuilder |
bcd73a |
pkg = string.gsub(package, "*", s)
|
|
rdobuilder |
bcd73a |
print("Obsoletes: "..pkg.." < "..ver.."\n")
|
|
rdobuilder |
bcd73a |
end
|
|
rdobuilder |
bcd73a |
end
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
function ovs_obsoletes(package)
|
|
rdobuilder |
bcd73a |
rdo_obsoletes(package, rpm.expand("%ovs_version"), rpm.expand("%obsolete_ovs_versions"))
|
|
rdobuilder |
bcd73a |
end
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
function ovn_obsoletes(package)
|
|
rdobuilder |
bcd73a |
rdo_obsoletes(package, rpm.expand("%ovn_version"), rpm.expand("%obsolete_ovn_versions"))
|
|
rdobuilder |
bcd73a |
end}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
######## OPENVSWITCH PACKAGING ########
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
Name: rdo-openvswitch
|
|
rdobuilder |
bcd73a |
Epoch: 2
|
|
rdobuilder |
bcd73a |
Version: %{ovs_version}
|
|
rdobuilder |
bcd73a |
Release: 3%{?dist}
|
|
rdobuilder |
bcd73a |
Summary: Wrapper rpm to allow installing OVS with new versioning schemes
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
Group: System Environment/Daemons
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
URL: http://www.openvswitch.org
|
|
rdobuilder |
bcd73a |
BuildArch: noarch
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
Requires: openvswitch%{ovs_version}
|
|
rdobuilder |
bcd73a |
Requires: network-scripts-openvswitch%{ovs_version}
|
|
rdobuilder |
bcd73a |
Provides: openvswitch = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
Provides: rdo-openvswitch = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
Provides: rhosp-openvswitch = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("openvswitch*")}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("network-scripts-openvswitch*")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base openvswitch package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n python3-rdo-openvswitch
|
|
rdobuilder |
bcd73a |
Summary: wrapper for python-openvswitch rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: python3-openvswitch%{ovs_version}
|
|
rdobuilder |
bcd73a |
Provides: python3-openvswitch = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("python3-openvswitch*")}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("python2-openvswitch*")}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("python-openvswitch*")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n python3-rdo-openvswitch
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base python3-openvswitch package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package devel
|
|
rdobuilder |
bcd73a |
Summary: wrapper for openvswitch-devel rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: openvswitch%{ovs_version}-devel
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-devel = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("openvswitch*-devel")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description devel
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base openvswitch-devel package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package test
|
|
rdobuilder |
bcd73a |
Summary: wrapper for openvswitch-test rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: python3-rdo-openvswitch = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: openvswitch%{ovs_version}-test
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-test = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("openvswitch*-test")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description test
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base openvswitch-test package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n rdo-network-scripts-openvswitch
|
|
rdobuilder |
bcd73a |
Summary: wrapper for network-scripts-openvswitch rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: network-scripts-openvswitch%{ovs_version}
|
|
rdobuilder |
bcd73a |
Provides: network-scripts-openvswitch = %{?epoch:%{epoch}:}%{ovs_version}
|
|
rdobuilder |
bcd73a |
%{lua:ovs_obsoletes("network-scripts-openvswitch*")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n rdo-network-scripts-openvswitch
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base network-scripts-openvswitch package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
######## OVN PACKAGING ########
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n rdo-ovn
|
|
rdobuilder |
bcd73a |
Version: %{ovn_version}
|
|
rdobuilder |
bcd73a |
Summary: wrapper for ovn rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: openvswitch
|
|
rdobuilder |
bcd73a |
Requires: ovn%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: ovn = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-ovn-common = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: %{name}-ovn-common = %{?epoch:%{epoch}:}%{version}
|
|
rdobuilder |
bcd73a |
Obsoletes: %{name}-ovn-common < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Provides: rdo-ovn-common = %{?epoch:%{epoch}:}%{version}
|
|
rdobuilder |
bcd73a |
Obsoletes: rdo-ovn-common < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
# OVN packaging should do this, but doesn't?
|
|
rdobuilder |
bcd73a |
# Obsoletes: openvswitch-ovn-common < ...
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("ovn*")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n rdo-ovn
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base ovn package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n rdo-ovn-central
|
|
rdobuilder |
bcd73a |
Version: %{ovn_version}
|
|
rdobuilder |
bcd73a |
Summary: wrapper for openvswitch-ovn-central rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: rdo-ovn = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: ovn%{ovn_version}-central
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-ovn-central = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: openvswitch-ovn-central < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: ovn-central = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-central < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: %{name}-ovn-central = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: %{name}-ovn-central < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-central < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
# OVN packaging should do this, but doesn't?
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("openvswitch*-ovn-central")}
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("ovn*-central")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n rdo-ovn-central
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base openvswitch-ovn-central package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n rdo-ovn-host
|
|
rdobuilder |
bcd73a |
Version: %{ovn_version}
|
|
rdobuilder |
bcd73a |
Summary: wrapper for openvswitch-ovn-host rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: rdo-ovn = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: ovn%{ovn_version}-host
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-ovn-host = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: openvswitch-ovn-host < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: ovn-host = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-host < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: %{name}-ovn-host = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: %{name}-ovn-host < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-host < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("openvswitch*-ovn-host")}
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("ovn*-host")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n rdo-ovn-host
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base openvswitch-ovn-host package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%package -n rdo-ovn-vtep
|
|
rdobuilder |
bcd73a |
Version: %{ovn_version}
|
|
rdobuilder |
bcd73a |
Summary: wrapper for openvswitch-ovn-vtep rpm
|
|
rdobuilder |
bcd73a |
License: Public domain
|
|
rdobuilder |
bcd73a |
Requires: rdo-ovn = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Requires: ovn%{ovn_version}-vtep
|
|
rdobuilder |
bcd73a |
Provides: openvswitch-ovn-vtep = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: openvswitch-ovn-vtep < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: ovn-vtep = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-vtep < %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Provides: %{name}-ovn-vtep = %{?epoch:%{epoch}:}%{ovn_version}
|
|
rdobuilder |
bcd73a |
Obsoletes: %{name}-ovn-vtep < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
Obsoletes: ovn-vtep < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("openvswitch*-ovn-vtep")}
|
|
rdobuilder |
bcd73a |
%{lua:ovn_obsoletes("ovn*-vtep")}
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%description -n rdo-ovn-vtep
|
|
rdobuilder |
bcd73a |
Wrapper rpm for the base ovn-vtep package
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%setup -q
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%build
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%files -n rdo-openvswitch
|
|
rdobuilder |
bcd73a |
%files -n python3-rdo-openvswitch
|
|
rdobuilder |
bcd73a |
%files devel
|
|
rdobuilder |
bcd73a |
%files test
|
|
rdobuilder |
bcd73a |
%files -n rdo-network-scripts-openvswitch
|
|
rdobuilder |
bcd73a |
%files -n rdo-ovn
|
|
rdobuilder |
bcd73a |
%files -n rdo-ovn-central
|
|
rdobuilder |
bcd73a |
%files -n rdo-ovn-host
|
|
rdobuilder |
bcd73a |
%files -n rdo-ovn-vtep
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
%changelog
|
|
rdobuilder |
bcd73a |
* Mon Jul 10 2023 Yatin Karel <ykarel@redhat.com> - 3.1-3
|
|
rdobuilder |
bcd73a |
- Update to ovn23.03
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Fri Mar 24 2023 Alfredo Moralejo <amoralej@redhat.com> - 3.1-2
|
|
rdobuilder |
bcd73a |
- Update to ovn22.12
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Wed Mar 01 2023 Alfredo Moralejo <amoralej@redhat.com> - 3.1-1
|
|
rdobuilder |
bcd73a |
- Update OpenvSwitch to 3.1
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Fri Nov 25 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.17.4
|
|
rdobuilder |
bcd73a |
- Update to ovn22.09
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Wed Sep 14 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.17-3
|
|
rdobuilder |
bcd73a |
- Obsolete network-scripts-openvswitch lower than 2.17
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Tue Jul 19 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.17-2
|
|
rdobuilder |
bcd73a |
- Update to ovn22.06
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Fri Jun 24 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.17-1
|
|
rdobuilder |
bcd73a |
- Update to openvswitch2.17 and ovn22.03
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Fri Oct 01 2021 Alfredo Moralejo <amoralej@redhat.com> - 2.15-2
|
|
rdobuilder |
bcd73a |
- Re-add network-scripts-openvswitch2.15 as dependency for rdo-openvswitch.
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Tue May 25 2021 Yatin Karel <ykarel@redhat.com> - 2.15-1
|
|
rdobuilder |
bcd73a |
- Update to ovs 2.15 and ovn 2021
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Fri Oct 09 2020 Alfredo Moralejo <amoralej@redhat.xom> - 2.13-2
|
|
rdobuilder |
bcd73a |
- Adds wrapper subpackage for network-scripts-openvswitch
|
|
rdobuilder |
bcd73a |
|
|
rdobuilder |
bcd73a |
* Mon Sep 14 2020 Yatin Karel <ykarel@redhat.com> - 2.13-1
|
|
rdobuilder |
bcd73a |
- RDO Wrapper for OVS/OVN 2.13 builds from Fast DataPath
|
|
rdobuilder |
bcd73a |
|