Skip to content

Commit

Permalink
debian, rhel: Move ovs-flowviz and the man page to appropriate places.
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Oct 21, 2024
1 parent 6e82591 commit 4a1a36a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions debian/python3-openvswitch.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/share/man/man8/ovs-flowviz.8
6 changes: 5 additions & 1 deletion rhel/openvswitch-fedora.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,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
Expand Down Expand Up @@ -399,6 +402,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
Expand Down Expand Up @@ -501,7 +506,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*
Expand Down

0 comments on commit 4a1a36a

Please sign in to comment.