Update to 1.3.0 release
This commit is contained in:
parent
281508ec99
commit
4a9c74e91d
54
libvirt.spec
54
libvirt.spec
@ -377,7 +377,7 @@
|
|||||||
|
|
||||||
Summary: Library providing a simple virtualization API
|
Summary: Library providing a simple virtualization API
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: 1.2.21
|
Version: 1.3.0
|
||||||
Release: 1%{?dist}%{?extra_release}
|
Release: 1%{?dist}%{?extra_release}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -1565,8 +1565,11 @@ mv $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.so \
|
|||||||
$RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/libvirt.so
|
$RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/libvirt.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Temporarily get rid of not-installed libvirt-admin.so
|
# Temporarily get rid of not-installed admin-related files
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-admin.so
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-admin.so
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_bindir}/virt-admin
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-admin.1*
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/libvirt-admin.conf
|
||||||
|
|
||||||
%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/
|
||||||
@ -1690,12 +1693,13 @@ exit 0
|
|||||||
|
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%if %{with_systemd_macros}
|
%if %{with_systemd_macros}
|
||||||
%systemd_post virtlockd.socket libvirtd.service libvirtd.socket
|
%systemd_post virtlockd.socket virtlogd.socket libvirtd.service libvirtd.socket
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
# Initial installation
|
# Initial installation
|
||||||
/bin/systemctl enable \
|
/bin/systemctl enable \
|
||||||
virtlockd.socket \
|
virtlockd.socket \
|
||||||
|
virtlogd.socket \
|
||||||
libvirtd.service >/dev/null 2>&1 || :
|
libvirtd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
@ -1711,24 +1715,29 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
/sbin/chkconfig --add libvirtd
|
/sbin/chkconfig --add libvirtd
|
||||||
|
/sbin/chkconfig --add virtlogd
|
||||||
/sbin/chkconfig --add virtlockd
|
/sbin/chkconfig --add virtlockd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun daemon
|
%preun daemon
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%if %{with_systemd_macros}
|
%if %{with_systemd_macros}
|
||||||
%systemd_preun libvirtd.socket libvirtd.service virtlockd.socket virtlockd.service
|
%systemd_preun libvirtd.socket libvirtd.service virtlogd.socket virtlogd.service virtlockd.socket virtlockd.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
# Package removal, not upgrade
|
# Package removal, not upgrade
|
||||||
/bin/systemctl --no-reload disable \
|
/bin/systemctl --no-reload disable \
|
||||||
libvirtd.socket \
|
libvirtd.socket \
|
||||||
libvirtd.service \
|
libvirtd.service \
|
||||||
|
virtlogd.socket \
|
||||||
|
virtlogd.service \
|
||||||
virtlockd.socket \
|
virtlockd.socket \
|
||||||
virtlockd.service > /dev/null 2>&1 || :
|
virtlockd.service > /dev/null 2>&1 || :
|
||||||
/bin/systemctl stop \
|
/bin/systemctl stop \
|
||||||
libvirtd.socket \
|
libvirtd.socket \
|
||||||
libvirtd.service \
|
libvirtd.service \
|
||||||
|
virtlogd.socket \
|
||||||
|
virtlogd.service \
|
||||||
virtlockd.socket \
|
virtlockd.socket \
|
||||||
virtlockd.service > /dev/null 2>&1 || :
|
virtlockd.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
@ -1737,6 +1746,8 @@ fi
|
|||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/service libvirtd stop 1>/dev/null 2>&1
|
/sbin/service libvirtd stop 1>/dev/null 2>&1
|
||||||
/sbin/chkconfig --del libvirtd
|
/sbin/chkconfig --del libvirtd
|
||||||
|
/sbin/service virtlogd stop 1>/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del virtlogd
|
||||||
/sbin/service virtlockd stop 1>/dev/null 2>&1
|
/sbin/service virtlockd stop 1>/dev/null 2>&1
|
||||||
/sbin/chkconfig --del virtlockd
|
/sbin/chkconfig --del virtlockd
|
||||||
fi
|
fi
|
||||||
@ -1747,11 +1758,13 @@ fi
|
|||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
if [ $1 -ge 1 ] ; then
|
if [ $1 -ge 1 ] ; then
|
||||||
/bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
|
/bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
|
||||||
|
/bin/systemctl reload-or-try-restart virtlogd.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
%else
|
%else
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
/sbin/service virtlockd reload > /dev/null 2>&1 || :
|
/sbin/service virtlockd reload > /dev/null 2>&1 || :
|
||||||
|
/sbin/service virtlogd reload > /dev/null 2>&1 || :
|
||||||
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
@ -1761,10 +1774,30 @@ fi
|
|||||||
%triggerpostun daemon -- libvirt-daemon < 1.2.1
|
%triggerpostun daemon -- libvirt-daemon < 1.2.1
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
/sbin/service virtlockd reload > /dev/null 2>&1 || :
|
/sbin/service virtlockd reload > /dev/null 2>&1 || :
|
||||||
|
/sbin/service virtlogd reload > /dev/null 2>&1 || :
|
||||||
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# In upgrade scenario we must explicitly enable virtlockd/virtlogd
|
||||||
|
# sockets, if libvirtd is already enabled and start them if
|
||||||
|
# libvirtd is running, otherwise you'll get failures to start
|
||||||
|
# guests
|
||||||
|
%triggerpostun daemon -- libvirt-daemon < 1.3.0
|
||||||
|
if [ $1 -ge 1 ] ; then
|
||||||
|
%if %{with_systemd}
|
||||||
|
/bin/systemctl is-enabled libvirtd.service 1>/dev/null 2>&1 &&
|
||||||
|
/bin/systemctl enable virtlogd.socket || :
|
||||||
|
/bin/systemctl is-active libvirtd.service 1>/dev/null 2>&1 &&
|
||||||
|
/bin/systemctl start virtlogd.socket || :
|
||||||
|
%else
|
||||||
|
/sbin/chkconfig libvirtd 1>/dev/null 2>&1 &&
|
||||||
|
/bin/chkconfig virtlogd on || :
|
||||||
|
/sbin/service libvirtd status 1>/dev/null 2>&1 &&
|
||||||
|
/bin/service virtlogd start || :
|
||||||
|
%endif
|
||||||
|
fi
|
||||||
|
|
||||||
%if %{with_network}
|
%if %{with_network}
|
||||||
%post daemon-config-network
|
%post daemon-config-network
|
||||||
if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
|
if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
|
||||||
@ -1917,16 +1950,21 @@ exit 0
|
|||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%{_unitdir}/libvirtd.service
|
%{_unitdir}/libvirtd.service
|
||||||
%{_unitdir}/libvirtd.socket
|
%{_unitdir}/libvirtd.socket
|
||||||
|
%{_unitdir}/virtlogd.service
|
||||||
|
%{_unitdir}/virtlogd.socket
|
||||||
%{_unitdir}/virtlockd.service
|
%{_unitdir}/virtlockd.service
|
||||||
%{_unitdir}/virtlockd.socket
|
%{_unitdir}/virtlockd.socket
|
||||||
%else
|
%else
|
||||||
%{_sysconfdir}/rc.d/init.d/libvirtd
|
%{_sysconfdir}/rc.d/init.d/libvirtd
|
||||||
|
%{_sysconfdir}/rc.d/init.d/virtlogd
|
||||||
%{_sysconfdir}/rc.d/init.d/virtlockd
|
%{_sysconfdir}/rc.d/init.d/virtlockd
|
||||||
%endif
|
%endif
|
||||||
%doc daemon/libvirtd.upstart
|
%doc daemon/libvirtd.upstart
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/virtlogd
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/virtlockd
|
%config(noreplace) %{_sysconfdir}/sysconfig/virtlockd
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/libvirt/virtlogd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
|
%config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 6
|
%if 0%{?fedora} || 0%{?rhel} >= 6
|
||||||
%config(noreplace) %{_prefix}/lib/sysctl.d/60-libvirtd.conf
|
%config(noreplace) %{_prefix}/lib/sysctl.d/60-libvirtd.conf
|
||||||
@ -1948,6 +1986,8 @@ exit 0
|
|||||||
|
|
||||||
%{_datadir}/augeas/lenses/libvirtd.aug
|
%{_datadir}/augeas/lenses/libvirtd.aug
|
||||||
%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
|
%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
|
||||||
|
%{_datadir}/augeas/lenses/virtlogd.aug
|
||||||
|
%{_datadir}/augeas/lenses/tests/test_virtlogd.aug
|
||||||
%{_datadir}/augeas/lenses/virtlockd.aug
|
%{_datadir}/augeas/lenses/virtlockd.aug
|
||||||
%{_datadir}/augeas/lenses/tests/test_virtlockd.aug
|
%{_datadir}/augeas/lenses/tests/test_virtlockd.aug
|
||||||
%{_datadir}/augeas/lenses/libvirt_lockd.aug
|
%{_datadir}/augeas/lenses/libvirt_lockd.aug
|
||||||
@ -1974,9 +2014,11 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%attr(0755, root, root) %{_sbindir}/libvirtd
|
%attr(0755, root, root) %{_sbindir}/libvirtd
|
||||||
|
%attr(0755, root, root) %{_sbindir}/virtlogd
|
||||||
%attr(0755, root, root) %{_sbindir}/virtlockd
|
%attr(0755, root, root) %{_sbindir}/virtlockd
|
||||||
|
|
||||||
%{_mandir}/man8/libvirtd.8*
|
%{_mandir}/man8/libvirtd.8*
|
||||||
|
%{_mandir}/man8/virtlogd.8*
|
||||||
%{_mandir}/man8/virtlockd.8*
|
%{_mandir}/man8/virtlockd.8*
|
||||||
|
|
||||||
%if ! %{with_driver_modules}
|
%if ! %{with_driver_modules}
|
||||||
@ -2300,6 +2342,7 @@ exit 0
|
|||||||
%dir %{_includedir}/libvirt
|
%dir %{_includedir}/libvirt
|
||||||
%{_includedir}/libvirt/virterror.h
|
%{_includedir}/libvirt/virterror.h
|
||||||
%{_includedir}/libvirt/libvirt.h
|
%{_includedir}/libvirt/libvirt.h
|
||||||
|
%{_includedir}/libvirt/libvirt-common.h
|
||||||
%{_includedir}/libvirt/libvirt-domain.h
|
%{_includedir}/libvirt/libvirt-domain.h
|
||||||
%{_includedir}/libvirt/libvirt-domain-snapshot.h
|
%{_includedir}/libvirt/libvirt-domain-snapshot.h
|
||||||
%{_includedir}/libvirt/libvirt-event.h
|
%{_includedir}/libvirt/libvirt-event.h
|
||||||
@ -2336,6 +2379,9 @@ exit 0
|
|||||||
%doc examples/systemtap
|
%doc examples/systemtap
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 9 2015 Daniel Berrange <berrange@redhat.com> - 1.3.0-1
|
||||||
|
- Update to 1.3.0 release
|
||||||
|
|
||||||
* Wed Nov 11 2015 Cole Robinson <crobinso@redhat.com> - 1.2.21-1
|
* Wed Nov 11 2015 Cole Robinson <crobinso@redhat.com> - 1.2.21-1
|
||||||
- Update to 1.2.21 release
|
- Update to 1.2.21 release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user