From 19ee88ef0fd50de213b64d03c565d989f67ccdc5 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Mon, 21 Oct 2024 21:23:57 +0200 Subject: [PATCH] debian, rhel: Move ovs-flowviz and the man page to appropriate places. ovs-flowviz script should be shipped in bindir in fedora and the man pages should be shipped in the same python3-openvswitch package for both debian and fedora. Acked-by: Eelco Chaudron Signed-off-by: Ilya Maximets --- debian/automake.mk | 1 + debian/python3-openvswitch.install | 1 + rhel/openvswitch-fedora.spec.in | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 debian/python3-openvswitch.install diff --git a/debian/automake.mk b/debian/automake.mk index 5fcefea91..fe8febdd3 100644 --- a/debian/automake.mk +++ b/debian/automake.mk @@ -58,6 +58,7 @@ EXTRA_DIST += \ debian/ovs-systemd-reload \ debian/patches/ovs-ctl-ipsec.patch \ debian/patches/series \ + debian/python3-openvswitch.install \ debian/rules \ debian/source/format \ debian/source/lintian-overrides \ diff --git a/debian/python3-openvswitch.install b/debian/python3-openvswitch.install new file mode 100644 index 000000000..e1e8c3a6e --- /dev/null +++ b/debian/python3-openvswitch.install @@ -0,0 +1 @@ +usr/share/man/man8/ovs-flowviz.8 diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index a5cd46011..2ee5d3e72 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -252,6 +252,9 @@ install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib} cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* \ $RPM_BUILD_ROOT%{python3_sitelib} +mv $RPM_BUILD_ROOT%{python3_sitelib}/ovs/flowviz/ovs-flowviz \ + $RPM_BUILD_ROOT/%{_bindir}/ovs-flowviz + rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch @@ -405,6 +408,8 @@ fi %{_datadir}/selinux/packages/%{name}/openvswitch-custom.pp %files -n python3-openvswitch +%{_bindir}/ovs-flowviz +%{_mandir}/man8/ovs-flowviz.8* %{python3_sitelib}/ovs %files test @@ -507,7 +512,6 @@ fi %{_mandir}/man8/ovs-ctl.8* %{_mandir}/man8/ovs-dpctl.8* %{_mandir}/man8/ovs-dpctl-top.8* -%{_mandir}/man8/ovs-flowviz.8* %{_mandir}/man8/ovs-kmod-ctl.8* %{_mandir}/man8/ovs-ofctl.8* %{_mandir}/man8/ovs-pki.8*