From b859fd4f4c2df1a7a34fa6106836a9478542b9fa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 27 Jan 2021 12:16:07 +0100 Subject: add patch for PHP 8 --- php-libvirt.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'php-libvirt.spec') diff --git a/php-libvirt.spec b/php-libvirt.spec index 49ec6f8..154132f 100644 --- a/php-libvirt.spec +++ b/php-libvirt.spec @@ -36,7 +36,7 @@ Name: %{?sub_prefix}php-libvirt Version: 0.5.5 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP language binding for Libvirt Group: Development/Libraries @@ -45,6 +45,9 @@ License: LGPLv2+ URL: http://libvirt.org/php Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz +Patch0: libvirt-php8.patch + +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: libvirt-devel >= %{req_libvirt_version} @@ -64,7 +67,7 @@ Provides: %{?scl_prefix}php-libvirt = %{version}-%{release} Provides: %{?scl_prefix}php-libvirt%{?_isa} = %{version}-%{release} %endif -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} %if "%{php_version}" > "7.2" Obsoletes: php72u-libvirt <= %{version} Obsoletes: php72w-libvirt <= %{version} @@ -110,6 +113,7 @@ This package contain the document for php-libvirt. %prep %setup -q -n libvirt-php-%{version} +%patch0 -p1 -b .php8 %build @@ -147,7 +151,7 @@ rm %{buildroot}%{php_extdir}/%{extname}.la : simple module load test %{__php} --no-php-ini \ --define extension=%{buildroot}%{php_extdir}/%{extname}.so \ - --modules | grep libvirt + --modules | grep '^libvirt$' %files @@ -162,6 +166,9 @@ rm %{buildroot}%{php_extdir}/%{extname}.la %changelog +* Wed Jan 27 2021 Remi Collet - 0.5.5-4 +- add patch for PHP 8 + * Sun Feb 9 2020 Remi Collet - 0.5.5-1 - Upgrade to 0.5.5 -- cgit