mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
spec: Split libvirt-client
Currently, we have libvirt-client library which serves as a collection point for all the libraries and client binaries we have. Therefore we have couple of silly dependencies, for instance libvirt-daemon depends on libvirt-client. Only because the shared library is in the client package. To solve this, new package libvirt-libs is introduced where all the libraries are going to live. The client package is then set to depend on this new package, just like the rest of packages that suffer the same problem. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
660468b1a3
commit
70b4f0e719
@ -256,6 +256,7 @@ Requires: libvirt-daemon-driver-storage = %{version}-%{release}
|
|||||||
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
||||||
Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
|
Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
|
||||||
Requires: libvirt-client = %{version}-%{release}
|
Requires: libvirt-client = %{version}-%{release}
|
||||||
|
Requires: libvirt-libs = %{version}-%{release}
|
||||||
|
|
||||||
# All build-time requirements. Run-time requirements are
|
# All build-time requirements. Run-time requirements are
|
||||||
# listed against each sub-RPM
|
# listed against each sub-RPM
|
||||||
@ -430,8 +431,8 @@ Group: Development/Libraries
|
|||||||
# All runtime requirements for the libvirt package (runtime requrements
|
# All runtime requirements for the libvirt package (runtime requrements
|
||||||
# for subpackages are listed later in those subpackages)
|
# for subpackages are listed later in those subpackages)
|
||||||
|
|
||||||
# The client side, i.e. shared libs and virsh are in a subpackage
|
# The client side, i.e. shared libs are in a subpackage
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
# for modprobe of pci devices
|
# for modprobe of pci devices
|
||||||
Requires: module-init-tools
|
Requires: module-init-tools
|
||||||
@ -822,13 +823,11 @@ capabilities of VirtualBox
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package client
|
%package client
|
||||||
Summary: Client side library and utilities of the libvirt library
|
Summary: Client side utilities of the libvirt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires: readline
|
Requires: readline
|
||||||
Requires: ncurses
|
Requires: ncurses
|
||||||
# So remote clients can access libvirt over SSH tunnel
|
|
||||||
# (client invokes 'nc' against the UNIX socket on the server)
|
|
||||||
Requires: nc
|
|
||||||
# Needed by /usr/libexec/libvirt-guests.sh script.
|
# Needed by /usr/libexec/libvirt-guests.sh script.
|
||||||
Requires: gettext
|
Requires: gettext
|
||||||
# Needed by virt-pki-validate script.
|
# Needed by virt-pki-validate script.
|
||||||
@ -837,21 +836,31 @@ Requires: gnutls-utils
|
|||||||
# Needed for probing the power management features of the host.
|
# Needed for probing the power management features of the host.
|
||||||
Requires: pm-utils
|
Requires: pm-utils
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%description client
|
||||||
|
The client binaries needed to access the virtualization
|
||||||
|
capabilities of recent versions of Linux (and other OSes).
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Summary: Client side libraries
|
||||||
|
Group: Development/Libraries
|
||||||
|
# So remote clients can access libvirt over SSH tunnel
|
||||||
|
# (client invokes 'nc' against the UNIX socket on the server)
|
||||||
|
Requires: nc
|
||||||
Requires: cyrus-sasl
|
Requires: cyrus-sasl
|
||||||
# Not technically required, but makes 'out-of-box' config
|
# Not technically required, but makes 'out-of-box' config
|
||||||
# work correctly & doesn't have onerous dependencies
|
# work correctly & doesn't have onerous dependencies
|
||||||
Requires: cyrus-sasl-md5
|
Requires: cyrus-sasl-md5
|
||||||
|
|
||||||
%description client
|
%description libs
|
||||||
Shared libraries and client binaries needed to access to the
|
Shared libraries for accessing the libvirt daemon.
|
||||||
virtualization capabilities of recent versions of Linux (and other OSes).
|
|
||||||
|
|
||||||
%if %{with_wireshark}
|
%if %{with_wireshark}
|
||||||
%package wireshark
|
%package wireshark
|
||||||
Summary: Wireshark dissector plugin for libvirt RPC transactions
|
Summary: Wireshark dissector plugin for libvirt RPC transactions
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: wireshark >= 1.12.6-4
|
Requires: wireshark >= 1.12.6-4
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description wireshark
|
%description wireshark
|
||||||
Wireshark dissector plugin for better analysis of libvirt RPC traffic.
|
Wireshark dissector plugin for better analysis of libvirt RPC traffic.
|
||||||
@ -861,7 +870,7 @@ Wireshark dissector plugin for better analysis of libvirt RPC traffic.
|
|||||||
%package login-shell
|
%package login-shell
|
||||||
Summary: Login shell for connecting users to an LXC container
|
Summary: Login shell for connecting users to an LXC container
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description login-shell
|
%description login-shell
|
||||||
Provides the set-uid virt-login-shell binary that is used to
|
Provides the set-uid virt-login-shell binary that is used to
|
||||||
@ -872,7 +881,7 @@ namespaces.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries, includes, etc. to compile with the libvirt library
|
Summary: Libraries, includes, etc. to compile with the libvirt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -886,7 +895,7 @@ Requires: sanlock >= 2.4
|
|||||||
#for virt-sanlock-cleanup require augeas
|
#for virt-sanlock-cleanup require augeas
|
||||||
Requires: augeas
|
Requires: augeas
|
||||||
Requires: %{name}-daemon = %{version}-%{release}
|
Requires: %{name}-daemon = %{version}-%{release}
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description lock-sanlock
|
%description lock-sanlock
|
||||||
Includes the Sanlock lock manager plugin for the QEMU
|
Includes the Sanlock lock manager plugin for the QEMU
|
||||||
@ -1741,11 +1750,7 @@ exit 0
|
|||||||
%attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
|
%attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files client -f %{name}.lang
|
%files client
|
||||||
%doc COPYING COPYING.LESSER
|
|
||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
|
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf
|
|
||||||
%{_mandir}/man1/virsh.1*
|
%{_mandir}/man1/virsh.1*
|
||||||
%{_mandir}/man1/virt-admin.1*
|
%{_mandir}/man1/virt-admin.1*
|
||||||
%{_mandir}/man1/virt-xml-validate.1*
|
%{_mandir}/man1/virt-xml-validate.1*
|
||||||
@ -1756,17 +1761,31 @@ exit 0
|
|||||||
%{_bindir}/virt-xml-validate
|
%{_bindir}/virt-xml-validate
|
||||||
%{_bindir}/virt-pki-validate
|
%{_bindir}/virt-pki-validate
|
||||||
%{_bindir}/virt-host-validate
|
%{_bindir}/virt-host-validate
|
||||||
%{_libdir}/libvirt.so.*
|
|
||||||
%{_libdir}/libvirt-qemu.so.*
|
|
||||||
%{_libdir}/libvirt-lxc.so.*
|
|
||||||
%{_libdir}/libvirt-admin.so.*
|
|
||||||
|
|
||||||
%{_datadir}/systemtap/tapset/libvirt_probes*.stp
|
%{_datadir}/systemtap/tapset/libvirt_probes*.stp
|
||||||
%{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
|
%{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
|
||||||
%{_datadir}/systemtap/tapset/libvirt_functions.stp
|
%{_datadir}/systemtap/tapset/libvirt_functions.stp
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with_systemd}
|
||||||
|
%{_unitdir}/libvirt-guests.service
|
||||||
|
%else
|
||||||
|
%{_sysconfdir}/rc.d/init.d/libvirt-guests
|
||||||
|
%endif
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
|
||||||
|
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
|
||||||
|
|
||||||
|
%files libs -f %{name}.lang
|
||||||
|
%doc COPYING COPYING.LESSER
|
||||||
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf
|
||||||
|
%{_libdir}/libvirt.so.*
|
||||||
|
%{_libdir}/libvirt-qemu.so.*
|
||||||
|
%{_libdir}/libvirt-lxc.so.*
|
||||||
|
%{_libdir}/libvirt-admin.so.*
|
||||||
%dir %{_datadir}/libvirt/
|
%dir %{_datadir}/libvirt/
|
||||||
%dir %{_datadir}/libvirt/schemas/
|
%dir %{_datadir}/libvirt/schemas/
|
||||||
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
|
||||||
|
|
||||||
%{_datadir}/libvirt/schemas/basictypes.rng
|
%{_datadir}/libvirt/schemas/basictypes.rng
|
||||||
%{_datadir}/libvirt/schemas/capability.rng
|
%{_datadir}/libvirt/schemas/capability.rng
|
||||||
@ -1787,15 +1806,6 @@ exit 0
|
|||||||
%{_datadir}/libvirt/cpu_map.xml
|
%{_datadir}/libvirt/cpu_map.xml
|
||||||
%{_datadir}/libvirt/libvirtLogo.png
|
%{_datadir}/libvirt/libvirtLogo.png
|
||||||
|
|
||||||
%if %{with_systemd}
|
|
||||||
%{_unitdir}/libvirt-guests.service
|
|
||||||
%else
|
|
||||||
%{_sysconfdir}/rc.d/init.d/libvirt-guests
|
|
||||||
%endif
|
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
|
|
||||||
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
|
|
||||||
%dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
|
|
||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
||||||
|
|
||||||
%if %{with_wireshark}
|
%if %{with_wireshark}
|
||||||
|
Loading…
Reference in New Issue
Block a user