From 32566f939df17843d1735ce18e7ad6fdb6e752c1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Jan 2024 14:19:42 +0100 Subject: Upgrade to 0.5.8 --- PHPINFO | 4 ++-- REFLECTION | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- php-libvirt.spec | 20 ++++++++++--------- 3 files changed, 70 insertions(+), 15 deletions(-) diff --git a/PHPINFO b/PHPINFO index 679c8cd..21fb03e 100644 --- a/PHPINFO +++ b/PHPINFO @@ -3,8 +3,8 @@ libvirt Libvirt support => enabled Debug support => enabled, default maximum log file size: 1024 KiB -Extension version => 0.5.7 -Libvirt version => 7.6.0 +Extension version => 0.5.8 +Libvirt version => 9.7.0 Max. connections => 5 ISO Image path => /var/lib/libvirt/images Path for images => /var/lib/libvirt/images diff --git a/REFLECTION b/REFLECTION index 9548039..08cbf47 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #123 libvirt version 0.5.7 ] { +Extension [ extension #70 libvirt version 0.5.8 ] { - INI { Entry [ libvirt.longlong_to_string ] @@ -18,7 +18,7 @@ Extension [ extension #123 libvirt version 0.5.7 ] { } } - - Constants [193] { + - Constants [199] { Constant [ int VIR_DOMAIN_XML_SECURE ] { 1 } Constant [ int VIR_DOMAIN_XML_INACTIVE ] { 2 } Constant [ int VIR_DOMAIN_XML_UPDATE_CPU ] { 4 } @@ -139,6 +139,9 @@ Extension [ extension #123 libvirt version 0.5.7 ] { Constant [ int VIR_DOMAIN_BLOCK_REBASE_COPY_DEV ] { 32 } Constant [ int VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES ] { 64 } Constant [ int VIR_DOMAIN_BLOCK_RESIZE_BYTES ] { 1 } + Constant [ string VIR_DOMAIN_BLOCK_COPY_BANDWIDTH ] { bandwidth } + Constant [ string VIR_DOMAIN_BLOCK_COPY_GRANULARITY ] { granularity } + Constant [ string VIR_DOMAIN_BLOCK_COPY_BUF_SIZE ] { buf-size } Constant [ int VIR_MIGRATE_LIVE ] { 1 } Constant [ int VIR_MIGRATE_PEER2PEER ] { 2 } Constant [ int VIR_MIGRATE_TUNNELLED ] { 4 } @@ -212,6 +215,9 @@ Extension [ extension #123 libvirt version 0.5.7 ] { Constant [ int VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA ] { 2 } Constant [ int VIR_DOMAIN_UNDEFINE_NVRAM ] { 4 } Constant [ int VIR_DOMAIN_UNDEFINE_KEEP_NVRAM ] { 8 } + Constant [ int VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA ] { 16 } + Constant [ int VIR_DOMAIN_UNDEFINE_TPM ] { 32 } + Constant [ int VIR_DOMAIN_UNDEFINE_KEEP_TPM ] { 64 } } - Functions { @@ -248,6 +254,18 @@ Extension [ extension #123 libvirt version 0.5.7 ] { Parameter #1 [ $xpath = ] } } + Function [ function libvirt_connect_get_domain_capabilities ] { + + - Parameters [7] { + Parameter #0 [ $conn ] + Parameter #1 [ $emulatorbin = ] + Parameter #2 [ $arch = ] + Parameter #3 [ $machine = ] + Parameter #4 [ $virttype = ] + Parameter #5 [ $flags = ] + Parameter #6 [ $xpath = ] + } + } Function [ function libvirt_connect_get_emulator ] { - Parameters [2] { @@ -395,9 +413,8 @@ Extension [ extension #123 libvirt version 0.5.7 ] { } Function [ function libvirt_domain_get_xml_desc ] { - - Parameters [2] { + - Parameters [1] { Parameter #0 [ $conn ] - Parameter #1 [ $xpath = ] } } Function [ function libvirt_domain_get_disk_devices ] { @@ -689,6 +706,34 @@ Extension [ extension #123 libvirt version 0.5.7 ] { Parameter #3 [ $top = ] } } + Function [ function libvirt_domain_block_copy ] { + + - Parameters [4] { + Parameter #0 [ $res ] + Parameter #1 [ $disk ] + Parameter #2 [ $destxml ] + Parameter #3 [ $params = ] + } + } + Function [ function libvirt_domain_block_pull ] { + + - Parameters [4] { + Parameter #0 [ $res ] + Parameter #1 [ $disk ] + Parameter #2 [ $bandwidth = ] + Parameter #3 [ $flags = ] + } + } + Function [ function libvirt_domain_block_rebase ] { + + - Parameters [5] { + Parameter #0 [ $res ] + Parameter #1 [ $disk ] + Parameter #2 [ $base ] + Parameter #3 [ $bandwidth = ] + Parameter #4 [ $flags = ] + } + } Function [ function libvirt_domain_block_stats ] { - Parameters [2] { @@ -981,6 +1026,14 @@ Extension [ extension #123 libvirt version 0.5.7 ] { Parameter #1 [ $flags = ] } } + Function [ function libvirt_domain_snapshot_create_xml ] { + + - Parameters [3] { + Parameter #0 [ $conn ] + Parameter #1 [ $xml ] + Parameter #2 [ $flags = ] + } + } Function [ function libvirt_domain_snapshot_current ] { - Parameters [2] { diff --git a/php-libvirt.spec b/php-libvirt.spec index b4d3866..100d595 100644 --- a/php-libvirt.spec +++ b/php-libvirt.spec @@ -13,21 +13,21 @@ %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} -# from upstream 1.2.9 (but seems wrong, missing VIR_STORAGE_VOL_CREATE_REFLINK) -%global req_libvirt_version 1.2.13 +# from upstream 1.2.13 (but seems wrong, missing VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA) +# no more supported on EL-7 +%global req_libvirt_version 8 %global extname libvirt-php %global ini_name 40-%{extname}.ini Name: %{?scl_prefix}php-libvirt -Version: 0.5.7 -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 0.5.8 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP language binding for Libvirt -Group: Development/Libraries # libvirt-php is under the same terms as libvirt License: LGPL-2.1-or-later -URL: http://libvirt.org/php -Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.xz +URL: https://php.libvirt.org/ +Source0: https://download.libvirt.org/php/libvirt-php-%{version}.tar.xz BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -54,13 +54,12 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %package doc Summary: Document of php-libvirt -Group: Development/Libraries BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc PHP language bindings for Libvirt API. -For more details see: http://www.libvirt.org/php/ http://www.php.net/ +For more details see: https://php.libvirt.org/ http://www.php.net/ This package contain the document for php-libvirt. @@ -117,6 +116,9 @@ rm %{buildroot}%{php_extdir}/%{extname}.la %changelog +* Tue Jan 23 2024 Remi Collet - 0.5.8-1 +- Upgrade to 0.5.8 + * Wed Aug 30 2023 Remi Collet - 0.5.7-3 - rebuild for PHP 8.3.0RC1 -- cgit