Update to 1.2.2 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2014-03-03 11:06:46 +00:00
parent 442040caac
commit 1b8b7567b1
2 changed files with 78 additions and 7 deletions

View File

@ -79,6 +79,7 @@
%define with_hyperv 0%{!?_without_hyperv:1} %define with_hyperv 0%{!?_without_hyperv:1}
%define with_xenapi 0%{!?_without_xenapi:1} %define with_xenapi 0%{!?_without_xenapi:1}
%define with_parallels 0%{!?_without_parallels:1} %define with_parallels 0%{!?_without_parallels:1}
# No test for bhyve, because it does not build on Linux
# Then the secondary host drivers, which run inside libvirtd # Then the secondary host drivers, which run inside libvirtd
%define with_interface 0%{!?_without_interface:%{server_drivers}} %define with_interface 0%{!?_without_interface:%{server_drivers}}
@ -98,7 +99,7 @@
%else %else
%define with_storage_sheepdog 0 %define with_storage_sheepdog 0
%endif %endif
%if 0%{?fedora} >= 19 %if 0%{?fedora} >= 19 || 0%{?rhel} >= 6
%define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}} %define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}}
%else %else
%define with_storage_gluster 0 %define with_storage_gluster 0
@ -129,6 +130,8 @@
%define with_numad 0%{!?_without_numad:0} %define with_numad 0%{!?_without_numad:0}
%define with_firewalld 0%{!?_without_firewalld:0} %define with_firewalld 0%{!?_without_firewalld:0}
%define with_libssh2 0%{!?_without_libssh2:0} %define with_libssh2 0%{!?_without_libssh2:0}
%define with_wireshark 0%{!?_without_wireshark:0}
%define with_systemd_daemon 0%{!?_without_systemd_daemon:0}
# Non-server/HV driver defaults which are always enabled # Non-server/HV driver defaults which are always enabled
%define with_sasl 0%{!?_without_sasl:1} %define with_sasl 0%{!?_without_sasl:1}
@ -152,6 +155,13 @@
%define with_numactl 0 %define with_numactl 0
%endif %endif
# libgfapi is built only on x86_64 on rhel
%ifnarch x86_64
%if 0%{?rhel} >= 6
%define with_storage_gluster 0
%endif
%endif
# RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
# or HyperV. # or HyperV.
@ -171,6 +181,7 @@
# Fedora has systemd, libvirt still used sysvinit there. # Fedora has systemd, libvirt still used sysvinit there.
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
%define with_systemd 1 %define with_systemd 1
%define with_systemd_daemon 1
%endif %endif
# Fedora 18 / RHEL-7 are first where firewalld support is enabled # Fedora 18 / RHEL-7 are first where firewalld support is enabled
@ -269,6 +280,11 @@
%define with_libssh2 0%{!?_without_libssh2:1} %define with_libssh2 0%{!?_without_libssh2:1}
%endif %endif
# Enable wireshark plugins for all distros shipping libvirt 1.2.2 or newer
%if 0%{?fedora} >= 21
%define with_wireshark 0%{!?_without_wireshark:1}
%endif
# Disable some drivers when building without libvirt daemon. # Disable some drivers when building without libvirt daemon.
# The logic is the same as in configure.ac # The logic is the same as in configure.ac
%if ! %{with_libvirtd} %if ! %{with_libvirtd}
@ -371,8 +387,8 @@
Summary: Library providing a simple virtualization API Summary: Library providing a simple virtualization API
Name: libvirt Name: libvirt
Version: 1.2.1 Version: 1.2.2
Release: 2%{?dist}%{?extra_release} Release: 1%{?dist}%{?extra_release}
License: LGPLv2+ License: LGPLv2+
Group: Development/Libraries Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -414,7 +430,9 @@ Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release} Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
%endif %endif
%if %{with_interface}
Requires: libvirt-daemon-driver-interface = %{version}-%{release} Requires: libvirt-daemon-driver-interface = %{version}-%{release}
%endif
Requires: libvirt-daemon-driver-secret = %{version}-%{release} Requires: libvirt-daemon-driver-secret = %{version}-%{release}
Requires: libvirt-daemon-driver-storage = %{version}-%{release} Requires: libvirt-daemon-driver-storage = %{version}-%{release}
Requires: libvirt-daemon-driver-network = %{version}-%{release} Requires: libvirt-daemon-driver-network = %{version}-%{release}
@ -436,6 +454,9 @@ BuildRequires: python
%if %{with_systemd} %if %{with_systemd}
BuildRequires: systemd-units BuildRequires: systemd-units
%endif %endif
%if %{with_systemd_daemon}
BuildRequires: systemd-devel
%endif
%if %{with_xen} || %{with_libxl} %if %{with_xen} || %{with_libxl}
BuildRequires: xen-devel BuildRequires: xen-devel
%endif %endif
@ -550,7 +571,7 @@ BuildRequires: parted-devel
BuildRequires: e2fsprogs-devel BuildRequires: e2fsprogs-devel
%endif %endif
%endif %endif
%if %{with_storage_mpath} %if %{with_storage_mpath} || %{with_storage_disk}
# For Multipath support # For Multipath support
%if 0%{?rhel} == 5 %if 0%{?rhel} == 5
# Broken RHEL-5 packaging has header files in main RPM :-( # Broken RHEL-5 packaging has header files in main RPM :-(
@ -558,13 +579,18 @@ BuildRequires: device-mapper
%else %else
BuildRequires: device-mapper-devel BuildRequires: device-mapper-devel
%endif %endif
%if %{with_storage_rbd} %endif
%if %{with_storage_rbd}
BuildRequires: ceph-devel BuildRequires: ceph-devel
%endif
%endif %endif
%if %{with_storage_gluster} %if %{with_storage_gluster}
%if 0%{?rhel} >= 6
BuildRequires: glusterfs-api-devel >= 3.4.0
BuildRequires: glusterfs-devel >= 3.4.0
%else
BuildRequires: glusterfs-api-devel >= 3.4.1 BuildRequires: glusterfs-api-devel >= 3.4.1
BuildRequires: glusterfs-devel >= 3.4.1 BuildRequires: glusterfs-devel >= 3.4.1
%endif
%endif %endif
%if %{with_numactl} %if %{with_numactl}
# For QEMU/LXC numa info # For QEMU/LXC numa info
@ -631,6 +657,10 @@ BuildRequires: scrub
BuildRequires: numad BuildRequires: numad
%endif %endif
%if %{with_wireshark}
BuildRequires: wireshark-devel
%endif
Provides: bundled(gnulib) Provides: bundled(gnulib)
%description %description
@ -708,6 +738,9 @@ Summary: Default configuration files for the libvirtd daemon
Group: Development/Libraries Group: Development/Libraries
Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon = %{version}-%{release}
%if %{with_driver_modules}
Requires: libvirt-daemon-driver-network = %{version}-%{release}
%endif
%description daemon-config-network %description daemon-config-network
Default configuration files for setting up NAT based networking Default configuration files for setting up NAT based networking
@ -719,6 +752,9 @@ Summary: Network filter configuration files for the libvirtd daemon
Group: Development/Libraries Group: Development/Libraries
Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon = %{version}-%{release}
%if %{with_driver_modules}
Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
%endif
%description daemon-config-nwfilter %description daemon-config-nwfilter
Network filter configuration files for cleaning guest traffic Network filter configuration files for cleaning guest traffic
@ -1115,6 +1151,17 @@ Requires: cyrus-sasl-md5
Shared libraries and client binaries needed to access to the Shared libraries and client binaries needed to access to the
virtualization capabilities of recent versions of Linux (and other OSes). virtualization capabilities of recent versions of Linux (and other OSes).
%if %{with_wireshark}
%package wireshark
Summary: Wireshark dissector plugin for libvirt RPC transactions
Group: Development/Libraries
Requires: wireshark
Requires: %{name}-client = %{version}-%{release}
%description wireshark
Wireshark dissector plugin for better analysis of libvirt RPC traffic.
%endif
%if %{with_lxc} %if %{with_lxc}
%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
@ -1340,6 +1387,14 @@ driver
%define _with_firewalld --with-firewalld %define _with_firewalld --with-firewalld
%endif %endif
%if ! %{with_wireshark}
%define _without_wireshark --without-wireshark-dissector
%endif
%if ! %{with_systemd_daemon}
%define _without_systemd_daemon --without-systemd-daemon
%endif
%define when %(date +"%%F-%%T") %define when %(date +"%%F-%%T")
%define where %(hostname) %define where %(hostname)
%define who %{?packager}%{!?packager:Unknown} %define who %{?packager}%{!?packager:Unknown}
@ -1383,6 +1438,7 @@ driver
%{?_without_hyperv} \ %{?_without_hyperv} \
%{?_without_vmware} \ %{?_without_vmware} \
%{?_without_parallels} \ %{?_without_parallels} \
--without-bhyve \
%{?_without_interface} \ %{?_without_interface} \
%{?_without_network} \ %{?_without_network} \
%{?_with_rhel5_api} \ %{?_with_rhel5_api} \
@ -1412,6 +1468,8 @@ driver
%{?_without_dtrace} \ %{?_without_dtrace} \
%{?_without_driver_modules} \ %{?_without_driver_modules} \
%{?_with_firewalld} \ %{?_with_firewalld} \
%{?_without_wireshark} \
%{?_without_systemd_daemon} \
%{with_packager} \ %{with_packager} \
%{with_packager_version} \ %{with_packager_version} \
--with-qemu-user=%{qemu_user} \ --with-qemu-user=%{qemu_user} \
@ -1442,6 +1500,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
%endif %endif
%if %{with_wireshark}
rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la
%endif
%if %{with_network} %if %{with_network}
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/ install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
@ -2117,6 +2178,11 @@ exit 0
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
%endif %endif
%if %{with_wireshark}
%files wireshark
%{_libdir}/wireshark/plugins/*/libvirt.so
%endif
%if %{with_lxc} %if %{with_lxc}
%files login-shell %files login-shell
%attr(4750, root, virtlogin) %{_bindir}/virt-login-shell %attr(4750, root, virtlogin) %{_bindir}/virt-login-shell
@ -2148,6 +2214,11 @@ exit 0
%doc examples/systemtap %doc examples/systemtap
%changelog %changelog
* Mon Mar 3 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.2-1
- Update to 1.2.2 release
- Add wireshark plugin sub-RPM
- Add missing sub-RPMs deps for config packages
* Mon Jan 27 2014 Cole Robinson <crobinso@redhat.com> - 1.2.1-2 * Mon Jan 27 2014 Cole Robinson <crobinso@redhat.com> - 1.2.1-2
- Rebuild for openwsman soname bump - Rebuild for openwsman soname bump

View File

@ -1 +1 @@
cce374220f67895afb6331bd2ddedbfd libvirt-1.2.1.tar.gz 592958ad1ddce7574d8cb0a31e635acd libvirt-1.2.2.tar.gz