From a910c6c2bc7c5304c6463e80ce43daa8a5bc9c94 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 27 Nov 2015 10:08:57 +0100 Subject: php-libvirt: 0.5.1 --- REFLECTION | 484 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ php-libvirt.spec | 80 +++++---- 2 files changed, 532 insertions(+), 32 deletions(-) create mode 100644 REFLECTION diff --git a/REFLECTION b/REFLECTION new file mode 100644 index 0000000..aad7d6d --- /dev/null +++ b/REFLECTION @@ -0,0 +1,484 @@ +Extension [ extension #117 libvirt version 0.5.1 ] { + + - INI { + Entry [ libvirt.longlong_to_string ] + Current = '1' + } + Entry [ libvirt.iso_path ] + Current = '/var/lib/libvirt/images' + } + Entry [ libvirt.image_path ] + Current = '/var/lib/libvirt/images' + } + Entry [ libvirt.max_connections ] + Current = '5' + } + } + + - Constants [137] { + Constant [ integer VIR_DOMAIN_XML_SECURE ] { 1 } + Constant [ integer VIR_DOMAIN_XML_INACTIVE ] { 2 } + Constant [ integer VIR_DOMAIN_XML_UPDATE_CPU ] { 4 } + Constant [ integer VIR_DOMAIN_XML_MIGRATABLE ] { 8 } + Constant [ integer VIR_NODE_CPU_STATS_ALL_CPUS ] { -1 } + Constant [ integer VIR_DOMAIN_NOSTATE ] { 0 } + Constant [ integer VIR_DOMAIN_RUNNING ] { 1 } + Constant [ integer VIR_DOMAIN_BLOCKED ] { 2 } + Constant [ integer VIR_DOMAIN_PAUSED ] { 3 } + Constant [ integer VIR_DOMAIN_SHUTDOWN ] { 4 } + Constant [ integer VIR_DOMAIN_SHUTOFF ] { 5 } + Constant [ integer VIR_DOMAIN_CRASHED ] { 6 } + Constant [ integer VIR_DOMAIN_PMSUSPENDED ] { 7 } + Constant [ integer VIR_STORAGE_VOL_RESIZE_ALLOCATE ] { 1 } + Constant [ integer VIR_STORAGE_VOL_RESIZE_DELTA ] { 2 } + Constant [ integer VIR_STORAGE_VOL_RESIZE_SHRINK ] { 4 } + Constant [ integer VIR_DOMAIN_VCPU_CONFIG ] { 2 } + Constant [ integer VIR_DOMAIN_VCPU_CURRENT ] { 0 } + Constant [ integer VIR_DOMAIN_VCPU_LIVE ] { 1 } + Constant [ integer VIR_DOMAIN_VCPU_MAXIMUM ] { 4 } + Constant [ integer VIR_DOMAIN_VCPU_GUEST ] { 8 } + Constant [ integer VIR_SNAPSHOT_DELETE_CHILDREN ] { 1 } + Constant [ integer VIR_SNAPSHOT_DELETE_METADATA_ONLY ] { 2 } + Constant [ integer VIR_SNAPSHOT_DELETE_CHILDREN_ONLY ] { 4 } + Constant [ integer VIR_SNAPSHOT_CREATE_REDEFINE ] { 1 } + Constant [ integer VIR_SNAPSHOT_CREATE_CURRENT ] { 2 } + Constant [ integer VIR_SNAPSHOT_CREATE_NO_METADATA ] { 4 } + Constant [ integer VIR_SNAPSHOT_CREATE_HALT ] { 8 } + Constant [ integer VIR_SNAPSHOT_CREATE_DISK_ONLY ] { 16 } + Constant [ integer VIR_SNAPSHOT_CREATE_REUSE_EXT ] { 32 } + Constant [ integer VIR_SNAPSHOT_CREATE_QUIESCE ] { 64 } + Constant [ integer VIR_SNAPSHOT_CREATE_ATOMIC ] { 128 } + Constant [ integer VIR_SNAPSHOT_CREATE_LIVE ] { 256 } + Constant [ integer VIR_SNAPSHOT_LIST_DESCENDANTS ] { 1 } + Constant [ integer VIR_SNAPSHOT_LIST_ROOTS ] { 1 } + Constant [ integer VIR_SNAPSHOT_LIST_METADATA ] { 2 } + Constant [ integer VIR_SNAPSHOT_LIST_LEAVES ] { 4 } + Constant [ integer VIR_SNAPSHOT_LIST_NO_LEAVES ] { 8 } + Constant [ integer VIR_SNAPSHOT_LIST_NO_METADATA ] { 16 } + Constant [ integer VIR_SNAPSHOT_LIST_INACTIVE ] { 32 } + Constant [ integer VIR_SNAPSHOT_LIST_ACTIVE ] { 64 } + Constant [ integer VIR_SNAPSHOT_LIST_DISK_ONLY ] { 128 } + Constant [ integer VIR_SNAPSHOT_LIST_INTERNAL ] { 256 } + Constant [ integer VIR_SNAPSHOT_LIST_EXTERNAL ] { 512 } + Constant [ integer VIR_SNAPSHOT_REVERT_RUNNING ] { 1 } + Constant [ integer VIR_SNAPSHOT_REVERT_PAUSED ] { 2 } + Constant [ integer VIR_SNAPSHOT_REVERT_FORCE ] { 4 } + Constant [ integer VIR_MEMORY_VIRTUAL ] { 1 } + Constant [ integer VIR_MEMORY_PHYSICAL ] { 2 } + Constant [ integer VIR_VERSION_BINDING ] { 1 } + Constant [ integer VIR_VERSION_LIBVIRT ] { 2 } + Constant [ integer VIR_NETWORKS_ACTIVE ] { 1 } + Constant [ integer VIR_NETWORKS_INACTIVE ] { 2 } + Constant [ integer VIR_NETWORKS_ALL ] { 3 } + Constant [ integer VIR_CRED_USERNAME ] { 1 } + Constant [ integer VIR_CRED_AUTHNAME ] { 2 } + Constant [ integer VIR_CRED_LANGUAGE ] { 3 } + Constant [ integer VIR_CRED_CNONCE ] { 4 } + Constant [ integer VIR_CRED_PASSPHRASE ] { 5 } + Constant [ integer VIR_CRED_ECHOPROMPT ] { 6 } + Constant [ integer VIR_CRED_NOECHOPROMP ] { 7 } + Constant [ integer VIR_CRED_REALM ] { 8 } + Constant [ integer VIR_CRED_EXTERNAL ] { 9 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_SWAP_IN ] { 0 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_SWAP_OUT ] { 1 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT ] { 2 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT ] { 3 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_UNUSED ] { 4 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_AVAILABLE ] { 5 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON ] { 6 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_RSS ] { 7 } + Constant [ integer VIR_DOMAIN_MEMORY_STAT_NR ] { 8 } + Constant [ integer VIR_DOMAIN_JOB_NONE ] { 0 } + Constant [ integer VIR_DOMAIN_JOB_BOUNDED ] { 1 } + Constant [ integer VIR_DOMAIN_JOB_UNBOUNDED ] { 2 } + Constant [ integer VIR_DOMAIN_JOB_COMPLETED ] { 3 } + Constant [ integer VIR_DOMAIN_JOB_FAILED ] { 4 } + Constant [ integer VIR_DOMAIN_JOB_CANCELLED ] { 5 } + Constant [ integer VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC ] { 1 } + Constant [ integer VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT ] { 2 } + Constant [ integer VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES ] { 1 } + Constant [ integer VIR_MIGRATE_LIVE ] { 1 } + Constant [ integer VIR_MIGRATE_PEER2PEER ] { 2 } + Constant [ integer VIR_MIGRATE_TUNNELLED ] { 4 } + Constant [ integer VIR_MIGRATE_PERSIST_DEST ] { 8 } + Constant [ integer VIR_MIGRATE_UNDEFINE_SOURCE ] { 16 } + Constant [ integer VIR_MIGRATE_PAUSED ] { 32 } + Constant [ integer VIR_MIGRATE_NON_SHARED_DISK ] { 64 } + Constant [ integer VIR_MIGRATE_NON_SHARED_INC ] { 128 } + Constant [ integer VIR_MIGRATE_CHANGE_PROTECTION ] { 256 } + Constant [ integer VIR_MIGRATE_UNSAFE ] { 512 } + Constant [ integer VIR_MIGRATE_OFFLINE ] { 1024 } + Constant [ integer VIR_MIGRATE_COMPRESSED ] { 2048 } + Constant [ integer VIR_MIGRATE_ABORT_ON_ERROR ] { 4096 } + Constant [ integer VIR_MIGRATE_AUTO_CONVERGE ] { 8192 } + Constant [ integer VIR_DOMAIN_DEVICE_MODIFY_CURRENT ] { 0 } + Constant [ integer VIR_DOMAIN_DEVICE_MODIFY_LIVE ] { 1 } + Constant [ integer VIR_DOMAIN_DEVICE_MODIFY_CONFIG ] { 2 } + Constant [ integer VIR_DOMAIN_DEVICE_MODIFY_FORCE ] { 4 } + Constant [ integer VIR_STORAGE_POOL_BUILD_NEW ] { 0 } + Constant [ integer VIR_STORAGE_POOL_BUILD_REPAIR ] { 1 } + Constant [ integer VIR_STORAGE_POOL_BUILD_RESIZE ] { 2 } + Constant [ integer VIR_DOMAIN_FLAG_FEATURE_ACPI ] { 1 } + Constant [ integer VIR_DOMAIN_FLAG_FEATURE_APIC ] { 2 } + Constant [ integer VIR_DOMAIN_FLAG_FEATURE_PAE ] { 4 } + Constant [ integer VIR_DOMAIN_FLAG_CLOCK_LOCALTIME ] { 8 } + Constant [ integer VIR_DOMAIN_FLAG_TEST_LOCAL_VNC ] { 16 } + Constant [ integer VIR_DOMAIN_FLAG_SOUND_AC97 ] { 32 } + Constant [ integer VIR_DOMAIN_DISK_FILE ] { 1 } + Constant [ integer VIR_DOMAIN_DISK_BLOCK ] { 2 } + Constant [ integer VIR_DOMAIN_DISK_ACCESS_ALL ] { 4 } + Constant [ integer VIR_DOMAIN_METADATA_DESCRIPTION ] { 0 } + Constant [ integer VIR_DOMAIN_METADATA_TITLE ] { 1 } + Constant [ integer VIR_DOMAIN_METADATA_ELEMENT ] { 2 } + Constant [ integer VIR_DOMAIN_AFFECT_CURRENT ] { 0 } + Constant [ integer VIR_DOMAIN_AFFECT_LIVE ] { 1 } + Constant [ integer VIR_DOMAIN_AFFECT_CONFIG ] { 2 } + Constant [ integer VIR_DOMAIN_STATS_STATE ] { 1 } + Constant [ integer VIR_DOMAIN_STATS_CPU_TOTAL ] { 2 } + Constant [ integer VIR_DOMAIN_STATS_BALLOON ] { 4 } + Constant [ integer VIR_DOMAIN_STATS_VCPU ] { 8 } + Constant [ integer VIR_DOMAIN_STATS_INTERFACE ] { 16 } + Constant [ integer VIR_DOMAIN_STATS_BLOCK ] { 32 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE ] { 1 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE ] { 2 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER ] { 128 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED ] { 32 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT ] { 4 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING ] { 16 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF ] { 64 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT ] { 8 } + Constant [ integer VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS ] { -2147483648 } + Constant [ integer VIR_DOMAIN_MEM_CONFIG ] { 2 } + Constant [ integer VIR_DOMAIN_MEM_CURRENT ] { 0 } + Constant [ integer VIR_DOMAIN_MEM_LIVE ] { 1 } + Constant [ integer VIR_DOMAIN_MEM_MAXIMUM ] { 4 } + Constant [ integer VIR_CONNECT_FLAG_SOUNDHW_GET_NAMES ] { 1 } + } + + - Functions { + Function [ function libvirt_get_last_error ] { + } + Function [ function libvirt_connect ] { + + - Parameters [2] { + Parameter #0 [ $url ] + Parameter #1 [ $readonly ] + } + } + Function [ function libvirt_connect_get_uri ] { + } + Function [ function libvirt_connect_get_hostname ] { + } + Function [ function libvirt_connect_get_capabilities ] { + } + Function [ function libvirt_connect_get_emulator ] { + } + Function [ function libvirt_connect_get_nic_models ] { + } + Function [ function libvirt_connect_get_soundhw_models ] { + } + Function [ function libvirt_connect_get_information ] { + } + Function [ function libvirt_connect_get_machine_types ] { + } + Function [ function libvirt_connect_get_hypervisor ] { + } + Function [ function libvirt_connect_get_sysinfo ] { + } + Function [ function libvirt_connect_get_maxvcpus ] { + } + Function [ function libvirt_connect_get_encrypted ] { + } + Function [ function libvirt_connect_get_secure ] { + } + Function [ function libvirt_connect_get_all_domain_stats ] { + } + Function [ function libvirt_stream_create ] { + } + Function [ function libvirt_stream_close ] { + } + Function [ function libvirt_stream_abort ] { + } + Function [ function libvirt_stream_finish ] { + } + Function [ function libvirt_stream_send ] { + } + Function [ function libvirt_stream_recv ] { + } + Function [ function libvirt_domain_new ] { + } + Function [ function libvirt_domain_new_get_vnc ] { + } + Function [ function libvirt_domain_get_counts ] { + } + Function [ function libvirt_domain_is_persistent ] { + } + Function [ function libvirt_domain_lookup_by_name ] { + } + Function [ function libvirt_domain_get_xml_desc ] { + } + Function [ function libvirt_domain_get_disk_devices ] { + } + Function [ function libvirt_domain_get_interface_devices ] { + } + Function [ function libvirt_domain_change_vcpus ] { + } + Function [ function libvirt_domain_change_memory ] { + } + Function [ function libvirt_domain_change_boot_devices ] { + } + Function [ function libvirt_domain_disk_add ] { + } + Function [ function libvirt_domain_disk_remove ] { + } + Function [ function libvirt_domain_nic_add ] { + } + Function [ function libvirt_domain_nic_remove ] { + } + Function [ function libvirt_domain_get_info ] { + } + Function [ function libvirt_domain_get_name ] { + } + Function [ function libvirt_domain_get_uuid ] { + } + Function [ function libvirt_domain_get_uuid_string ] { + } + Function [ function libvirt_domain_get_id ] { + } + Function [ function libvirt_domain_lookup_by_id ] { + } + Function [ function libvirt_domain_lookup_by_uuid ] { + } + Function [ function libvirt_domain_lookup_by_uuid_string ] { + } + Function [ function libvirt_domain_destroy ] { + } + Function [ function libvirt_domain_create ] { + } + Function [ function libvirt_domain_resume ] { + } + Function [ function libvirt_domain_core_dump ] { + } + Function [ function libvirt_domain_shutdown ] { + } + Function [ function libvirt_domain_suspend ] { + } + Function [ function libvirt_domain_managedsave ] { + } + Function [ function libvirt_domain_undefine ] { + } + Function [ function libvirt_domain_reboot ] { + } + Function [ function libvirt_domain_define_xml ] { + } + Function [ function libvirt_domain_create_xml ] { + } + Function [ function libvirt_domain_memory_peek ] { + } + Function [ function libvirt_domain_memory_stats ] { + } + Function [ function libvirt_domain_set_memory ] { + } + Function [ function libvirt_domain_set_max_memory ] { + } + Function [ function libvirt_domain_set_memory_flags ] { + } + Function [ function libvirt_domain_block_stats ] { + } + Function [ function libvirt_domain_block_resize ] { + } + Function [ function libvirt_domain_block_job_abort ] { + } + Function [ function libvirt_domain_block_job_set_speed ] { + } + Function [ function libvirt_domain_interface_stats ] { + } + Function [ function libvirt_domain_get_connect ] { + } + Function [ function libvirt_domain_migrate ] { + } + Function [ function libvirt_domain_migrate_to_uri ] { + } + Function [ function libvirt_domain_migrate_to_uri2 ] { + } + Function [ function libvirt_domain_get_job_info ] { + } + Function [ function libvirt_domain_xml_xpath ] { + } + Function [ function libvirt_domain_get_block_info ] { + } + Function [ function libvirt_domain_get_network_info ] { + } + Function [ function libvirt_domain_get_autostart ] { + } + Function [ function libvirt_domain_set_autostart ] { + } + Function [ function libvirt_domain_get_metadata ] { + } + Function [ function libvirt_domain_set_metadata ] { + } + Function [ function libvirt_domain_is_active ] { + } + Function [ function libvirt_domain_get_next_dev_ids ] { + } + Function [ function libvirt_domain_get_screenshot ] { + } + Function [ function libvirt_domain_get_screenshot_api ] { + } + Function [ function libvirt_domain_get_screen_dimensions ] { + } + Function [ function libvirt_domain_send_keys ] { + } + Function [ function libvirt_domain_send_pointer_event ] { + } + Function [ function libvirt_domain_update_device ] { + } + Function [ function libvirt_domain_has_current_snapshot ] { + } + Function [ function libvirt_domain_snapshot_create ] { + } + Function [ function libvirt_domain_snapshot_get_xml ] { + } + Function [ function libvirt_domain_snapshot_revert ] { + } + Function [ function libvirt_domain_snapshot_delete ] { + } + Function [ function libvirt_domain_snapshot_lookup_by_name ] { + } + Function [ function libvirt_storagepool_lookup_by_name ] { + } + Function [ function libvirt_storagepool_lookup_by_volume ] { + } + Function [ function libvirt_storagepool_get_info ] { + } + Function [ function libvirt_storagevolume_lookup_by_name ] { + } + Function [ function libvirt_storagevolume_lookup_by_path ] { + } + Function [ function libvirt_storagevolume_get_name ] { + } + Function [ function libvirt_storagevolume_get_path ] { + } + Function [ function libvirt_storagevolume_get_info ] { + } + Function [ function libvirt_storagevolume_get_xml_desc ] { + } + Function [ function libvirt_storagevolume_create_xml ] { + } + Function [ function libvirt_storagevolume_create_xml_from ] { + } + Function [ function libvirt_storagevolume_delete ] { + } + Function [ function libvirt_storagevolume_download ] { + } + Function [ function libvirt_storagevolume_upload ] { + } + Function [ function libvirt_storagevolume_resize ] { + } + Function [ function libvirt_storagepool_get_uuid_string ] { + } + Function [ function libvirt_storagepool_get_name ] { + } + Function [ function libvirt_storagepool_lookup_by_uuid_string ] { + } + Function [ function libvirt_storagepool_get_xml_desc ] { + } + Function [ function libvirt_storagepool_define_xml ] { + } + Function [ function libvirt_storagepool_undefine ] { + } + Function [ function libvirt_storagepool_create ] { + } + Function [ function libvirt_storagepool_destroy ] { + } + Function [ function libvirt_storagepool_is_active ] { + } + Function [ function libvirt_storagepool_get_volume_count ] { + } + Function [ function libvirt_storagepool_refresh ] { + } + Function [ function libvirt_storagepool_set_autostart ] { + } + Function [ function libvirt_storagepool_get_autostart ] { + } + Function [ function libvirt_storagepool_build ] { + } + Function [ function libvirt_storagepool_delete ] { + } + Function [ function libvirt_network_define_xml ] { + } + Function [ function libvirt_network_undefine ] { + } + Function [ function libvirt_network_get ] { + } + Function [ function libvirt_network_get_xml_desc ] { + } + Function [ function libvirt_network_get_bridge ] { + } + Function [ function libvirt_network_get_information ] { + } + Function [ function libvirt_network_get_active ] { + } + Function [ function libvirt_network_set_active ] { + } + Function [ function libvirt_node_get_info ] { + } + Function [ function libvirt_node_get_cpu_stats ] { + } + Function [ function libvirt_node_get_cpu_stats_for_each_cpu ] { + } + Function [ function libvirt_node_get_mem_stats ] { + } + Function [ function libvirt_nodedev_get ] { + } + Function [ function libvirt_nodedev_capabilities ] { + } + Function [ function libvirt_nodedev_get_xml_desc ] { + } + Function [ function libvirt_nodedev_get_information ] { + } + Function [ function libvirt_list_domains ] { + } + Function [ function libvirt_list_domain_snapshots ] { + } + Function [ function libvirt_list_domain_resources ] { + } + Function [ function libvirt_list_nodedevs ] { + } + Function [ function libvirt_list_networks ] { + } + Function [ function libvirt_list_storagepools ] { + } + Function [ function libvirt_list_active_storagepools ] { + } + Function [ function libvirt_list_inactive_storagepools ] { + } + Function [ function libvirt_storagepool_list_volumes ] { + } + Function [ function libvirt_list_active_domains ] { + } + Function [ function libvirt_list_active_domain_ids ] { + } + Function [ function libvirt_list_inactive_domains ] { + } + Function [ function libvirt_version ] { + } + Function [ function libvirt_check_version ] { + } + Function [ function libvirt_has_feature ] { + } + Function [ function libvirt_get_iso_images ] { + } + Function [ function libvirt_image_create ] { + } + Function [ function libvirt_image_remove ] { + } + Function [ function libvirt_logfile_set ] { + } + Function [ function libvirt_print_binding_resources ] { + } + Function [ function libvirt_domain_qemu_agent_command ] { + } + } +} + diff --git a/php-libvirt.spec b/php-libvirt.spec index e7fa368..ffe5507 100644 --- a/php-libvirt.spec +++ b/php-libvirt.spec @@ -24,7 +24,7 @@ %{!?__php: %global __php %{_bindir}/php} %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} -%global req_libvirt_version 0.6.2 +%global req_libvirt_version 1.2.8 %global extname libvirt-php %if "%{php_version}" < "5.6" %global ini_name %{extname}.ini @@ -32,31 +32,30 @@ %global ini_name 40-%{extname}.ini %endif -Name: %{?sub_prefix}php-libvirt -Version: 0.4.8 -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -Summary: PHP language binding for Libvirt - -Group: Development/Libraries -License: PHP -URL: http://libvirt.org/php -Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildRequires: %{?scl_prefix}php-devel -BuildRequires: libvirt-devel >= %{req_libvirt_version} -BuildRequires: libxml2-devel -BuildRequires: libxslt -BuildRequires: xhtml1-dtds - -Requires: libvirt >= %{req_libvirt_version} -Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} -Requires: %{?scl_prefix}php(api) = %{php_core_api} +Name: %{?sub_prefix}php-libvirt +Version: 0.5.1 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Summary: PHP language binding for Libvirt + +Group: Development/Libraries +License: PHP +URL: http://libvirt.org/php +Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: %{?scl_prefix}php-devel +BuildRequires: libvirt-devel >= %{req_libvirt_version} +BuildRequires: libxml2-devel +BuildRequires: libxslt +BuildRequires: xhtml1-dtds + +Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} +Requires: %{?scl_prefix}php(api) = %{php_core_api} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} ## Compat SCL (rh-php56) -Provides: %{?scl_prefix}php-libvirt = %{version}-%{release} -Provides: %{?scl_prefix}php-libvirt%{?_isa} = %{version}-%{release} +Provides: %{?scl_prefix}php-libvirt = %{version}-%{release} +Provides: %{?scl_prefix}php-libvirt%{?_isa} = %{version}-%{release} %if 0%{?fedora} < 20 && 0%{?rhel} < 7 # Filter shared private @@ -69,18 +68,21 @@ Provides: %{?scl_prefix}php-libvirt%{?_isa} = %{version}-%{release} PHP language bindings for Libvirt API. For more details see: http://www.libvirt.org/php/ -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. %package doc -Summary: Document of php-libvirt -Group: Development/Libraries +Summary: Document of php-libvirt +Group: Development/Libraries %if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 -BuildArch: noarch -Requires: %{name} = %{version}-%{release} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} %else -Requires: %{name}%{_isa} = %{version}-%{release} +Requires: %{name}%{_isa} = %{version}-%{release} %endif +## Compat SCL (rh-php56) +Provides: %{?scl_prefix}php-libvirt-doc = %{version}-%{release} +Provides: %{?scl_prefix}php-libvirt-doc%{?_isa} = %{version}-%{release} %description doc PHP language bindings for Libvirt API. @@ -92,6 +94,11 @@ This package contain the document for php-libvirt. %prep %setup -q -n libvirt-php-%{version} +if ! pkg-config libvirt --atleast-version=1.2.9 +then + sed -e '/VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES/d' \ + -i src/libvirt-php.c +fi %build %{?scl:. %{_scl_scripts}/enable} @@ -107,13 +114,18 @@ make %{?_smp_mflags} rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -pm 644 COPYING %{buildroot}%{_pkgdocdir} -chmod +x %{buildroot}%{php_extdir}/%{extname}.so if [ "%{extname}.ini" != "%{ini_name}" ]; then mv %{buildroot}%{php_inidir}/%{extname}.ini \ %{buildroot}%{php_inidir}/%{ini_name} fi +: Fix installation +rm %{buildroot}%{php_extdir}/%{extname}.la +rm %{buildroot}%{php_extdir}/%{extname}.so +rm %{buildroot}%{php_extdir}/%{extname}.so.0 +mv %{buildroot}%{php_extdir}/%{extname}.so.0.0.0 %{buildroot}%{php_extdir}/%{extname}.so + %check : simple module load test @@ -130,17 +142,21 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %dir %{_pkgdocdir} -%{_pkgdocdir}/COPYING +%{!?_licensedir:%global license %%doc} +%license %{_pkgdocdir}/COPYING %{php_extdir}/%{extname}.so %config(noreplace) %{php_inidir}/%{ini_name} - %files doc %defattr(-,root,root,-) %{_pkgdocdir}/html %changelog +* Fri Nov 27 2015 Remi Collet - 0.5.1-1 +- update to 0.5.1 +- raise dependency on libvirt 1.2.8 + * Tue Jun 23 2015 Remi Collet - 0.4.8-3 - allow build against rh-php56 (as more-php56) -- cgit