Split out the network-scripts

The network-scripts are now removed from the RHEL 8 base installation (and
possibly Fedora too). Let's remove them, so that we don't end up in a situation
where we install unneeded files into an unowned directory.

The boolean weak dependency is utilized to make life easier for those still
relying on the legacy network service and to avoid breakage on upgrades.
f38
Lubomir Rintel 7 years ago
parent 936ab4a8ef
commit 5f366f19be

@ -40,7 +40,7 @@ Name: openvswitch
Summary: Open vSwitch daemon/database/utilities
URL: http://www.openvswitch.org/
Version: 2.9.2
Release: 3%{?commit0:.%{date}git%{shortcommit0}}%{?dist}
Release: 4%{?commit0:.%{date}git%{shortcommit0}}%{?dist}
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
# lib/sflow*.[ch] files are SISSL
@ -153,6 +153,16 @@ License: ASL 2.0
This provides shared library, libopenswitch.so and the openvswitch header
files needed to build an external application.
%package -n network-scripts-%{name}
Summary: Open vSwitch legacy network service support
License: ASL 2.0
Requires: network-scripts
Supplements: (%{name} and network-scripts)
%description -n network-scripts-%{name}
This provides the ifup and ifdown scripts for use with the legacy network
service.
%package ovn-central
Summary: Open vSwitch - Open Virtual Network support
License: ASL 2.0
@ -526,6 +536,10 @@ chown -R openvswitch:openvswitch /etc/openvswitch
%{_includedir}/ovn/*
%exclude %{_libdir}/*.la
%files -n network-scripts-%{name}
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
%files
%defattr(-,openvswitch,openvswitch)
%dir %{_sysconfdir}/openvswitch
@ -543,8 +557,6 @@ chown -R openvswitch:openvswitch /etc/openvswitch
%{_unitdir}/ovs-vswitchd.service
%{_unitdir}/ovs-delete-transient-ports.service
%{_datadir}/openvswitch/scripts/openvswitch.init
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
%{_datadir}/openvswitch/bugtool-plugins/
%{_datadir}/openvswitch/scripts/ovs-bugtool-*
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
@ -641,6 +653,9 @@ chown -R openvswitch:openvswitch /etc/openvswitch
%{_unitdir}/ovn-controller-vtep.service
%changelog
* Mon Aug 06 2018 Lubomir Rintel <lkundrak@v3.sk> - 2.9.2-4
- Split out the network-scripts
* Wed Aug 01 2018 Timothy Redaelli <tredaelli@redhat.com> - 2.9.2-3
- Build OVS as shared library
- Build the C json native extension for Python (60x faster)

Loading…
Cancel
Save