Update to version 4.0.0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
0f5d8c1c22
commit
0ca715cad9
32
libvirt.spec
32
libvirt.spec
@ -1,10 +1,12 @@
|
|||||||
# -*- rpm-spec -*-
|
# -*- rpm-spec -*-
|
||||||
|
|
||||||
# This spec file assumes you are building on a Fedora or RHEL version
|
# This spec file assumes you are building on a Fedora or RHEL version
|
||||||
# that's still supported by the vendor: that means Fedora 23 or newer,
|
# that's still supported by the vendor. It may work on other distros
|
||||||
# or RHEL 6 or newer. It may need some tweaks for other distros.
|
# or versions, but no effort will be made to ensure that going forward.
|
||||||
# If neither fedora nor rhel was defined, try to guess them from dist
|
%define min_rhel 6
|
||||||
%if (0%{?fedora} && 0%{?fedora} >= 23) || (0%{?rhel} && 0%{?rhel} >= 6)
|
%define min_fedora 26
|
||||||
|
|
||||||
|
%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel})
|
||||||
%define supported_platform 1
|
%define supported_platform 1
|
||||||
%else
|
%else
|
||||||
%define supported_platform 0
|
%define supported_platform 0
|
||||||
@ -87,6 +89,7 @@
|
|||||||
%define with_libssh2 0%{!?_without_libssh2:0}
|
%define with_libssh2 0%{!?_without_libssh2:0}
|
||||||
%define with_wireshark 0%{!?_without_wireshark:0}
|
%define with_wireshark 0%{!?_without_wireshark:0}
|
||||||
%define with_libssh 0%{!?_without_libssh:0}
|
%define with_libssh 0%{!?_without_libssh:0}
|
||||||
|
%define with_bash_completion 0%{!?_without_bash_completion:0}
|
||||||
%define with_pm_utils 1
|
%define with_pm_utils 1
|
||||||
|
|
||||||
# Finally set the OS / architecture specific special cases
|
# Finally set the OS / architecture specific special cases
|
||||||
@ -190,6 +193,11 @@
|
|||||||
%define with_libssh 0%{!?_without_libssh:1}
|
%define with_libssh 0%{!?_without_libssh:1}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Enable bash-completion for new enough distros
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
|
%define with_bash_completion 0%{!?_without_bash_completion:1}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{with_qemu} || %{with_lxc} || %{with_uml}
|
%if %{with_qemu} || %{with_lxc} || %{with_uml}
|
||||||
# numad is used to manage the CPU and memory placement dynamically,
|
# numad is used to manage the CPU and memory placement dynamically,
|
||||||
@ -238,8 +246,8 @@
|
|||||||
|
|
||||||
Summary: Library providing a simple virtualization API
|
Summary: Library providing a simple virtualization API
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: 3.10.0
|
Version: 4.0.0
|
||||||
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
|
||||||
@ -306,6 +314,9 @@ BuildRequires: xen-devel
|
|||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
%if %{with_bash_completion}
|
||||||
|
BuildRequires: bash-completion >= 2.0
|
||||||
|
%endif
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: libtasn1-devel
|
BuildRequires: libtasn1-devel
|
||||||
@ -1132,7 +1143,7 @@ rm -rf .git
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{supported_platform}
|
%if ! %{supported_platform}
|
||||||
echo "This RPM requires either Fedora >= 20 or RHEL >= 6"
|
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
||||||
exit 1
|
exit 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -2047,6 +2058,10 @@ exit 0
|
|||||||
%{_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_bash_completion}
|
||||||
|
%{_datadir}/bash-completion/completions/vsh
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%{_unitdir}/libvirt-guests.service
|
%{_unitdir}/libvirt-guests.service
|
||||||
@ -2152,6 +2167,9 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 19 2018 Daniel P. Berrange <berrange@redhat.com> - 4.0.0-1
|
||||||
|
- Rebase to version 4.0.0
|
||||||
|
|
||||||
* Wed Dec 20 2017 Cole Robinson <crobinso@redhat.com> - 3.10.0-2
|
* Wed Dec 20 2017 Cole Robinson <crobinso@redhat.com> - 3.10.0-2
|
||||||
- Rebuild for xen 4.10
|
- Rebuild for xen 4.10
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (libvirt-3.10.0.tar.xz) = c2dfe0629bd90e8d7ae85f2a31dc027475c9614d497063fec6905aa2da4db68ce96e8f20d3290b0c0542b6ea31c85700b2727008bac65997ff0901b45f1b7260
|
SHA512 (libvirt-4.0.0.tar.xz) = c99ea305f427859eb070b5f0c43de48645a5c53a2aa8efc60f54f278ec3fa0b504307861309e1852f8d7bff4436afe00c859aac27691366a0c36c91341cea7a1
|
||||||
|
Loading…
Reference in New Issue
Block a user