From 4fa650a9696857ede07a2bde0cd190b0b945e6878f6b4848dfb29c9818aca0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Mon, 27 Oct 2014 23:00:39 +0000 Subject: [PATCH] Accepting request 258581 from home:cbosdonnat:branches:Virtualization - Added package wireshark-plugin to provide the wireshark dissector for the libvirt RPC protocol OBS-URL: https://build.opensuse.org/request/show/258581 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=414 --- libvirt.changes | 6 ++++++ libvirt.spec | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/libvirt.changes b/libvirt.changes index 8ae64ea..491d7d1 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 27 21:20:08 UTC 2014 - cbosdonnat@suse.com + +- Added package wireshark-plugin to provide the wireshark dissector + for the libvirt RPC protocol + ------------------------------------------------------------------- Thu Oct 2 15:28:40 MDT 2014 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index df04935..2caee06 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -423,6 +423,9 @@ BuildRequires: systemtap-sdt-devel %if %{with_numad} BuildRequires: numad %endif +%if 0%{?suse_version} >= 1210 +BuildRequires: wireshark-devel +%endif Source0: %{name}-%{version}.tar.gz Source1: %{name}-%{version}.tar.gz.asc @@ -949,6 +952,17 @@ connect a user to an LXC container when they login, by switching namespaces. %endif +# Older version contain too old wireshark +%if 0%{?suse_version} >= 1210 +%package -n wireshark-libvirt +Summary: Wireshark plugin for Libvirt RPC protocol +Group: Productivity/Networking/Diagnostic +Requires: wireshark + +%description -n wireshark-libvirt +Provides a dissector for the libvirt RPC protocol to help debugging it. +%endif + %prep %setup -q %patch150 -p1 @@ -1190,6 +1204,9 @@ do done cp examples/lxcconvert/virt-lxc-convert $RPM_BUILD_ROOT%{_bindir} rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +%if 0%{?suse_version} >= 1210 +rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la +%endif rm -f $RPM_BUILD_ROOT%{_libdir}/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.a @@ -1849,4 +1866,10 @@ fi %{_bindir}/virt-login-shell %endif +%if 0%{?suse_version} >= 1210 +%files -n wireshark-libvirt +%defattr(-, root, root) +%{_libdir}/wireshark/plugins/*/libvirt.so +%endif + %changelog