RHEL 8 is the only version that has 'network-scripts' package, and so the only version where 'network-scripts-openvswitch' is needed / can be installed.
Keeping the checks in ranges instead of == 8, as it's easier to reason with negatives this way. Signed-off-by: Ilya Maximets <[email protected]> --- rhel/openvswitch-fedora.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 38fbee727..838054968 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -148,7 +148,7 @@ License: ASL 2.0 This provides shared library, libopenswitch.so and the openvswitch header files needed to build an external application. -%if 0%{?rhel} > 7 || (0%{?fedora} > 28 && 0%{?fedora} < 41) +%if (0%{?rhel} > 7 && 0%{?rhel} < 9) || (0%{?fedora} > 28 && 0%{?fedora} < 41) %package -n network-scripts-%{name} Summary: Open vSwitch legacy network service support License: ASL 2.0 @@ -436,7 +436,7 @@ fi %exclude %{_libdir}/*.la %exclude %{_libdir}/*.a -%if 0%{?rhel} > 7 || (0%{?fedora} > 28 && 0%{?fedora} < 41) +%if (0%{?rhel} > 7 && 0%{?rhel} < 9) || (0%{?fedora} > 28 && 0%{?fedora} < 41) %files -n network-scripts-%{name} %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs @@ -463,7 +463,7 @@ fi %{_unitdir}/ovs-vswitchd.service %{_unitdir}/ovs-delete-transient-ports.service %{_datadir}/openvswitch/scripts/openvswitch.init -%if ! (0%{?rhel} > 7 || (0%{?fedora} > 28 && 0%{?fedora} < 41)) +%if ! ((0%{?rhel} > 7 && 0%{?rhel} < 9) || (0%{?fedora} > 28 && 0%{?fedora} < 41)) %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs %endif -- 2.52.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
